Subflow

JanaT
Tera Contributor

Hi community.

I created the following flow:

flow.JPG

 

I now wanted to create a Subflow, but I don't know what step needs to be done after the if-clause. It might be very simple and easy but I just can't figure it out. If clause is true then the next step on the flow should continue (Post Incident Details)

The Subflow:

subflow.JPG

2 REPLIES 2

Mark Manders
Mega Patron

Create an output in your flow and use the 'get flow outputs' function to proceed.

I do hope this subflow is doing more than just this? Why not just create a custom action for this? Or make it more dynamical: evaluate the instance_name and do the logic in the flow itself. Creating reusable objects is great, but not if it's more work to apply this than just a simple check on the instance name, which could be done through a flow variable.


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark

Sandeep Rajput
Tera Patron
Tera Patron

@JanaT Instead of creating a separate subflow, you should keep the main flow and add if block in it. In your main flow, you should Look up the system property then apply the if check, if the instance_name is prod then call Post Incident Details action other wise proceed with the next step.

 

This is how your main flow should look.

 

Mainflow.JPG