# Workflow invocation from other

**URL:** <https://forum.ansible.com/t/workflow-invocation-from-other/30189>\
**Category:** AWX Project\
**Created:** [April 25, 2019, 5:47pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189 "2019-04-25T17:47:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [April 25, 2019, 5:47pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189/1 "2019-04-25T17:47:14Z")

</div>

Hi Team,

We have the two workflows second workflow needs to get executed based on the outcome of first workflow, I would like to know if we have such mechanism to execute the workflow.

If yes, can we schedule second workflow based on result of first workflow.

Regards.  
Nilesh

---

<div class="post-metadata">

**Author:** ![matburt](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/matburt/32/3612_2.png) [@matburt](https://forum.ansible.com/u/matburt)\
**Post date:** [April 25, 2019, 7:22pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189/2 "2019-04-25T19:22:40Z")

</div>

You _can_ embed workflows now into other workflows so that seems entirely possible.

---

<div class="post-metadata">

**Author:** ![RC1](https://avatars.discourse-cdn.com/v4/letter/r/85f322/32.png) [@RC1](https://forum.ansible.com/u/RC1)\
**Post date:** [April 30, 2019, 6:13am UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189/3 "2019-04-30T06:13:28Z")

</div>

Hi Nilesh ,

Please let me know if the following steps helped you achieve the desired outcome -

1. Create a workflow template

2. Go to workflow visualizer

3. Add jobs into the workflow template. In this case add workflow template as a node to the workflow template.

4. Select RUN type as per choice (ex: Alaways,On Success, On Failure)

5. This will help in executing 2nd workflow after outcome of the 1st workflow.

Best Regards.

---

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [April 30, 2019, 3:54pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189/4 "2019-04-30T15:54:09Z")

</div>

Hi Rc\_nec

Running separate workflow is working fine, but I wanted to know how to run workflow2 from workflow1.

eg

workflow2

job2temp1 → job2temp2 → job2temp3 → job2temp4

workflow1  
job1temp1 → job1temp2 → job1temp3 → job1temp4 **→ workflow2**

---

<div class="post-metadata">

**Author:** ![Nilesh\_Jaiswal](https://avatars.discourse-cdn.com/v4/letter/n/5f9b8f/32.png) [@Nilesh\_Jaiswal](https://forum.ansible.com/u/Nilesh_Jaiswal)\
**Post date:** [May 15, 2019, 12:32pm UTC](https://forum.ansible.com/t/workflow-invocation-from-other/30189/5 "2019-05-15T12:32:02Z")

</div>

Hello Friends,

Please let me know if anyone has tried below use case and provide the valuable input.

Thank you  
Nilesh
