When Executing a Human Task - The First Step is assignUserTask - I want to have trigger or start a time as soon as assignUserTask happens - Any way i can do that ?



I am using Bonita 7.1
I have a use case to track the SLA since the case was assigned to a user and the time till he closed the case

I want to start a timer as soon as AssignedToUserTask happens ?

Any help here how can this be achieved ?

2 answers

This one is the BEST answer!

What? You want to waste time with a timer? No, no, no, no, no.

Just save the start time and the end time then subtract end time from start time...


Save them as internal process variables first and then at the end of the process save them to an SLA table as business data...


PS: If this solves your problem, please mark as Resolved


Submitted by ysiddiqui on Wed, 12/16/2015 - 15:33

Hi Sean,

I want to measure the AssignedUserTask and the the time when the case is closed.

If the SLA is expired the goal is to execute a few other activities


Submitted by Sean McP on Wed, 12/16/2015 - 15:42

Ah so you can report their misgivings to higher management so they can be scolded...

you never said any of that...

see my post here (which is my way to do it):




Hey Sean,

That's pretty much my use case also a slight adjustment though - and feel free to correct me

Lemme explain -
Lets call our task "AgentTask1"
1- As soon as the cases land on the AgentTask1 - The timer would start - I want the timer to start as soon as the assignment to the user has happened.

On the same event i want a email too be sent out.

So again - looking to do all this as soon as the case in AgentTask1 is assigned to a user

** Thanks a ton for the help and Apologies if i wasn't clear before.