[jboss-dev-forums] [jBPM Development] - Re: How to get the task workItemId

Shobhit Tyagi do-not-reply at jboss.com
Tue May 14 11:00:00 EDT 2013


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&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130514/92761a8f/attachment.html 


More information about the jboss-dev-forums mailing list