Prevent Orchestration Process from Shipping Return Lines

Add a filter to a line selection rule that makes sure the shipping task doesn't attempt to ship a return line.

The Category Code attribute contains ORDER for an order line that's going to fulfillment, and RETURN for a return line. You can use CategoryCode to filter out return lines.

Here's the filter you add to each step.

the rule you create for each step

Try it.

  1. In the Setup and Maintenance work area, go to the task.

    • Offering: Order Management

    • Functional Area: Orders

    • Task: Manage Orchestration Process Definitions

  2. On the Manage Orchestration Process Definitions page, search for ShipOrderGenericProcess, then click Actions > Duplicate.

    You can't modify the predefined process, so you create a duplicate and modify it instead. Notice the process name.

    (CopyOf)CustomDOO_ShipOrderGenericProcess

    Use this process in your deployment.

  3. On the Edit Orchestration Process Definition page, locate the schedule row.

    Step

    Step Name

    100

    Schedule

  4. On the step 100 row, in the Line Selection Criteria column, click Click for Rule.

  5. In the Line Selection Criteria dialog, click Expand, then notice the predefined rule. Locate the last condition, immediately above the THEN area.

  6. On the row you just located, click the down arrow at the far right of the row, then click Simple Test.

  7. In the new row, enter "ORDER", change is to equals ignore case, then enter DooSeededOrchestrationRules.DOOHeader/childFLines.categoryCode.

    Verify the entire row looks like.

    "ORDER" equals ignore case DooSeededOrchestrationRules.DOOHeader/childFLines.categoryCode

  8. Click Validate, then click Save.

  9. Repeat these steps for the Create Reservation step.

  10. Repeat these steps for the Create Shipment Request step.