# Make my executions DRY (Don't Repeat Yourself)

**URL:** <https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096>\
**Category:** Questions\
**Tags:** workflow-building, execute-workflow\
**Created:** [8. August 2023 um 08:50 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096 "2023-08-08T08:50:13Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hdotking](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hdotking/32/22187_2.png) [@hdotking](https://community.n8n.io/u/hdotking)\
**Post date:** [8. August 2023 um 08:50 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096/1 "2023-08-08T08:50:13Z")

</div>

## I want to reuse parts of my other executions as “starting blocks” for other workflows

The problem is that there are 3 types of `Workflow` Trigger node and it’s not clear which ones should be used where?

i.e.

- Do I let the first section of the workflow run to completion then append one of the `Workflow` nodes at the end?
- Do I then have to put another `Workflow` node at the start of the second Workflow that continues once the first workflow has completed and has passed the data to it?

In which case, which `Workflow` nodes go where?

## Information on your n8n setup

- **n8n version: latest**
- **Running n8n via (n8n cloud):**
- **Operating system: Mac M1**

---

<div class="post-metadata">

**Author:** ![EmeraldHerald](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/emeraldherald/32/35355_2.png) [@EmeraldHerald](https://community.n8n.io/u/EmeraldHerald)\
**Post date:** [9. August 2023 um 10:17 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096/3 "2023-08-09T10:17:53Z")

</div>

Hi @hdotking 👋

Let’s say you have two workflows - A and B. A is a larger workflow has the Execute Workflow node to call on another workflow, and B has the Execute Workflow trigger.

The execute workflow node allows you to call Workflow B from Workflow A, at any point in Workflow A’s execution. You can read more about that here: [Execute Workflow | n8n Docs](https://docs.n8n.io/integrations/builtin/core-nodes/n8n-nodes-base.executeworkflow/) When Workflow A hits the Execute Workflow node, it’ll send data over to Workflow B.

Workflow B would need the Execute Workflow trigger at the _start_ of its workflow. This would then run through Workflow B and the last node of Workflow B sends the data back to the Execute Workflow node in Workflow A, and then continue on with any additional nodes Workflow A might have.

You can learn more about triggers vs action nodes here: [Built-in integrations | n8n Docs](https://docs.n8n.io/integrations/builtin/)  
Let me know if that helps!

---

<div class="post-metadata">

**Author:** ![hdotking](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/hdotking/32/22187_2.png) [@hdotking](https://community.n8n.io/u/hdotking)\
**Post date:** [18. August 2023 um 16:28 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096/4 "2023-08-18T16:28:42Z")

</div>

This sounds great. I think I’ve understood this correctly. Is the following correct?

Say:

- `Workflow X` is a Google Calendar Trigger for received events for `User X`
- `Workflow Y` is a Google Calendar Trigger for received events for `User Y`
- `Workflow Z` is some large workflow that does some work after receiving a calendar event

I can use the `execute workflow node` IN `Workflow X` and `Workflow Y` to call **the same** `Workflow Z`.

Will there be any problems with `Workflow X` and `Workflow Y` with regard to concurrency or a race conditions if both `User X` and `User Y` receive a notification at the same time?

How are they queued?

---

<div class="post-metadata">

**Author:** ![EmeraldHerald](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/emeraldherald/32/35355_2.png) [@EmeraldHerald](https://community.n8n.io/u/EmeraldHerald)\
**Post date:** [21. August 2023 um 09:34 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096/5 "2023-08-21T09:34:34Z")

</div>

Hi @hdotking 👋 You got it 🙂 In the case of using `Workflow Z` as per your example, it would depend. There could be an issue though if that workflow was called at the same time for the same event.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/system/32/195824_2.png) [@system](https://community.n8n.io/u/system)\
**Post date:** [19. November 2023 um 09:35 UTC](https://community.n8n.io/t/make-my-executions-dry-dont-repeat-yourself/29096/6 "2023-11-19T09:35:29Z")

</div>

Geschlossen, am 19. November 2023 um 09:35 UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
