cancel
Showing results for 
Search instead for 
Did you mean: 

Integrate of the SLA in Activiti

jchidiac
Champ in-the-making
Champ in-the-making
Hi,
it's possible to integrate the SLA in Activiti?
the sla is the To implement a time between two activities.
6 REPLIES 6

jbarrez
Star Contributor
Star Contributor
I don't quite get your question.

Are you asking if it is possible to have a certain amount of time between activities? That would be an intermediate timer event.
Or do you need to verify that between two activities (eg tasks), a certain time threshold shouldn't be crossed? In that case, the answer is no: Activiti does not have the capabilities for that and it's also not planned fot the GA release in november.

jchidiac
Champ in-the-making
Champ in-the-making
it's a certain time threshold shouldn't be crossed.

It's possible to find a solution to implement this require in the Activiti ? 

thx.

jbarrez
Star Contributor
Star Contributor
Now I understand your question.

You definitely can define timers on any activity. For example you can have a task, and put a boundary timer event on it (it's in alpha3 which is released today).
When the timer fires, it follows all the sequence flow attached to that event, allowing you to implement any SLA you'd like.

jchidiac
Champ in-the-making
Champ in-the-making
the SLA is related to One Activity or Tow activities, and the tow activities may not be sequential.

it will be define like the sequenceFlow :  <sequenceFlow id="flow1" sourceRef="request" targetRef="handleRequest" />
ex : <sla id="sla1" sourceRef="" sourceEvent=""  targetRef="" time="" targetEvent="" />
the time Value will be calcauled depending on a calendar or other parameters.

sourceEvent/ TargetEvent = Start, End, … meaning when the activity start or the activity end.

so when the workflow start the sourceRef (related to the sourceEvent)  and it's related to the SLA, should be fire an action
(to be defined)
and when workflow start the targetRef (related to the targetEvent) should be fire an action
(to be defined).

the Action wil be an internat action or external api to call.

jbarrez
Star Contributor
Star Contributor
Yes, this will be possible with Activiti, using event listeners (eg. on activity-enter, activity-leave, sequenceflow-taken, etc.), that are attached to activitities or sequenceflow and delegate to a custom (or predefined) Java service.

It's not yet in Activiti, but it is definitely a must have feature for the 5.0 GA release.

jchidiac
Champ in-the-making
Champ in-the-making
ok good
thx u.