cancel
Showing results for 
Search instead for 
Did you mean: 

Prioritization Support in Activiti

keymaster
Champ in-the-making
Champ in-the-making
Hello.
I read in
http://forums.activiti.org/content/job-acquisition-filter
and
https://github.com/Activiti/Activiti/wiki/Activiti-configuration-%285.13%29
about plans to add prioritization to Activiti. Is it already in the git repository or are there still plans to do it in 5.13?
Regards, Wolf
5 REPLIES 5

jbarrez
Star Contributor
Star Contributor
> about plans to add prioritization to Activiti. Is it already in the git repository or are there still plans to do it in 5.13?

No, not yet planned. It is something which we really like to have, but also difficult to get right.
What do you think would be a good approach? What makes a job more important than other ones? How would you configure it?

keymaster
Champ in-the-making
Champ in-the-making
Hello Joram,

we are thinking of a priority given as a parameter to the RuntimeService.startProcessInstanceBy* calls and then giving it to each called SubProcess instance and so on. The prioirty will be store in ACT_RU_EXECUTION. The JobExecuter takes this priority into account.

What do you think?

Regards, Wolf

jbarrez
Star Contributor
Star Contributor
Makes sense, altough you probably can also store it in the process definition (maybe custom extension element) so you don't need to put it in the DB.

keymaster
Champ in-the-making
Champ in-the-making
This approach does not match our requirements. We habe different priorized orders using the same process definitions. If we create a pull request after we have a stable solution using jobs and executions, is there a chance to merge this pull request into the main branch?
Regards, Wolf

frederikherema1
Star Contributor
Star Contributor
Depends on how generic the solution is. Chances are, we'll not be using the suggested implementation. However, if you see it's difficult to plug in your implementation in a vanilla-activiti (not having to change activiti-sources but only configure it using your custom classes) we should make sure it's easier to extend activiti with custom job-handling. The solution you suggest can become part of activiti as an "optional" configuration you can alter in order to use the mechanism suggested by you.