[jboss-user] [jBPM] - Re: How can i get the task id ?

Maciej Swiderski do-not-reply at jboss.com
Thu Dec 20 02:02:35 EST 2012

Maciej Swiderski [https://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: How can i get the task id ?"

To view the discussion, visit: https://community.jboss.org/message/784208#784208

you need to register for events using taskService.registerForEvent method. So in your case it should be something like this

        TaskAddedHandler eventResponseHandler = new TaskAddedHandler (...);
TaskEventKey key = new TaskEventKey(TaskCreatedEvent.class, -1);
        sTaskService.registerForEvent(key, false, eventResponseHandler);

please note this is pseudo code so needs to be slightly adjusted


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121220/2f50791c/attachment.html 

More information about the jboss-user mailing list