Orchestrator - Deregister Basket Item
This workflow is used for communicating the deregistration of a basket item within the order management process.
Workflow
- 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.
- Constructing Deregistration Command: A deregistration command, formatted in JSON, is created.
- Context ID Extension: The command is augmented with a context ID if it exists, ensuring correlation between all commands and events.
- BProc Gateway Interaction: The workflow then communicates with the BProc gateway using the constructed command.
- Error Handling: If an error occurs, indicating a major failure, the workflow is terminated.
- Context ID Management: In the absence of errors, the gateway returns a context ID, which is then stored in the registration by the workflow.
- Awaiting Basket Item Deregistration: The workflow waits for the BasketItemDeregistered event to be incorporated into Matrix42.
- Finalizing Deregistration: Finally, the workflow updates the registration status to 'deregistered'.
This workflow efficiently manages the deregistration of basket items, ensuring accurate and timely processing within the order management system.