Orchestrator - Register Basket Item

This workflow is used for communicating the registration of a basket item within the order management process.

Workflow

  1. Gathering Registration Information: The workflow begins by extracting essential data from the registration object using the provided registration ID. This data includes the basket item ID, order ID, and BProc context ID.
  2. Handling Missing Product IDs: If a SAP S4Hana product ID is not provided, the workflow uses the free text item name for the purchasing process.
  3. Constructing Registration Command: A registration command, formatted in JSON, is created. This step also involves determining the start and end dates for the item usage, based on the provided payment information.
  4. Asset Number Inclusion: If an asset number is provided, it is included in the registration command, resulting in an asset basket item.
  5. Context ID Extension: The command is augmented with a context ID if it exists, ensuring correlation between all commands and events.
  6. BProc Gateway Interaction: The workflow then communicates with the BProc gateway using the constructed command.
  7. Error Handling: If an error occurs, indicating a major failure, the workflow is terminated.
  8. Context ID Management: In the absence of errors, the gateway returns a context ID, which is then stored in the registration by the workflow.
  9. Awaiting Basket Item Registration: The workflow waits for the BasketItemRegistered event to be incorporated into Matrix42.
  10. Finalizing Registration: Finally, the workflow updates the registration status to 'registered'.

This workflow efficiently manages the registration of basket items, ensuring accurate and timely processing within the order management system.

Orchestrator - Register Basket Item (1).png