Conditions
Conditions test whether transaction data meets certain criteria. Conditions are sometimes referred to as if clauses because, if the conditions specified in the TransEditor match the transaction data then the actions specified in the TransEditor are taken on the transaction. If the conditions don't match, no action's taken. Typically, TransEditors include conditions and actions. You can, however, have TransEditors that have:
No conditions but 1 or more actions. This indicates that the actions are always performed. For example, you may want a TransEditor to set the line level ship-from location to Warehouse 1. In this scenario, the TransEditor has no conditions and only 1 action.
1 or more conditions but no actions. This is common in AND scenarios. For example, you may want a TransEditor to evaluate the customer number and the line level ship-to state before further address evaluation occurs. In this scenario, the TransEditor has 2 conditions: 1 to evaluate the customer number and 1 to evaluate the line level ship-to state.
You can also connect conditions to other conditions with AND and OR. Connecting conditions with AND establishes a parent-child relationship, and connecting conditions with OR establishes an alternative. On the TransEditors page, child conditions have a number depth of the parent condition. For example, Condition 1 is the parent. Condition 1-1 is the 1st child condition and Condition 1-2 is the 2nd child condition.
During processing, a parent condition needs to evaluate to true before the child condition's evaluated. Conditions connected by OR evaluate to true if either condition evaluates to true.
Like TransEditors, you can nest conditions to deeper levels, and you can mix AND and OR connectors for conditions.
The Manual Reorder feature lets users reorganize conditions within the TransEditor interface. This feature is accessible when multiple conditions are present.
To use the Manual Reorder feature:
Select
Reorder
in the TransEditor interface.
A tooltip labeled "Reorder" appears when you hover over the
Reorder
button.
The button is active only when multiple conditions exist.
Complete both required fields:
New Location*
: Select the new location for the condition. If no new location is selected, an error message states "Condition is required".
Position Number*
: Enter the specific position for the condition. Use a whole number between 1 and 999,999,999.
Both fields are mandatory, as indicated by the asterisk (*).
The Reorder button remains inactive until both fields are filled.
An error message appears if the number is 0 or exceeds 9 digits.
After you complete both fields, the Reorder button becomes available.
Select the Reorder button again to process the request. When the message "Conditions rendered successfully" appears, the process is complete.