cancel
Showing results for 
Search instead for 
Did you mean: 

User Task: set the task priority, set the task state

udoderk
Champ in-the-making
Champ in-the-making
Hi all,

is it possible to define and set
1. the user task priority
     1.1 the set of the possilbe user task priorities

2. the user task state
     2.1 the set of the possilbe user task states

into bpmn20.xml  ?

Thanks,
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
1. the user task priority

No, only programmatically.
In Alfresco, a custom taskListener (onCreate) is used to do that automatically.

1.1 the set of the possilbe user task priorities

Those are just a number in the database. You can assign any value you like (though we provide out of the box some possible values, but you don't need to use those if you dont want to)

2. the user task state

Please define what you mean by 'state'?

udoderk
Champ in-the-making
Champ in-the-making
1. the user task priority

Please define what you mean by 'state'?

State is an abstract concept, which should be defined in Activiti itself. For example, a state of processing a bugfix:
    open
    In processing
    done
etc.

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
Bpmn itself has no notion of user task states… Things like open, unclaimed, claimed, etc are not specified. They are in e.g. Ws-humantask (which is very extensive) and in a more simple version in activiti. Claiming, unclaiming etc can be done via the api.

The only thing I find missing in activiti is te difference between a task being assigned and working on it actually started. Maybe I'll file a jira for this.