-
1. Re: Async workitem handler not working in jbpm 6.0.1?
salaboy21 Mar 9, 2014 3:29 PM (in response to eilagar)Hi Munish,
If you are planning to work with Manual tasks, why are you involving a thread into the mix?
If it is a manual task you can just create an application that loads the right workItemId and then complete it when the manual task is ready.
HTH
-
2. Re: Async workitem handler not working in jbpm 6.0.1?
eilagar Mar 10, 2014 12:43 AM (in response to salaboy21)Hi Mauricio,
Thanks for the prompt rely. Can you point me to an example how I can do it propery?
/Munish
-
3. Re: Async workitem handler not working in jbpm 6.0.1?
salaboy21 Mar 10, 2014 5:49 AM (in response to eilagar)Well it really works as human tasks are working just simpler.
Try to create an example of the following:
1) A process with a manual task in it
2) register the ManualTaskWorkItemHandler to the kie session
3) the ManualTaskWorkItemHandler in the execute method it needs to register somewhere (probably your own data storage/db/file/etc) that a manual task is pending and inside it needs to store the workItemId that is associated with that task
4) when the manual task is completed just pick the workItemId that you have stored and using the kiesession.getWorkItemManager().completeWorkItem method complete the work item with the correspondent outputs.
No threads involved.. keep it as simple as possible and share your problems if you find them
HTH