EDIT: I have started to think about this as “conditional sub-flows”, since it will make a choice based on several conditions, and can then start a sub-flow based on that condition.
Having a good way to setup sub-flows has been talked about, you could have one flow send a webhook to a sub-flow in AP but this could get very messy very fast
Yes, but now in my use-case this is solved. I could use Dynamic Values, and that solved a bunch of “if this then that” problems.
I orginally started to build out a Master flow to send different cases to different Google sheets, and then run sub flows. But now I think I can put all into one small flow, and rely more heavily on Dynamic Values.
Am building this out as we speak.
Hi @Preben Can you please show us how you did it?
Im facing the same problem, I want to build a workflow with multiple branch legs (If XYZ is A, If XYZ is B, If XYZ is C, If XYZ is D …)
And then each one A,B,C,D… have different workflow after the branch…
This is one of THE BASICS that we use in basically every make flow and this being amiss is keeping me from even testing activepieces further and investing more into that ecosystem.
Obviously there are workarounds but I use nocode tools to have an EASIER time than when I’m coding, not a harder time.
This is on our Product Strategy board on Miro. It’s coming up soon. If you have any detailed thoughts about it, please add them here so we can work on it as per your expectations.
@ashrafsam
As per my past software developement experience,
I will extend the the concept of Sub-flows into SubRoutines or Functions Or Procedures (whatever terminology you wish)
Example.
MainFlow1 (similar to Main Function)
Some trigger → Calls FunctionA() → Pass Parameters (I,J,K) → Returns ValueA (optional)or nothing → Continue the MainFlow1
FunctionA Flow (ex. Send Email To Particular address)
FunctionA (Inputs Params I,J,K) → Do some action inside this sub-flow → Returns ValueA (optional)or nothing
Benefits
SubRoutines / Functions Can be reused by Any other FlowA, B, C, etc.
Avoid repetition of the same flow steps.
Cons
Not sure how will ActivePieces show the Step wise Real time running of SubRoutines flow
This would be an amazing feature and will be a game changer for ActivePieces.
When I think of a router, it can have multiple routes and each route can include an optional filter. This will enable a flow to have multiple tasks running in parallel (for example, posting to multiple social media accounts).
The filter will allow a single route to only execute if it matches a specific criteria (similar to a branch), otherwise it gets skipped.
The ability to orchestrate multi-subflows instead of multiple nested binary forks would be so helpful! Allowing for multi-conditional logic would allow for a defined order, a potential fall-back/catch-all option if none of the previous conditions are met, significantly reduce repetition, and streamline flows.