[jboss-user] [jBPM] - Re: DYnamic Task Assignment in jbpm5

Demian Calcaprina do-not-reply at jboss.com
Wed Sep 7 19:23:47 EDT 2011


Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion

"Re: DYnamic Task Assignment in jbpm5"

To view the discussion, visit: http://community.jboss.org/message/625387#625387

--------------------------------------------------------------
Hi Asad,

You should:
1) Create a process variable for the user/group name.
2) In the previous node, map the variable output with the user/group to the process variable you defined in 1)
3) In the human task node, define the ActorId or GroupId variable in input parameters to use the variable created in 1), which was filled in 2)
You can make this by user "Parameter Mapping" in eclipse, of, if you need some complex expression, you can directly use an expresion in the groupId variable, such as #{group}.

You can see a simple example in which the groupId is taken from a process variable input:
 https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/resources/dynamic-user-human-task-test.bpmn https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/resources/dynamic-user-human-task-test.bpmn

And the test is inside
 https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/HumanTaskTest.java https://github.com/calcacuervo/JBPM5-Samples/blob/master/human-tasks/src/test/java/com/test/HumanTaskTest.java
Search for the test dynamicUser()

Regards,

Demian    
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[http://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/20110907/9faf8a01/attachment.html 


More information about the jboss-user mailing list