Create order from delivery scheduled lines

The OMPCreateOrderFromDeliveryScheduledLinesAgent is a time-triggered agent in Sterling™ Order Management System. The agent processes all contract orders for which unconsumed contract delivery scheduled lines are available in the system. The agent creates a single order against a contract order for a specific order date. The order lines are provided according to the contract delivery scheduled lines.

This agent is modeled as a non-enterprise agent. When the agent is triggered, the agent processes all contract orders with unconsumed contract delivery scheduled lines that are available in the system. For more information, see Automatic creation of sales orders from delivery scheduled lines.

Function of the agent

The agent validates the order date for each contract delivery scheduled line, which is further processed for order creation.

The following key configuration rules drive the agent behavior.
Rule Name Description Default value Scope
SAFE_DAYS_TO_CREATE_ORDER_FOR_MISSED_DSL Safe days to consider that are earlier than the current date. These days are used to process missed contract delivery scheduled lines for the order creation. 03 Enterprise or seller

Agent attributes

The following attributes are used for the time-triggered transaction.
Property Value
Base Transaction ID CREATE_ORD_FRM_DLY_SCHED
Base Document Type Contract Order
Base Process Type Contract Order Fulfillment
Abstract Transaction No
APIs Called None

Criteria parameters

The following table describes the criteria parameters for the time-triggered transaction.

Parameter Description
Action This parameter triggers the transaction. The default value is Get.
Number of records to buffer Optional. This parameter indicates the number of records to retrieve and process at one time. If left blank or specified as 0 (zero), it defaults to 5000.
Colony Id If the colony ID is passed without the enterprise code, the agent is triggered for all enterprises that are configured in that colony.

Statistics tracked

None

Pending job count

None

Events raised

This time-triggered transaction raises the following events.
Transaction/event Data published
ON_SUCCESS OMP_CREATE_ORD_FRM_DLY_SCHED.ON_SUCCESS.xml
ON_LINES_ADDED OMP_CREATE_ORD_FRM_DLY_SCHED.ON_LINES_ADDED.xml