Is it possible to Skip actions in a Flow without setting it in the Flow Designer?

Emman1
Kilo Contributor

Good day,

Background:

We need to create a Flow via Flow Designer without a flow logic.

find_real_file.png

We would like this flow to run but make it so that it can skip one or two Actions.


Question:

Is it possible to Skip "Action 1" once the flow is run using anything within Service Now (Script, Business Rule, etc.) without modifying the said flow?

We have tried changing the stage status (stage_state table) of a specific context (sys_flow_context), but it does not actually skip the action.

9 REPLIES 9

Uncle Rob
Kilo Patron

Possibly possible with some unhealthy hacking.  WHy would you want to though?  Wouldn't it be MUCH easier to capture the conditionality within the flow?

Emman1
Kilo Contributor

Thank you for the fast reply.

How unhealthy are we talking about here?

We want this because we want the flow to be very dynamic in its execution. Dynamic in the sense that we want to use one common Flow but depending on certain conditions (without being defined in the flow itself), it skips one or more actions.

Make a table to store the conditions.
Make it data driven.

Emman1
Kilo Contributor

I can't say I have an idea how to do this. But I will try to look into this.

Thank you.