cancel
Showing results for 
Search instead for 
Did you mean: 

Diferences between activiti:assignee and <potentialOwner>

eldiegos
Champ in-the-making
Champ in-the-making
In the eclipse designer we have to fill the value activiti:assignee in order to set the group to one task. But it doesn't work at all when i deploy the bpmn20.xml file. Instead of this i have found in you examples some xml proccesses where you use the xml-element potentialOwner and humanPerformer.

what is the diference between all of them?, which is best?

<potentialOwner>
        <resourceAssignmentExpression>
          <formalExpression>management</formalExpression>
        </resourceAssignmentExpression>
      </potentialOwner>

      <humanPerformer>
        <resourceAssignmentExpression>
          <formalExpression>${employeeName}</formalExpression>
        </resourceAssignmentExpression>
      </humanPerformer> 

Some help?
5 REPLIES 5

frederikherema1
Star Contributor
Star Contributor
Hi,

The humanPerformer > resourceAssignmentExpression > formalExpression is the BPMN 2.0 way of handling the assignment of the task. This is quite verbose, that's why activiti offers a shorter way of doing this, using the activiti extension "activiti:assignee" attribute.

This (and more detailed explanation) can be found in the userguide (http://activiti.org/userguide/index.html#bpmnUserTask , section User Assignment).

frederikherema1
Star Contributor
Star Contributor
The potentialOwner construct also has a activiti-extention shorthand, the activiti:candidateUsers and activiti:candidateGroups.

Big difference between potentialOwner and humanPerformer is that humanPerformer determines assignee, while potentialOwner only determines which user/group can be an assignee…

eldiegos
Champ in-the-making
Champ in-the-making
Thank you very much.

If i edit manually the bpmn20.xml file it works now. The problem is the export process from .diagram to bpmn20.xml in eclipse.

It generates a wrong bpmn20.xml file.

I'm going to open a issue in Jira.

wyganjo
Champ in-the-making
Champ in-the-making
Hello experts,
After I assign a user task to a candidate group, and one member of the candidate group claims it, is it possible to get the user name of the person who claimed the task. For instance, if I assign a task to the group management, and Charles who is part of management claims it, can I get the the name Charles as an attribute to use in a subsequent task or message?
thanks.

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

In this case Charles is new task's assignee.

Regards
Martin