cancel
Showing results for 
Search instead for 
Did you mean: 

How to Set Priority and Task SLA

skhmujahid12
Champ in-the-making
Champ in-the-making
We need to Implement Task and Process SLA individually like if one of the task SLA breaches you should notify the respective user and the priority of task should get changed as per the defined SLA. Kindly provide approach and solution with some example.
7 REPLIES 7

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

priority is a task attribute -> use API to access it.
notification -> use task listeners

Examples:
org.activiti.engine.test.bpmn.usertask.TaskPriorityExtensionsTest
org.activiti.examples.bpmn.tasklistener.TaskListenerTest

in activiti source

Regards
Martin

skhmujahid12
Champ in-the-making
Champ in-the-making
Hello,

Can we define SLA at process level. If particular process is not completed within given period, an email should be sent to user.

skhmujahid12
Champ in-the-making
Champ in-the-making
Hello,

Also, How to change priority at runtime.

skhmujahid12
Champ in-the-making
Champ in-the-making
Thanks martin for the update. Can you please provide some sample for implementation. Also, let us know can we change priority at run time OR can we increase priority based SLA?

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi,

If particular process is not completed within given period, an email should be sent to user.
Use timer boundary event

How to change priority at runtime.
org.activiti.engine.TaskService#setPriority[code]

samples: check activiti source.

Regards
Martin

skhmujahid12
Champ in-the-making
Champ in-the-making
Thanks for the update. Can u pls provide link for activity source to check samples.