-
1. Re: DYnamic Task Assignment in jbpm5
calca Sep 7, 2011 7:23 PM (in response to imran.h)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:
And the test is inside
Search for the test dynamicUser()
Regards,
Demian
-
2. Re: DYnamic Task Assignment in jbpm5
amit.jsoft Nov 15, 2014 8:20 PM (in response to calca)Can, a task be assigned to both a user and group at same time ?
-
3. Re: DYnamic Task Assignment in jbpm5
salaboy21 Nov 16, 2014 5:51 AM (in response to amit.jsoft)Hi, first of all please don't ask more questions on an answered question.
You can have users and groups as potentialOwners of a task, but there will be just one actualOwner or none.
If there is just one user in the potentialOwners list, the task will be automatically assigned to that person.
HTH
Regards