Skip to main content


 

Symptoms


We have a requirement for a client event to escalate at 9 pm everyday and go to another activity do something and come back to the client event. how can I achieve this ?
 

Diagnoses


Use a dynamic 'date and time' with Today().
 

Resolution

Issue:

We have a requirement for a client event to escalate at 9 pm everyday and go to another activity do something and come back to the client event. how can I achieve this ?

I can choose specific date and time but i only want to set a specific time and not a date because when the second time the activity runs that specific date is already past and escalation fires off straight away regardless of what time it is.

One way to accomplish this is to add the following to the Dynamic field: Add Hours(Today, 21)

'Today' returns today's date with a time of 0:00:00
http://help.k2.com/onlinehelp/K2blackpearl/UserGuide/current/webframe.html_Date_and_Time.html_tracksearch=today function
Then add 21 hours to set it to 9pm.

One thing to be aware of is that the escalation is set once the activity is hit.
To clear the escalation date so it is recalculated the next time it enters that activity, you should use a 'GoTo Action':
http://help.k2.com/onlinehelp/K2blackpearl/UserGuide/current/webframe.html_EscW12.html_tracksearch=workflow goto
When the process comes back to that activity, the escalation will be recalculated.




 
Be the first to reply!

Reply