Shobhit Tyagi [
https://community.jboss.org/people/roxy1987] created the discussion
"Re: How to get the task workItemId"
To view the discussion, visit:
https://community.jboss.org/message/817670#817670
--------------------------------------------------------------
To get the workitem id, this is what you can do..
First you need the object Task.
TaskClient objClient = new TaskClient(new HornetQTaskClientConnector(strName, new
HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
objClient.connect(strIpAddress, intPort);
BlockingGetTaskResponseHandler objResponseHandler = new BlockingGetTaskResponseHandler();
Task objTask = new Task();
objClient.getTask(intTask, objResponseHandler);
objTask = objResponseHandler.getTask();
Once you have the object, you can use it like following to get workitem id..
intWorkItemId = objTask.getTaskData().getWorkItemId();
Regards,
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/817670#817670]
Start a new discussion in jBPM Development at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]