port = new Integer(properties.getProperty("jbpm.console.task.service.port"));
} catch (IOException e) {
throw new RuntimeException("Could not load jbpm.console.properties", e);
}
client = new TaskClient(new MinaTaskClientConnector("org.drools.process.workitem.wsht.WSHumanTaskHandler",
new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
boolean connected = client.connect(ipAddress, port);
if (!connected) {
throw new IllegalArgumentException(
"Could not connect task client");
}