A value greater than zero is required for Basket items Count

CONTEXT

This guide addresses situations where the Matrix42 workflows are not correctly recognizing the number of items expected. This error typically occurs when provisioning workflows are unable to accurately communicate the number of items.

The issue can arise when the "Restart Provisioning" action inadvertently changes the provisioning workflow to a "Restart Provisioning Workflow," leading to incorrect item recognition in the basket.

FIX

  1. Determine the correct amount of items for the order. Pay attention to the type of order e.g. "-Common", "-WD", "-Smartphone" etc.
  2. Determine the body of the Register Order command within the BPRoc History.
    image.png
  3. Perform a manual order registration.
    1. It is crucial that the manual delivery is performed against the BProc Gateway and not directly the Order Management service. The reason for this is, that the BProc Gateway introduces the Command and Event pattern, required for the Matrix42 workflows.
    2. Open Postman or a similiar program within which you have configured the authorization required for the BProc gateway.
    3. Perform the following call, substituting the correct values for the context and the basket items count.

      POST {{baseUrl}}/Orders
{    "Context": {        "Id": "1cac4b85-f43d-4b14-a1dc-d1e795b3eb16"    },    "BasketItemsCount": 2,    ... [Rest of the command from the BProc history] ...}