How to stop the next task of a flow - not with conditions... as I need else | XM Community
Skip to main content

Is there a secret code 🙂 to put in a code task that will end the workflow if a specific criteria is or isn’t met? something like endWorkflow: true or false and it will actually not continue to the next tasks in the workflow? thanks ​@TomG  ​@Nam Nguyen 

 

Is there a secret code 🙂 to put in a code task that will end the workflow if a specific criteria is or isn’t met? something like endWorkflow: true or false and it will actually not continue to the next tasks in the workflow? thanks ​@TomG  ​@Nam Nguyen 

@deveer2024 There is no secret code to DIRECTLY end the Workflow but you can acctually put a condition between the task and set it according to the previous CodeTask. Like this

Hope it helps


@deveer2024,

If a task returns a status or data, you can base the next condition on what the previous task returns.


@TomG and ​@Nam Nguyen  thanks a lot, truly,. My issue is  I need if X then do Y and if Y then do Z, and there’s no ELSE option… only if I do it in a code. Also, I’m having hard time to add conditions, for some reason if the workflow is built in many cases I can only add task….


Leave a Reply