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

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.

Uncle Rob
Kilo Patron

Are the things the workflow is generating tasks?

Emman1
Kilo Contributor

This can be anything. It depends on what the user wants.

A workflow that generates anything, but you don't know what it should generate or when?  What's the workflow adding to the equation?

 

Why not just have them manually create the records?

Emman1
Kilo Contributor

The way we wanted it was like this:

1. User creates their own Flow using Flow designer. They design the Flow as they see fit.

2. There's a different table and/or screen where they can set a date range for each action of their created Flow. Once this Flow is running, it will check on this table if it is not within the date range for the action. If it is not, it skips and proceeds to the next action.

We understand that this may be doable through the Flow Designer. However, we want the date range to be dynamic. Thus, we think it can't be set in the Flow Designer.