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

Aadav N do-not-reply at jboss.com
Fri Dec 28 06:34:23 EST 2012


Aadav N [https://community.jboss.org/people/aadav86] 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/785199#785199

--------------------------------------------------------------
> Maciej Swiderski wrote:
>  
>  unfortunately, it is not possible with current implemented features. BPMN2 spec defines completionCondition that is evaluated at the end of each instance so that could be something useful for you but it is not yet there (you could open jira issue)  

Yeah, I will open a jira issue for this. But do I need to specify this as a feature request?
> Maciej Swiderski wrote:
> 
> does that mean you would like to assign different names to the task instances that are part of multi instance? Where task name is a data input definition and can accept expression same as GroupId. With that said your collection that is an input to the multi instance does not have to be collection of simple types like String, it could be collection of objects that can be then used to resolve the names and actors that you'd like to assign task to
> 
> 
> if your object would be like this:
>      TaskAssignmentInfo
>      String actorName
>      String taskName
> 
> then you fill in collection with instances of TaskAssignmentInfo object and pass that collection as intput to multi instance. Then in the task definition you declare that the item that will be put into task instance is taskInfo and you can refer to it for interested fields to set data inputs:
> taskInfo.getActorName() to assign task to given person
> taskInfo.getTaskName() to set the task name dynamically

Great.. This is what I exactly wanted. Any simple sample prog on this?

Thanks you very much,

Aadav
--------------------------------------------------------------

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

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/20121228/11a9b192/attachment.html 


More information about the jboss-user mailing list