cancel
Showing results for 
Search instead for 
Did you mean: 

Setting task priority via BPMN XML

thilo_ginkel
Champ in-the-making
Champ in-the-making
Hi there,

I am aware of
but apparently I am missing something terribly obvious:

With Activiti 5.7 I can't seem to manage setting a custom task priority via the bpmn20.xml.

Example:
<userTask id="usertask3" name="High" activiti:assignee="assignee" activiti:priority="75">
    […]
</userTask>
At runtime, this will instantiate a task, which has the default priority (50) assigned.

I also had a look at BPMNParse.java and could not find a place where the priority extension attribute is parsed (just assignee, candidateUsers, candidateGroups and dueDate).

Am I missing something obvious or is this feature currently not implemented?

Thanks,
Thilo

P.S.: If this is currently unimplemented in the runtime, would you accept a patch that enables this feature?
4 REPLIES 4

trademak
Star Contributor
Star Contributor
Hi,

Right, it's not supported right now to do this via BPMN 2.0 XML.
If you can create a patch including unit tests than I'll make sure it's added to trunk.

Best regards,

thilo_ginkel
Champ in-the-making
Champ in-the-making
Excellent. I have created http://jira.codehaus.org/browse/ACT-985 to track this feature, but can't seem to find a way to assign the issue to me. The patch (incl. unit tests) is ready, but I need to sort out some legal stuff before contributing it.

thilo_ginkel
Champ in-the-making
Champ in-the-making
A patch is now attached to the JIRA issue.

trademak
Star Contributor
Star Contributor
Okay great.

Thanks,