This content has been marked as final.
Show 1 reply
-
1. Re: Assignment expressions
dleerob Oct 11, 2007 9:52 AM (in response to toni87)I have the same problem, using Jbpm 3.2.2.
If I use the expression:<assignment expression="group(MyGroup) --> member(Team Leader)"></assignment>
It works fine, and is assigned to the actor who is in the group "MyGroup", and has the role in that group of "Team Leader".
But, if I use:<assignment expression="variable(group) --> member(Team Leader)"></assignment>
It says the user "MyGroup" cannot be found in user db. But the variable "group" I used which has the value "MyGroup", is not a user, it's a group. And the documentation at http://docs.jboss.com/jbpm/v3.2/userguide/html/taskmanagement.html#assignmentexpressions does state:"variable(variable-name) means the user or group is taken from the specified variable instance. The variable instance can contain a java.lang.String, in which case that user or group is fetched from the identity component. Or the variable instance contains a User or Group object."
Anyone know what we are doing wrong?