1 Reply Latest reply on Jul 23, 2010 9:13 PM by HuiSheng Xu

    BPMN equivalent of AssignmentHandler?

    Jamie Balling Newbie

      I am successfully using jPDL with an AssignmentHandler to programatically assign a task.

       

          <task name="review" >
              <assignment-handler class="mypackage.AssignBySomeRule">
                  <field name="ruleName">
                      <string value="exampleAssignmentRuleName" />
                  </field>
              </assignment-handler>   
              <transition to="approval" />
          </task>

       

      Is it possible to accomplish this with BPMN? I know there is a "resourceAssignmentExpression", but it isn't clear that this can do the same thing.

       

        <userTask id="myTask" name="My task">
          <potentialOwner resourceRef="manager" jbpm:type="group">
            <resourceAssignmentExpression>
              <formalExpression>management</formalExpression>
            </resourceAssignmentExpression>
          </potentialOwner>
        </userTask>

       

      Can the "formalExpression" invoke arbitrary java classes or does it need to use process variables to evaluate to a user or group name?

       

      Thanks!