Create conditions to define the rules that control how a workflow routes or behaves at a
specific step. Conditions evaluate data at runtime to determine which path a process follows. This
approach helps to standardize decision logic and keep workflows consistent and
maintainable.
About this task
Use this task to create a condition that evaluates process data and determines how a workflow
proceeds. Conditions are used to control branching, routing, and decision points in pipelines and
events based on static rules or custom dynamic logic.
Procedure
-
Log in to Order Hub.
- From the side navigation menu, select
.
- In the process modeling area, to open the required process type, click the
component..
The system displays the Service definitions list in the side
panel.
- Click the Conditions icon
. The system displays the Conditions list in
the side panel.
- From the Conditions list, select the condition group within which
you want to organize the new condition.
- In the Conditions window, click the Add icon
. The system displays the
New condition window.
- Enter a Condition ID that uniquely describes the condition in the OMS
system.
Condition IDs are descriptive and concise. They reflect what the condition
evaluates or the purpose of the condition.
- Enter a Condition name that is viewable in the user interface.
Note: To avoid conflicts with built-in actions, add a prefix to any custom-defined conditions. For
example, add the prefix 'EXTN_'.
- In the Condition group field, confirm or update the condition
group name.
- Optional: View the entities that are affected by this condition or a
condition type to understand which pipelines and determination rules reference it. Review this
information to assess the impact of creating the condition before you save your changes, then click
Close.
The system displays lists of pipelines, enterprises for
the pipeline determination rules, monitor rule pipelines, statuses, events, and
services.
- In the Condition type field, select the condition type.
- Select Static for the system to check the fixed attributes and values
that you set ahead of time by using the Condition builder, based only on the data that is available
in that flow.
- Select Dynamic for the system to run custom Java™ logic at runtime to evaluate the condition, using the full input data and more
complex rules than the Condition Builder supports.
- If you select the Static condition type, use the Condition builder to set up a condition
value.
- If you selected the Dynamic condition type, specify the custom name and value properties,
which are set into the condition evaluating Java class file before evaluating the
condition.
- Click Save.
Results
A new condition is created and is listed under the specified condition group.