Sterling OMS First Static Condition

By | 07/30/2017

Sterling OMS First Static Condition

Sterling OMS First Static Condition

Sterling OMS First Static Condition

Condition:

In Java we can write below logic for displaying age.

private printAge(int age) {
  if (age == 30) {
     System.out.println(“Your age is 30”);
  } else if (age == 31) {
    System.out.println(“Your age is 31”);
  } else {
    System.out.println(“Your age is > 31”);
  }
}

How to do the similar logic in Sterling OMS? In this post we are going to see different ways of implementing condition.

OMS Condition in simple words: Condition can change the system flow based on input XML attribute values.

OMS Condition Definition: The document type XML attributes against which conditions can be created are pre-defined in Sterling Order Management. Based on the decision points and routes the document to the appropriate path.

Where Condition used in OMS:

  • Hub Rule
  • Pipeline
  • Service
  • Transactions – Event Handler

Condition Example

Different Types of Condition in OMS:

  • Static Condition : Using Sterling Condition builder we can create condition
  • Dynamic Condition : Using Java code we can create condition
  • Advanced XML : Condition created using the Sterling Greex Editor

Where to Configure Condition in Application Manager:

  • Login into OMS application
  • Go to application manager
  • Applications – Application Platform
  • Process Modelling
  • Click any tab (Example Order) and click on any one of Process Types (Example Order Fulfillment)

Creating New Condition

  • Create Condition – Right click on Conditions menu
  • Using statement builder build condition as shown below (Select Enterprise and Ship Node from Choose Field Menu option)

Sterling OMS Condition Builder

  • Click OK
  • Click Save

How to configure static condition?

  • Create New Service with name “StaticCondition” as shown below

Static Condition Selection

  • Add Condition from API components
  • Select Condition Name as Static Condition
  • Add Database component from Transport Types section
  • Select table name as shown below

Export DB

How to test the static condition?

Using HTTP API tester test the newly created service (How to use HTTP Tester ?)

Input XML Service to call Result
<Order EnterpriseCode=”Matrix” ShipNode=”Matrix_WH1″ /> StaticCondition No record inserted into YFS_EXPORT table; enterprise code attribute value is not matching
<Order EnterpriseCode=”Matrix-R” ShipNode=”Matrix_WH1″ /> StaticCondition Record created because both attribute matched

Please share your feedback with us at support@activekite.com

Reference:

https://www.ibm.com/support/knowledgecenter/en/SS6QYM_9.1.0/com.ibm.help.app.config.doc/t_CreatingACondition.html

Register with us to get more OMS learning updates

OMS Interview Questions

3 thoughts on “Sterling OMS First Static Condition

  1. Ravi

    Please provide examples of advanced XML condition
    And custom condition.

    Reply
    1. ActiveKite-Admin Post author

      Hi Ravi

      We are working on custom conditions. Advanced XML we have not used. May be some one else can help on that.

      Reply
  2. Pingback: Sterling OMS Writing First Dynamic Condition - Learn IBM Sterling Order Management System

Leave a Reply

Your email address will not be published. Required fields are marked *