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 String
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 servicestatic final String
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 servicestatic final String
SOAP_CLIENT is only for Internal use -
Method Summary
Modifier and TypeMethodDescriptionGetsIBPMServiceClint
Service client instanceGetsIBPMUserAuthenticationService
Service client instanceGetsICaseManagementServiceClient
Service client instancestatic BPMServiceClientFactory
getInstance
(String clientType, String serverName, Logger logger) Get a BPMServiceClientFactory instance
Usage Samples:
BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(BPMServiceClientFactory.REMOTE_CLIENT, serverName, logger);static BPMServiceClientFactory
getInstance
(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 BPMServiceClientFactory
getInstance
(WorkflowServicesClientConfigurationType wscc, Logger logger) Get aBPMServiceClientFactory
factory instance for default server defined inWorkflowServicesClientConfigurationType
objectGets 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
- aLogger
value- Returns:
- an
BPMServiceClientFactory
instance - 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
- aLogger
value- Returns:
- an
BPMServiceClientFactory
instance - Throws:
BPMServiceClientException
- if an error occurs
-
getInstance
public static BPMServiceClientFactory getInstance(WorkflowServicesClientConfigurationType wscc, Logger logger) throws BPMServiceClientException Get aBPMServiceClientFactory
factory instance for default server defined inWorkflowServicesClientConfigurationType
object- Parameters:
wscc
- aWorkflowServicesClientConfigurationType
object. If null, configuration file wf_client_config.xml should be in CLASSPATH with proper setting for requested client,else BPMServiceClientException is thrownlogger
- aLogger
value- Returns:
- an
BPMServiceClientFactory
value - Throws:
BPMServiceClientException
- if an error occurs
-
getWorkflowServiceClient
Gets Workflow Service Client- Returns:
IBPMUserAuthenticationService
instance- Throws:
BPMServiceClientException
- if an error occurs
-
getBPMUserAuthenticationService
public IBPMUserAuthenticationService getBPMUserAuthenticationService() throws BPMServiceClientExceptionGetsIBPMUserAuthenticationService
Service client instance- Returns:
IBPMUserAuthenticationService
instance- Throws:
BPMServiceClientException
- if an error occurs
-
getBPMServiceClient
GetsIBPMServiceClint
Service client instance- Returns:
IBPMServiceClient
instance- Throws:
BPMServiceClientException
- if an error occurs
-
getCaseManagementServiceClient
public ICaseManagementServiceClient getCaseManagementServiceClient() throws BPMServiceClientExceptionGetsICaseManagementServiceClient
Service client instance- Returns:
ICaseManagementServiceClient
instance- Throws:
BPMServiceClientException
- if an error occurs
-