Example
This is how the flow will be of the given example workflow
Code
Create file namesworkflow.py
and paste the following contents into the file:
<workfspace-fqn>
with the workspace fqn which you can find on the UI.
- generate_number: A task that generates a number.
- process_low and process_high: Tasks that process the number based on whether it is low or high.
- conditional: A branch node that checks if the number is less than 5. If true, it executes process_low, otherwise it executes process_high.
Conditional task on ui

- When you see the graph of a workflow containing the conditional task then you can see that the green box here represents the conditional task and the green color indicates that the task execution was successful.