WorkflowServicesClientConfigurationType wscct =
new WorkflowServicesClientConfigurationType();
wscct.setClientType(WorkflowServiceClientFactory.REMOTE_CLIENT);
List
ServerType server1 = new ServerType();
server1.setDefault(true);
server1.setName("HcmSOAServer");
servers.add(server1);
RemoteClientType rct1 = new RemoteClientType();
rct1.setServerURL("t3://ss-cmpq02.us.oracle.com:8001");
rct1.setInitialContextFactory("weblogic.jndi.WLInitialContextFactory");
rct1.setParticipateInClientTransaction(false);
server1.setRemoteClient(rct1);
IWorkflowServiceClient client =
WorkflowServiceClientFactory.getWorkflowServiceClient(wscct, null);
ITaskService taskSvc = client.getTaskService();
ITaskQueryService taskQuerySvc = client.getTaskQueryService();
IWorkflowContext ctx = taskQuerySvc.authenticate("employee", "Welcome1".toCharArray(), "jazn.com");
No comments:
Post a Comment