Creating & Modifying Business Logic Statements in Configuration Studio

Logic Statements allow you to select or program actions that will run with the configuration profile you are developing.

You can select from a variety of pre-programmed logic statements. For example, you can select the action Enable Ship-To Alerts so that you receive these notifications when the need arises. (See Selecting Logic Statements from Templates).

configstudio22

You can create your own custom logic statements. (See Creating Custom Logic Statements).

Selecting Logic Statements from Templates

To select actions that occur each time that your configuration profile is used, under Templates, click one of the existing business-logic statements.

  1. Select a Logic-Statement Template.
  2. Depending on the choice, there may be a field that requires information. If so, go to Step a. If not, go to Step b.configstudio23
    1. Supply the information required by either entering that information or by selecting it from a drop-down menu.
    2. Click Add Logic. The logic is added to the Add Logics section where you can confirm its addition and then add a description. (See Evaluating Added Logics).

Creating Custom Logic Statements

You can customize actions that will occur each time that your configuration profile is used. These may be very specialized and elaborate, using smaller logic phrases in combination. For example, if the unit of measure is listed as a PKG (for package), and you need to convert it to single units, you would create a logic statement that is comprised of the following: set the unit of measure to each, multiply the quantity by six, and divide the price by six.

Or, to express the same programmatically:

  • Line 1 / RED - If the Buyer UOM [unit of measure] is Equal to PKG [package],
  • Line 2 / GREEN - Set the Line Item - Buyer UOM to EA [each] and
  • Line 3 / YELLOW - Multiply the Line Item – Buyer UOM Quantity by 6 and
  • Line 4 / PURPLE - Divide the Line Item – Quantity Per Unit Price by 6

configstudio24

To create a custom statement, follow these steps:

  1. Click Create Custom Logic. The Create Custom Logic dialog displays.
  2. From the dialog that displays, select from the following choices:
    • Always: To run the logic for every document regardless of any other condition found. This applies to header level information that should be the same every time. For example, listing items and their descriptions change.
    • If: To create a condition to determine when the logic is run.
      For example, If the unit or measure (UOM) is Equal to “Case,” set the UOM to “CS.”
  3. Select the appropriate conditions for each field that displays in order to further define the logic statement you are developing.
    Selections vary, depending on what you initially chose. 
    Ends With Is Null
    Greater Than Is Null or Empty
    Greater Than or Equal To Is Null or White Space
    Is Empty Less Than
    Is Equal Less Than or Equal To
    Is Not Equal To Starts With
  4. Select the actions for each field that displays in order to further define the logic statement you are developing. Among other things, you can also manipulate the data being sent and create mathematical equations for numeric fields. When you are finished, your logic statement displays in the Add Logics section.
    Selections may vary, depending on what other selections you define. 
    Add Replace
    Set Multiply
    Delete Subtract
    Divide Truncate
    Combine Reject and Notify
    Add Replace
  5. Click Add Logic. The logic is added to the Add Logics section. There you can confirm its addition and add a description.

configstudio26

Editing Custom Logic Statements

You can edit any of the custom logic statements you see listed in the Added Logic Statements section.

  1. Click the three dots, (ellipses) to the right of the description field when the logic-statement listing you want to edit is expanded.
  2. From the menu that displays, click Edit.
  3. Make the changes you want according to the instructions above.
  4. When you are finished, click Add Logic. The logic is added to the Add Logics section where you can confirm its addition and revise your description.

Deleting Logic Statements

You can delete logic statements that you have added (custom or from template) that you see listed in the Added Logic Statements section.

  1. Click the three dots (ellipses) to the right of the description field when the logic-statement listing you want to delete expanded.
  2. From the menu that displays, click Delete.
  3. The logic statement is deleted.

Changing the Order of Logic Statements

When logic statements are not in the right order, you may not get the results you want because the action of one statement may depend on the action of another statement. In the Added Logic Statements section, you can re-order when the statements run.

To avoid problems with new or existing logic statement, contact Conexiom for advice with this feature.

To change the order of a single statement, click the up or down Arrow icon on the left side of the logic statement listing to move it in the corresponding direction, changing when it runs relative to the statements that precede or follow it.

In the example below, the statement “Conexiom Default Processor” could be moved above or below the surrounding statements with one click. You can move any statement as many times as you want to give it the right position in the order.

configstudio27