cancel
Showing results for 
Search instead for 
Did you mean: 

use-case for 'assignee attribute' (user task)

udoderk
Champ in-the-making
Champ in-the-making
Hi community readers,

Can someone tell me when to use assignee attribute better than humanPerformer sub element???
The assignee attribute "..is exactly the same as using a humanPerformer construct….A user task can be directly assigned to a user. This is done by defining a humanPerformer sub element...." (c. user guide).

Apart from the shorter notation, that attribute is simply redundant :roll:

I ask because I would have to generate BPMN XML.
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
It's not redundant, it's equivalent… If you're a die-hard programmer, you love to get your hands dirty in the bpmn.xml… If you look at the amount of XML that is required to set a simple assignee, activiti invented some short-cuts for this, amongst other constructs. So if you want to use pure BPMN2.0, stick with the humanPerformer-construct.

if you want to have cleaner and more readable XML and not planning on using the BPMN in another tool/engine, go for the activiti:assignee shorthand.