> For the complete documentation index, see [llms.txt](https://ieg4.gitbook.io/onevu-digital-platform/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ieg4.gitbook.io/onevu-digital-platform/openprocess-cases-and-workflow/openprocess-flex/worked-example-simple.md).

# Worked Example - Simple

Let's say you have a linear process like this for 'Report a Pothole':&#x20;

&#x20;

![Linear Process](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FogWjfJ7tEROMwWOwT65l%2Fimage.png?alt=media\&token=e822ca67-6007-4cd0-9969-db24714adade)

The process as it stands means that irrespective of the size of the pothole or its priority the issue will always be passed to the same team and have the same SLA. But what if, having reviewed the details provided you could decide whether an inspection was required and thus treat small potholes differently from big ones. If we click on the plus symbol below 'Reviewing the details' step we can add a branch:

![Adding a branch](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FU34pC8mmTaM4qZuhglPM%2Fimage.png?alt=media\&token=af0add4b-060c-4c21-93b9-907eef41de1e)

When you do this you will see your first condition. We need to give this a name and also add a condition. Before we can do this we need to create the options for the condition. We do this using the 'Fields' tab:&#x20;

&#x20;

![Fields tab in process set up](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FLRNsZ3TOqqh3anmJeED0%2Fimage.png?alt=media\&token=c0ff01f8-e5c7-4b3a-92c4-3d5e231a7304)

Let's say we want three conditions around High, Medium, Low priority we can see the choices for these below:

![Adding a choice field](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FUUkJUXnoLppF66fOgBan%2Fimage.png?alt=media\&token=41eefb20-dd1a-4c71-8192-cb59ea2cb789)

When you first add a branch it appears like this.&#x20;

&#x20;

![The first branch](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2F6MgPc7VTmUjHn1Vea2G4%2Fimage.png?alt=media\&token=2984a493-8152-4cf2-a907-3481e73252d8)

Clicking the purple 'branch' icon a further two times means we end up with three placeholders for our conditions:

&#x20;

![Multiple branches](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FVbYXufnEFAqBHGNaKEnQ%2Fimage.png?alt=media\&token=d784adbf-8a0a-4df0-ad4a-9740caa7e2d1)

Now we need to add the condition for each. The condition for each based upon what we learned about conditions earlier will be:

Fields\["PRIORITY"] == "Low"

Fields\["PRIORITY"] == "Medium"

Fields\["PRIORITY"] == "High"

E.g. the low one named and the condition added as follows:&#x20;

<br>

![Adding a condition for low priority](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FKoePzVO4VclEpeKW6oHw%2Fimage.png?alt=media\&token=f6be4e30-e07a-4ef7-9324-71ce83f3d30d)

Now, before we add steps to the 'branches' in the process we need to make it so the user needs to set a choice as a part of completing the first step. We do this by clicking the edit icon on the 'Reviewing the details' step, clicking on the 'Fields' tab and selecting the Priority choice as being mandatory to complete the step:

![Adding a mandatory field](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FNdo6HNGiYfuy2dXTzFnU%2Fimage.png?alt=media\&token=4682844d-c375-4183-a46c-b9231e7cb40a)

Doing this ensures that the priority is always known and it thus knows which branch of the process to go down. It should look like this when added:&#x20;

![The mandatory field once added](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FrvQVIRglgsnqkBGwNX0g%2Fimage.png?alt=media\&token=35a9dec1-a760-4b4c-be10-f76886da1472)

Now when a user completes this step they will see this:&#x20;

<br>

![How the user selects the choice in the mandatory field and showing validation](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2FynMk8tZ3BTuTFV2ZIvl1%2Fimage.png?alt=media\&token=eefd1673-400f-4b54-9b80-009f91eeda8e)

All that is left to do now is set the steps you want within each branch:&#x20;

<br>

![Steps added to each branch](https://3978362562-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MgKIYotuJ2G9zOHXIfg%2Fuploads%2F3gHtYX6UpqhLi9m53zbf%2Fimage.png?alt=media\&token=9437157a-d042-49d7-a312-78b86bafd436)

As we can see there are four steps and, in this case, all are specific to the branches they are linked to. These have their own SLAs, assigned to their own users and emails sent to the customer.&#x20;

{% hint style="info" %}
**Note**

If there is a common step that will exist below all branches then you would add it at the bottom below the branch rather than adding it three times i.e. once in each branch. In the above scenario, a different end step is relevant for each branch.&#x20;
{% endhint %}

&#x20;

&#x20;


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://ieg4.gitbook.io/onevu-digital-platform/openprocess-cases-and-workflow/openprocess-flex/worked-example-simple.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
