public class WorkflowServiceClientFactory
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAVA_CLIENT
Deprecated.
|
static java.lang.String |
LOCAL_CLIENT
For Oracle SOA internal use only - LOCAL Clients will access the Workflow Services through Local EJB layer
Client calls will become local ejb calls made directly to the
EJB implementing the service
|
static java.lang.String |
REMOTE_CLIENT
REMOTE Clients will access the Workflow Services through Remote EJB layer
Client calls will become remote ejb calls made directly to the
EJB implementing the service
|
static java.lang.String |
REMOTE_LOCAL_CLIENT
Deprecated.
REMOTE Clients will access the Workflow Services through Remote EJB layer
Client calls will become remote ejb calls made directly to the
EJB implementing the service
|
static java.lang.String |
SOAP_CLIENT
SOAP Clients will access the Workflow Services through SOAP layer
Client calls will become SOAP messages to invoke the corresponding
exposed SOAP service
|
static java.lang.String |
WSIF_CLIENT
Deprecated.
|
| Constructor and Description |
|---|
WorkflowServiceClientFactory() |
| Modifier and Type | Method and Description |
|---|---|
static ITaskQueryService |
getFederatedTaskQueryService(java.lang.String clientType,
WorkflowServicesClientConfigurationType wscct,
java.util.List<java.lang.String> requestedServers,
java.util.logging.Logger logger)
Gets federated task query service
This API is available only if Approval Management Extension is enabled |
static ITaskQueryService |
getFederatedTaskQueryService(WorkflowServicesClientConfigurationType wscct,
java.util.List<java.lang.String> requestedServers,
java.util.logging.Logger logger)
Gets federated task query service
This API is available only if Approval Management Extension is enabled |
static BPMIdentityConfigService |
getSOAPIdentityConfigServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties,
java.util.logging.Logger logger)
Get a soap identity service client
Usage Samples:
Map properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http:// BPMIdentityService client = WorkflowServiceClientFactory.getSOAPIdentityServiceClient(realName, properties, null); |
static BPMIdentityService |
getSOAPIdentityServiceClient(java.lang.String realmName,
java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties,
java.util.logging.Logger logger)
Get a soap identity service client
Usage Samples:
Map properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http:// BPMIdentityService client = WorkflowServiceClientFactory.getSOAPIdentityServiceClient(realName, properties, null); |
static IWorkflowServiceClient |
getWorkflowServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties,
java.util.logging.Logger logger)
Get a workflow service client for server specified as default in the client configuration
Usage Samples:
For remote EJB clients Map >properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, WorkflowServiceClientFactory.REMOTE_CLIENT); properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3:// properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, " properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "demoadmin"); IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(properties, null); For remote SOAP clients Map >properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, WorkflowServiceClientFactory.SOAP_CLIENT); properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http:// |
static IWorkflowServiceClient |
getWorkflowServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties,
java.lang.String serverName,
java.util.logging.Logger logger)
Get a workflow service client by server name
This API is available only if Approval Management Extension is enabled Usage Samples: For remote EJB clients Map >properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, WorkflowServiceClientFactory.REMOTE_CLIENT); properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3:// properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, " properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "demoadmin"); IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(properties, null); For remote SOAP clients Map >properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, WorkflowServiceClientFactory.SOAP_CLIENT); properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http:// IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(properties, null); |
static IWorkflowServiceClient |
getWorkflowServiceClient(java.lang.String clientType)
Get a workflow service client
|
static IWorkflowServiceClient |
getWorkflowServiceClient(java.lang.String clientType,
java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties,
java.util.logging.Logger logger)
Get a workflow service client
Usage Samples:
For remote EJB clients Map properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3:// properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, " properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "demoadmin"); IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.REMOTE_CLIENT, properties, null); For remote SOAP clients Map properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.SOAP_END_POINT_ROOT, "http:// IWorkflowServiceClient client = WorkflowServiceClientFactory.getWorkflowServiceClient(WorkflowServiceClientFactory.SOAP_CLIENT, properties, null); |
static IWorkflowServiceClient |
getWorkflowServiceClient(java.lang.String clientType,
WorkflowServicesClientConfigurationType wscc,
java.util.logging.Logger logger)
Get a workflow service client for default server defined in
WorkflowServicesClientConfigurationType object. |
static IWorkflowServiceClient |
getWorkflowServiceClient(WorkflowServicesClientConfigurationType wscc,
java.util.logging.Logger logger)
Get a workflow service client for default server defined in
WorkflowServicesClientConfigurationType object
This API is available only if Approval Management Extension is enabled |
public static final java.lang.String SOAP_CLIENT
public static final java.lang.String WSIF_CLIENT
public static final java.lang.String JAVA_CLIENT
public static final java.lang.String LOCAL_CLIENT
public static final java.lang.String REMOTE_CLIENT
public static final java.lang.String REMOTE_LOCAL_CLIENT
public static IWorkflowServiceClient getWorkflowServiceClient(java.lang.String clientType)
clientType - a String valueIWorkflowServiceClient valuepublic static IWorkflowServiceClient getWorkflowServiceClient(java.lang.String clientType, java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.util.logging.Logger logger)
clientType - a String valueproperties - a map of properties specifying connection information. The values in this
map will be used in establishing connection to the workflow servicelogger - a Logger valueIWorkflowServiceClient valuepublic static IWorkflowServiceClient getWorkflowServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.util.logging.Logger logger) throws WorkflowException
properties - a map of properties specifying connection information. The values in this
map will be used in establishing connection to the workflow service. The property
IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE with value either SOAP_CLIENT or REMOTE_CLIENT overwrites
the client type defined in the client configuration file.logger - a Logger valueIWorkflowServiceClient valueWorkflowExceptionpublic static IWorkflowServiceClient getWorkflowServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.lang.String serverName, java.util.logging.Logger logger) throws WorkflowException
properties - a map of properties specifying connection information. The values in this
map will be used in establishing connection to the workflow service. The property
IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE with value either SOAP_CLIENT or REMOTE_CLIENT overwrites
the client type defined in the client configuration file.serverName - a name of server from client configurationlogger - a Logger valueIWorkflowServiceClient valueWorkflowExceptionpublic static IWorkflowServiceClient getWorkflowServiceClient(java.lang.String clientType, WorkflowServicesClientConfigurationType wscc, java.util.logging.Logger logger) throws WorkflowException
WorkflowServicesClientConfigurationType object.
clientType - a String valuewscc - a WorkflowServicesClientConfigurationType object. If null, configuration file
wf_client_config.xml should be in CLASSPATH with proper setting for requested client,else WorkflowException is thrownlogger - a Logger valueIWorkflowServiceClient valueWorkflowExceptionpublic static IWorkflowServiceClient getWorkflowServiceClient(WorkflowServicesClientConfigurationType wscc, java.util.logging.Logger logger) throws WorkflowException
WorkflowServicesClientConfigurationType object
clientType - a String valuewscc - a WorkflowServicesClientConfigurationType object. If null, configuration file
wf_client_config.xml should be in CLASSPATH with proper setting for requested client,else WorkflowException is thrownlogger - a Logger valueIWorkflowServiceClient valueWorkflowExceptionpublic static BPMIdentityService getSOAPIdentityServiceClient(java.lang.String realmName, java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.util.logging.Logger logger)
realmName - a realm name, if null default realm name is usedproperties - a map of properties specifying connection information. The values in this
map will be used in establishing connection to the workflow servicelogger - a Logger valueBPMIdentityService valuepublic static BPMIdentityConfigService getSOAPIdentityConfigServiceClient(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.util.logging.Logger logger)
realmName - a realm name, if null default realm name is usedproperties - a map of properties specifying connection information. The values in this
map will be used in establishing connection to the workflow servicelogger - a Logger valueBPMIdentityConfigService valuepublic static ITaskQueryService getFederatedTaskQueryService(java.lang.String clientType, WorkflowServicesClientConfigurationType wscct, java.util.List<java.lang.String> requestedServers, java.util.logging.Logger logger) throws WorkflowException
clientType - a clientType: REMOTE_CLIENT or SOAP_CLIENT. The value overwrite all clientType values defined in wscct or in the configuration filewscct - WorkflowServicesClientConfigurationType object. If wscct is null, configuration
object is loaded from wf_client_config.xml.requestedServers - a list of server names, if null all servers from configurationsITaskQueryService value, a federated task query serviceWorkflowExceptionpublic static ITaskQueryService getFederatedTaskQueryService(WorkflowServicesClientConfigurationType wscct, java.util.List<java.lang.String> requestedServers, java.util.logging.Logger logger) throws WorkflowException
wscct - WorkflowServicesClientConfigurationType object. If wscct is null, configuration
object is loaded from wf_client_config.xml.requestedServers - a list of server names, if null all servers from configurationsITaskQueryService value, a federated task query serviceWorkflowException