Skip to content

Commit

Permalink
add back text
Browse files Browse the repository at this point in the history
  • Loading branch information
burnettk committed Jan 3, 2025
1 parent b2faed0 commit 4030294
Showing 1 changed file with 38 additions and 28 deletions.
66 changes: 38 additions & 28 deletions docs/Building_Diagrams/exclusivegatewayexample.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,43 +12,48 @@ This example demonstrates the use of an Exclusive Gateway to manage conditional
1. **User Task: Show User Form**

![User Task](images/exclusivegatewayexample1.png)

- **Purpose**: Captures user data which influences pathway decisions.
- **Form Configuration**:
```json
{
"title": "First Name Required",
"type": "object",
"required": ["firstName"],
"properties": {
"firstName": {
"type": "string",
"title": "First name",
"default": "Chuck"
}
}
}
```
- **Role**: Collects inputs that determine the execution path through the Exclusive Gateway.

```json
{
"title": "First Name Required",
"type": "object",
"required": ["firstName"],
"properties": {
"firstName": {
"type": "string",
"title": "First name",
"default": "Chuck"
}
}
}
```

- **Role**: Collects inputs that determine the execution path through the Exclusive Gateway.

2. **Exclusive Gateway**: Evaluates the `firstName` property from the form to decide the subsequent pathway.

**Sequence Flows**:
**Sequence Flows**:

**a**. **Others**: Leads to a general greeting for users not named "Chuck."

![Sequence Flows](images/exclusivegatewayexample3.png)

**For 'Others' Sequence Flow**:

- **Condition Expression**: `firstName != "Chuck"`
- Goes to **Manual Task**: "Hello to Others" displays a greeting to non-Chuck users.

**a**. **Others**: Leads to a general greeting for users not named "Chuck."
**b**. **Chuck**: Directs to a personalized greeting for users named "Chuck."

![Sequence Flows](images/exclusivegatewayexample3.png)

**For 'Others' Sequence Flow**:
- **Condition Expression**: `firstName != "Chuck"`
- Goes to **Manual Task**: "Hello to Others" displays a greeting to non-Chuck users.
![Sequence Flows](images/exclusivegatewayexample4.png)

**b**. **Chuck**: Directs to a personalized greeting for users named "Chuck."
**For 'Chuck' Sequence Flow**:

![Sequence Flows](images/exclusivegatewayexample4.png)

**For 'Chuck' Sequence Flow**:
- **Condition Expression**: `firstName == "Chuck"`
- Goes to **Manual Task**: "Hi to Chuck" delivers a custom greeting to users named Chuck.
- **Condition Expression**: `firstName == "Chuck"`
- Goes to **Manual Task**: "Hi to Chuck" delivers a custom greeting to users named Chuck.

3. **Exclusive Gateway Merge**: Merges the paths from manual tasks: "Hello to Others" and "Hi to Chuck," continuing to the next unified step in the process.

Expand All @@ -64,5 +69,10 @@ Therefore, Exclusive Gateways are critical in BPMN for managing decisions within

They ensure that the process flow is correctly directed based on specific conditions, preventing incorrect executions and ensuring that the process adapts dynamically to varying inputs.

Therefore, Exclusive Gateways are critical in BPMN for managing decisions within the workflow that require conditional logic based on user input or other process variables.

They ensure that the process flow is correctly directed based on specific conditions, preventing incorrect executions and ensuring that the process adapts dynamically to varying inputs.

```{tags} tutorial, building_diagrams
```

0 comments on commit 4030294

Please sign in to comment.