# Getting sequence of work flows wiser

**URL:** <https://forum.bubble.io/t/getting-sequence-of-work-flows-wiser/164>\
**Category:** Idea\
**Created:** [September 4, 2015, 12:19pm UTC](https://forum.bubble.io/t/getting-sequence-of-work-flows-wiser/164 "2015-09-04T12:19:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [September 4, 2015, 12:19pm UTC](https://forum.bubble.io/t/getting-sequence-of-work-flows-wiser/164/1 "2015-09-04T12:19:25Z")

</div>

While I’m adding several security verifications before important user’sactions, it’s getting more and more difficult to keep workflows clean and readable.

Here an illustration of reccurent processes. Let’s say I need to do some verifications before I create a new Order. So the basic sequence is **Verification\_1 \> Verification\_2 \> Create new Order.**  
If these verifications identify a problem, I usally display a warning popup.

To do this, ss there another way than this following process ?

_Workflow1 :_  
_Trigger Worflow2 when (Verification\_1=true)_  
_\> Trigger Workflow3 when (Verification\_1=false)_

_Workflow 2 : Warning pop-up for Verification\_1_

_Workflow 3 :_  
_Trigger Worflow4 when (Verification\_2=true)_  
_\> Trigger Workflow5 when (Verification\_2=false)_

_Workflow 4 : Warning pop-up for Verification\_2_

_Workflow 5 : Create new Order !_

Workflows are getting laborious and each verification has to been write twice (not wise code - often inverting AND / OR when there are several conditions for a verification).

To keep this idea of sequencial workflow, **have you thought to a checkbox “Stop this worklow when it is…true/false”** for “Trigger an event” and “Trigger an event from a RE” actons ?

Then in my case I would write only once each verification conditions and it’d be easier to program :

_Workflow1 :_  
_Trigger Worflow2 when (Verification\_1=true & Stop this worklow when it is true)_  
_\> Trigger Worflow3 when (Verification\_2=true & Stop this worklow when it is true)_  
_\> Create new Order !_

_Workflow 2 : Warning pop-up for Verification\_1_  
_Workflow 3 : Warning pop-up for Verification\_2_

Thks for telling me your thoughts about it.

---

<div class="post-metadata">

**Author:** ![NicolasDap](https://avatars.discourse-cdn.com/v4/letter/n/c2a13f/32.png) [@NicolasDap](https://forum.bubble.io/u/NicolasDap)\
**Post date:** [November 11, 2015, 11:31am UTC](https://forum.bubble.io/t/getting-sequence-of-work-flows-wiser/164/2 "2015-11-11T11:31:22Z")

</div>

2 months later, still thinking again about it, I guess a better idea would be a new Custom Event action like

When CONDITION,  
is true, Trigger WORKFLOW A  
is false, Trigger WORKFLOW B

it would not reduce the amount of Workflows for the exemple above, but would reduce the number of logic conditions needed to write so it would be easier to keep current.
