Package oracle.bpm.client
Class BPMServiceClientFactory
java.lang.Object
oracle.bpm.client.BPMServiceClientFactory
- All Implemented Interfaces:
Serializable
Creates instance of IWorkflowServiceClient, IBPMUserAuthenticationService or IBPMServiceClient.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLOCAL Clients will access the BPM and Workflow Services through Local EJB layer Client calls will become local ejb calls made directly to the EJB implementing the servicestatic final StringREMOTE Clients will access BPM and Workflow Services through Remote EJB layer Client calls will become remote ejb calls made directly to the EJB implementing the servicestatic final StringSOAP_CLIENT is only for Internal use -
Method Summary
Modifier and TypeMethodDescriptionGetsIBPMServiceClintService client instanceGetsIBPMUserAuthenticationServiceService client instanceGetsICaseManagementServiceClientService client instancestatic BPMServiceClientFactorygetInstance(String clientType, String serverName, Logger logger) Get a BPMServiceClientFactory instance
Usage Samples:
BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(BPMServiceClientFactory.REMOTE_CLIENT, serverName, logger);static BPMServiceClientFactorygetInstance(Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String> properties, String serverName, Logger logger) Get a BPMServiceClientFactory instance
Usage Samples:
For remote EJB clients
Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties = new HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, BPMServiceClientFactory.REMOTE_CLIENT);
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://: ");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "welcome1");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "demoadmin");
BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(properties, null);static BPMServiceClientFactorygetInstance(WorkflowServicesClientConfigurationType wscc, Logger logger) Get aBPMServiceClientFactoryfactory instance for default server defined inWorkflowServicesClientConfigurationTypeobjectGets Workflow Service Client
-
Field Details
-
SOAP_CLIENT
SOAP_CLIENT is only for Internal use- See Also:
-
LOCAL_CLIENT
LOCAL Clients will access the BPM and Workflow Services through Local EJB layer Client calls will become local ejb calls made directly to the EJB implementing the service- See Also:
-
REMOTE_CLIENT
REMOTE Clients will access BPM and Workflow Services through Remote EJB layer Client calls will become remote ejb calls made directly to the EJB implementing the service- See Also:
-
-
Method Details
-
getInstance
public static BPMServiceClientFactory getInstance(Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY, String> properties, String serverName, Logger logger) throws BPMServiceClientExceptionGet a BPMServiceClientFactory instance
Usage Samples:
For remote EJB clients
Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties = new HashMap<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String>();
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.CLIENT_TYPE, BPMServiceClientFactory.REMOTE_CLIENT);
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_PROVIDER_URL, "t3://: ");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_CREDENTIALS, "welcome1");
properties.put(IWorkflowServiceClientConstants.CONNECTION_PROPERTY.EJB_SECURITY_PRINCIPAL, "demoadmin");
BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(properties, null);- Parameters:
serverName- a name of server from client configurationlogger- aLoggervalue- Returns:
- an
BPMServiceClientFactoryinstance - Throws:
BPMServiceClientException- if an error occurs
-
getInstance
public static BPMServiceClientFactory getInstance(String clientType, String serverName, Logger logger) throws BPMServiceClientException Get a BPMServiceClientFactory instance
Usage Samples:
BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(BPMServiceClientFactory.REMOTE_CLIENT, serverName, logger);- Parameters:
clientType- client types from BPMServiceClientFactory.REMOTE_CLIENT etc.serverName- a name of server from client configurationlogger- aLoggervalue- Returns:
- an
BPMServiceClientFactoryinstance - Throws:
BPMServiceClientException- if an error occurs
-
getInstance
public static BPMServiceClientFactory getInstance(WorkflowServicesClientConfigurationType wscc, Logger logger) throws BPMServiceClientException Get aBPMServiceClientFactoryfactory instance for default server defined inWorkflowServicesClientConfigurationTypeobject- Parameters:
wscc- aWorkflowServicesClientConfigurationTypeobject. If null, configuration file wf_client_config.xml should be in CLASSPATH with proper setting for requested client,else BPMServiceClientException is thrownlogger- aLoggervalue- Returns:
- an
BPMServiceClientFactoryvalue - Throws:
BPMServiceClientException- if an error occurs
-
getWorkflowServiceClient
Gets Workflow Service Client- Returns:
IBPMUserAuthenticationServiceinstance- Throws:
BPMServiceClientException- if an error occurs
-
getBPMUserAuthenticationService
public IBPMUserAuthenticationService getBPMUserAuthenticationService() throws BPMServiceClientExceptionGetsIBPMUserAuthenticationServiceService client instance- Returns:
IBPMUserAuthenticationServiceinstance- Throws:
BPMServiceClientException- if an error occurs
-
getBPMServiceClient
GetsIBPMServiceClintService client instance- Returns:
IBPMServiceClientinstance- Throws:
BPMServiceClientException- if an error occurs
-
getCaseManagementServiceClient
public ICaseManagementServiceClient getCaseManagementServiceClient() throws BPMServiceClientExceptionGetsICaseManagementServiceClientService client instance- Returns:
ICaseManagementServiceClientinstance- Throws:
BPMServiceClientException- if an error occurs
-