[jboss-user] [jBPM] - Re: User Task inside Multiple Instances node to do concurrent User Task assignments

Maciej Swiderski do-not-reply at jboss.com
Thu Dec 27 10:18:28 EST 2012


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

"Re: User Task inside Multiple Instances node to do concurrent User Task assignments"

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

--------------------------------------------------------------
> Aadav N wrote:
> 
> 
> 1) In that case how can I associate the task name to the number of User Tasks triggered? How can I overwrite the implementation of Multiple Instances construct so that I can associate different task names with different user tasks whose information gets stored in I18NText?
> 
Not sure why you need to match these two? With multi instance each node instance will be of the same type - will have same task name, what will differ is the data pushed into that node instance - in your case human task. If you have requirement to somehow reset list of approvers after first iteration then you would need to prepare it up front and make sure a ready collection will be available for multi instance.


> Aadav N wrote:
> 
> 2) Yes, I'm fine with the explicit loop construct and the "Async" property on Multiple Instances is possible..?
in general, multi instance (as every other construct) is synchronous and to make it async it's to make the handler that takes care of particular work item async. For human tasks it's already done. So in your case mutli instance will create all tasks and then will wait untill all of them are completed. Completion of the tasks can be done in any order and asynchronously.

HTH
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/785091#785091]

Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20121227/d3b1ff8e/attachment-0001.html 


More information about the jboss-user mailing list