Using JBPM API's I am able to start the human workflow process. To retrieve the process result, I am using the below code snippet.
<code>
TaskClient taskClient = new TaskClient(new HornetQTaskClientConnector(
"client 1", new HornetQTaskClientHandler(
SystemEventListenerFactory.getSystemEventListener())));
taskClient.connect("localhost", 19191);
System.out.println("Task Connected..");
setUserGroup();
BlockingTaskSummaryResponseHandler taskSummaryResponseHandler = new BlockingTaskSummaryResponseHandler();
taskClient.getTasksAssignedAsPotentialOwner(userId, "en-UK",
taskSummaryResponseHandler);
List<TaskSummary> allTasks = taskSummaryResponseHandler.getResults();
</code>
If I change the localhost to my system host name, It's not working. Could you please suggest me the solution?
Balaji S