How to skip process tasks based on condition in linear process flow?

Hi All,
I want a single line linear Camunda flow that will have multiple timers and associated process tasks (http-connectors that will send post calls). The timers are datetime timers with UTC datetime given to them.


say I start the process instance today and if the first two timers are pointing to UTC datetime that is already passed (eg:last year). In that case i am aware that the timer will complete immediately and complete the next task. But i want the process task in between the expired timers also to be skipped and the flow should directly come and wait on the third timer. Any way to achieve this without branching ?
Regards,
Sidharthan J

Hello my dear!

I never tried to do it this way, but I believe that if you put the “Implementation” as an “Expression”, and do the UTC validation inside this expression, it should work to execute your current activity or move on to the next one. (Not sure, but I think it works.)

And if you’re doing this with code, it’s also simple, just call your activity inside an if/else block, searching for the variable that stores your UTC and validating it.

Hope this helps.

Regards
William Robert Alves

1 Like

Hi William ,
I have already configured the process instances to be of type connector to do http post calls to my API.
So I think for now I will go with validating inside the API as you have suggested.
Regards,
Sidharthan.J

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.