public class BPMServiceClientFactory
extends java.lang.Object
implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
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
|
static java.lang.String |
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
|
static java.lang.String |
SOAP_CLIENT
SOAP_CLIENT is only for Internal use
|
| Modifier and Type | Method and Description |
|---|---|
IBPMServiceClient |
getBPMServiceClient()
Gets
IBPMServiceClint Service client instance |
IBPMUserAuthenticationService |
getBPMUserAuthenticationService()
Gets
IBPMUserAuthenticationService Service client instance |
ICaseManagementServiceClient |
getCaseManagementServiceClient()
Gets
ICaseManagementServiceClient Service client instance |
static BPMServiceClientFactory |
getInstance(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.lang.String serverName, java.util.logging.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://<host>:<port>"); 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(java.lang.String clientType, java.lang.String serverName, java.util.logging.Logger logger)
Get a BPMServiceClientFactory instance
Usage Samples: BPMServiceClientFactory factory = BPMServiceClientFactory.getInstance(BPMServiceClientFactory.REMOTE_CLIENT, serverName, logger); |
static BPMServiceClientFactory |
getInstance(WorkflowServicesClientConfigurationType wscc, java.util.logging.Logger logger)
Get a
BPMServiceClientFactory factory instance for default server defined in WorkflowServicesClientConfigurationType object |
IWorkflowServiceClient |
getWorkflowServiceClient()
Gets Workflow Service Client
|
public static final java.lang.String SOAP_CLIENT
public static final java.lang.String LOCAL_CLIENT
public static final java.lang.String REMOTE_CLIENT
public static BPMServiceClientFactory getInstance(java.util.Map<IWorkflowServiceClientConstants.CONNECTION_PROPERTY,java.lang.String> properties, java.lang.String serverName, java.util.logging.Logger logger) throws BPMServiceClientException
serverName - a name of server from client configurationlogger - a Logger valueBPMServiceClientFactory instanceBPMServiceClientException - if an error occurspublic static BPMServiceClientFactory getInstance(java.lang.String clientType, java.lang.String serverName, java.util.logging.Logger logger) throws BPMServiceClientException
clientType - client types from BPMServiceClientFactory.REMOTE_CLIENT etc.serverName - a name of server from client configurationlogger - a Logger valueBPMServiceClientFactory instanceBPMServiceClientException - if an error occurspublic static BPMServiceClientFactory getInstance(WorkflowServicesClientConfigurationType wscc, java.util.logging.Logger logger) throws BPMServiceClientException
BPMServiceClientFactory factory instance for default server defined in WorkflowServicesClientConfigurationType objectwscc - a WorkflowServicesClientConfigurationType object. If null, configuration file wf_client_config.xml should be in CLASSPATH with proper setting for requested client,else BPMServiceClientException is thrownlogger - a Logger valueBPMServiceClientFactory valueBPMServiceClientException - if an error occurspublic IWorkflowServiceClient getWorkflowServiceClient() throws BPMServiceClientException
IBPMUserAuthenticationService instanceBPMServiceClientException - if an error occurspublic IBPMUserAuthenticationService getBPMUserAuthenticationService() throws BPMServiceClientException
IBPMUserAuthenticationService Service client instanceIBPMUserAuthenticationService instanceBPMServiceClientException - if an error occurspublic IBPMServiceClient getBPMServiceClient() throws BPMServiceClientException
IBPMServiceClint Service client instanceIBPMServiceClient instanceBPMServiceClientException - if an error occurspublic ICaseManagementServiceClient getCaseManagementServiceClient() throws BPMServiceClientException
ICaseManagementServiceClient Service client instanceICaseManagementServiceClient instanceBPMServiceClientException - if an error occurs