Open calexh-sar opened 1 month ago
@madhurrya to check again with value in quotes
I tried the cycle start timer with these 3 formats.
When I use this format, it completes the instance immediately, so I think that format doesn't work. e.g. "R/P1D/T03H59M59S" - https://dev.app.spiff.status.im/i/4938
This format in dev.app, e.g "R5/2024-04-15T18:20:00Z/P10M" - https://dev.app.spiff.status.im/i/4921 completed this instance and created a new instance in the specified time https://dev.app.spiff.status.im/i/4922 and it is in the 'not started' state.
When I tried the same in dev.mod, "R5/2024-04-15T18:20:00Z/P10M" - https://dev.mod.spiff.status.im/i/37209 it didn't create a new instance like in dev.app, instead it changed the state from 'not started' to 'running' in the specified time. And the diagram looks like this for that.
Checked these 2 instances "R/PT20H10M59S" - https://dev.app.spiff.status.im/i/4911 - It seems this has completed about 20H10M "R/PT20H10M59S" - https://dev.mod.spiff.status.im/i/37210 - It seems this has changed to running state after about 20H10M
But they have not created new instances.
So it seems none of the above 3 formats are doing what we expect.
Found this format "R/2024-05-13T21:00/PT12H" in a camunda forum and it seems to work.
I'll try this "R/2024-05-15T00:00/PT24H" and will post the result in few days.
@calexh-sar @MarD0607 the above format seems to work.
It got triggered at UTC 12. Format - "R/2024-05-15T00:00/PT24H"
https://dev.app.spiff.status.im/process-models/misc:qa:timer-tests:cycle-start-timer-at-mid-night
Please let me know whether we can close this ticket as it works for that format.
@madhurrya thanks for checking into this. Do you still have the Camunda link where you found this solution? While we are waiting to hear back from @MarD0607 if this works for him, I am going to move this issue to Documentation so @usama9500 can check if our documentation should be updated with this information.
@calexh-sar I think this is the link I referred to. https://forum.camunda.io/t/process-to-start-at-particular-time-daily/28688/7
Tried several options to start at a specified time, not working as expected. @essweine to check.