cancel
Showing results for 
Search instead for 
Did you mean: 

Adding custom properties to BPMN tasks

jlilley
Champ in-the-making
Champ in-the-making
I would like to attach some custom properties to Tasks in BPMN without directly editing the XML.  Is there a place in the designer where I can just enter any arbitrary property/value pair?  Or is there some more complex process that must be done?
4 REPLIES 4

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

You can use extension elements for this purpose. I do not know whether there is a place in the editor where to put these extension elements, but extension elements are part of BPMN 20 standard and are implemented in activiti.

Regards
Martin

jlilley
Champ in-the-making
Champ in-the-making
Thanks Martin.  I also see there is a "form key" in the designer for User Task.  We will be building custom UI around user tasks and calling complete() programatically.  Given that, could I use "form key" for my own purposes as a key into our UI asset list?  How would I query that piece of information from the Task object in Java?
Cheers
john

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi John,

could I use "form key" for my own purposes as a key into our UI asset list?
Yes, this attribute is meant exactly for this.

How would I query that piece of information from the Task object in Java?

org.activiti.bpmn.model.UserTask#formKey

Regards
Martin

jlilley
Champ in-the-making
Champ in-the-making
Thanks!