Creating conditions

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

  1. Log in to Order Hub.
  2. From the side navigation menu, select Configuration > Application platform > Process modeling.
  3. 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.
  4. Click the Conditions icon Conditions icon that looks like a small black diamond inside of a larger diamond outline.
    The system displays the Conditions list in the side panel.
  5. From the Conditions list, select the condition group within which you want to organize the new condition.
  6. In the Conditions window, click the Add icon Add icon that looks like plus sign.
    The system displays the New condition window.
  7. 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.
  8. 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_'.
  9. In the Condition group field, confirm or update the condition group name.
  10. 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.
  11. 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.
  12. If you select the Static condition type, use the Condition builder to set up a condition value.
  13. 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.
  14. Click Save.

Results

A new condition is created and is listed under the specified condition group.