Not able to start the process in 5 mins interval

Certified Senior Developer

Hi all,

I have a requirement where I need to call a process model in every 5 mins. Also if the minutes are in 5 series like 05, 10, 15... then only further process need to be executed. If I have started the process model at 9" 31 AM" then it should introduce the waittime of another 4 mins and then only execute further.

Current configuration -

1, Start node is configured with the constant -> just to ON and OFF the auto execution.

2.. Tried to find the required time and assigned that as a expression in "Delay until the date and time specified by this expression:" as below - 

a!localVariables(
local!now: now(),
local!minuteNow: minute(local!now),
local!extraMinutes: if(
mod(local!minuteNow, 5) = 0,
0,
5 - mod(local!minuteNow, 5)
),
local!adjustedDateTime: datetime(
year(local!now),
month(local!now),
day(local!now),
hour(local!now),
local!minuteNow + local!extraMinutes,
0
),
local!adjustedDateTime
)

Somehow Start node is not understanding and simply going ahead. The delay is not getting introduced.

How to achieve this?

  Discussion posts and replies are publicly visible