2 Replies Latest reply on Apr 16, 2009 9:18 PM by bradsdavis

    Assigning task to a Group with variable(variable-name) doesn



      I'm using Jbpm 3.2.6. According to documentation http://docs.jboss.com/jbpm/v3.2/userguide/html/taskmanagement.html#assignmentexpressions, it says:

      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

      However, if I use the expression variable(variable-name) to assign a task in my process definition, and my 'variable-name' value is the name of an existing Group, an exception is thrown:
      Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: couldn't resolve assignment expression 'variable(RoleToObtainQuote)'
       at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:97)
       at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignmentDelegation(TaskMgmtInstance.java:313)
       at org.jbpm.taskmgmt.exe.TaskMgmtInstance.performAssignment(TaskMgmtInstance.java:267)
       ... 130 more
      Caused by: org.jbpm.identity.assignment.ExpressionAssignmentException: user 'IF-Other Maintenance Leader' couldn't be fetched from the user db
       at org.jbpm.identity.assignment.ExpressionAssignmentHandler.getUserByName(ExpressionAssignmentHandler.java:209)
       at org.jbpm.identity.assignment.ExpressionAssignmentHandler.resolveFirstTerm(ExpressionAssignmentHandler.java:138)
       at org.jbpm.identity.assignment.ExpressionAssignmentHandler.assign(ExpressionAssignmentHandler.java:75)
       ... 132 more

      It says the USER couldn't be fetched from the DB, but according to docs, shouldn't it also look if its a GROUP? As in my case, it is a Group, and that Group does exist in the DB.

      Any ideas?