Hi bpmn2user,
Thanks for your reply, but unfortunatly I wasn't able to connect. I tried,
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
taskHandler.setConnection("10.1.5.148", 9123);
taskHandler.connect();
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
taskHandler.setClient(client);
if(client.connect())
System.out.println("OK");
else
System.out.println("NOT OK");
But on the highlighted line, I get the following error,
Exception in thread "main" java.lang.IllegalArgumentException: Could not connect task client
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect(CommandBasedWSHumanTaskHandler.java:88)
Does it make any sense to you? Is it something I'm missing in my code?
Regards,
Nelson