---
category: [Homepages & Self-Service Sites, Platform and Product Extensions, Platform and Product Extensions/Home Experience, Administration & Integrations, Platform and Product Extensions/Integration, Administration & Integrations/Custom Integrations & Apps, Platform and Product Extensions/Workday Extend]
keyword: [Extend, Orchestration, Orchestration Builder]
nav: wcp_docs
parent_url: /wcp_docs/
title: >- 
  Example: Branch On Manager Condition
layout: subsection
---

### Scenario

<a id="context_N10045_N10042_N10001"></a>
You want to determine whether the employee is a manager. If the employee isn't a manager, you want to end the orchestration.

### Steps

1.  <a id="step_N10285_N1002C_N1001E_N10001"></a>From the <b>Components</b> panel, drag <b>Branch on Conditions</b> and drop it between <b>CREATE VALUES</b> and <b>CREATE WORKDAY TODAY CARD</b>. Select the <b>Branch on Conditions</b> component you just dropped and:
    1.  Double-click <b>BranchonConditions</b> to rename the step to <i>Branch on Manager</i>.
    2.  On the <b>Properties</b> panel, enter a <b>Reference Name</b> of <i>branchOnManager</i>.

2.  <a id="step_N10093_N1004E_N10042_N10001"></a>Select <b>IF</b> and enter a <b>Reference Name</b> of <i>ifManagerIsTrue</i>.
3.  <a id="step_N100A8_N1004E_N10042_N10001"></a>Click <b>Edit Properties</b>.
    1.  Delete the existing `true` boolean.
    2.  Click the <b>Add condition for value</b> icon and enter these values:

<table><thead></thead><tbody><tr><td><b>Value</b></td><td>Click the <b>+</b> icon and select <b>Data from Orchestration Steps</b> &gt; <b>CREATE VALUES</b> &gt; <b>isManager</b>.</td></tr><tr><td><b>Condition</b></td><td>Select <b>Is equal to</b>.</td></tr><tr><td><b>Value</b></td><td>Click the <b>+</b> icon and type <i>true</i>, then select <b>Add boolean true</b>.</td></tr><tr><td><b>If conditions are true</b></td><td>Click the <b>+</b> icon and type <i>true</i>, then select <b>Add boolean true</b>.</td></tr><tr><td><b>If conditions are false</b></td><td>Click the <b>+</b> icon and type <i>false</i>, then select <b>Add boolean false</b>.</td></tr></tbody></table><br/>


4.  <a id="step_N1015E_N1004E_N10042_N10001"></a>Click <b>Save</b>.
5.  <a id="step_N1016B_N1004E_N10042_N10001"></a>Click <b>Save Changes</b>, then click <b>Close</b>.
6.  <a id="step_N1017A_N1004E_N10042_N10001"></a>From the <b>Components</b> panel, drag <b>Create Values</b> and drop it into the <b>ELSE</b> flow. Select the <b>Create Values</b> component you just dropped and:
    1.  Double-click <b>CreateValues</b> to rename the step to <i>End Flow If Not Manager</i>.
    2.  On the <b>Properties</b> panel, enter a <b>Reference Name</b> of <i>endFlowIfNotManager</i>.
    3.  Click <b>Edit Properties</b>.

7.  <a id="step_N101B8_N1004E_N10042_N10001"></a>Enter these values:

<table><thead></thead><tbody><tr><td><b>Type</b></td><td>String</td></tr><tr><td><b>Key</b></td><td><i>endIfNotManager</i></td></tr><tr><td><b>Value</b></td><td>Click the <b>+</b> icon and enter a single space, then select <b>Add string " "</b>.</td></tr></tbody></table><br/>

8.  <a id="step_N1020D_N1004E_N10042_N10001"></a>Click <b>Save Changes</b>, then click <b>Close</b>.
9.  <a id="step_N10220_N1004E_N10042_N10001"></a>From the <b>Components</b> panel, drag <b>Treat as JSON</b> and drop it below <b>CREATE VALUES</b> in the <b>ELSE</b> flow. Select the <b>Treat as JSON</b> component you just dropped and:
    1.  Double-click <b>TreatasJSON</b> to rename the step to <i>End If Not Manager JSON</i>.
    2.  On the <b>Properties</b> panel, enter a <b>Reference Name</b> of <i>endIfNotManagerJSON</i>.
    3.  Click <b>Edit Properties</b>.

10. <a id="step_N10262_N1004E_N10042_N10001"></a>Click the <b>+</b> icon and select <b>Data from Orchestration Steps</b> &gt; <b>Create Values endFlowIfNotManager</b> &gt; <b>endIfNotManager</b>.
11. <a id="step_N10288_N1004E_N10042_N10001"></a>Click <b>Save Changes</b>, then click <b>Close</b>.


### Result

<a id="result_N1029B_N10042_N10001"></a>
The orchestration ends if the employee isn't a manager. Otherwise, the orchestration continues.

### Next Steps

<a id="postreq_N102A2_N10042_N10001"></a>
Add components to retrieve and create Peakon data. See [Example: Get And Create Peakon Data](/wcp_docs/otq1630014471293.html)

