[21.6] Order flow "RB", "AD","CT", "TW", "TP", "TS", "TF"
Modified on: Fri, 17 Nov 2023 1:13 PM2022-07-29
Symptoms
Cancellation orders were stuck in "Checking provisioning conditions" status.
Cause
The CF order type in the provided order flow has status RB, from which there is no transitions at all. But in accordance with design the transition from status PF to status RB should exist. The upgrade script added such transition. But there is no transitions from status RB here.
Resolution
In order to solve this problem there are 2 ways:
1. For this custom order flow for CF order type change transition PF->RB to PF->PR in database. And move CF order from status RB to status PR. Then this order should be cancelled automatically.
2. Configure CF order flow for statuses RB, AD, CT, TW, TP, TS, TF just like in the default order flow. This way is more correct.
In order to add new statuses and their transitions, complete the following actions:
1. Log in to PCP > Billing > Settings > Order Processing > All Order Flows and click the required order flow and then the required order type. i.e "Order Flow #2000001" and "Order Type CF"
2. In the Order Statuses tab, add new statuses. Flags for them can be taken from the status before which new statuses are added, or from the same statuses from the default order flow.
For Order Statuses :
3. In the Order Flow Transitions tab, add their transitions. The new statuses must have the following transitions.
Order Flow Transition 'AD' -> 'PR' -> 'CT' :
- From - AD
- Success - PR
- Fail - CT
- Order Flow Handler - Empty/Null
- Transition Type - On Event
- Action - Apply Credit Documents
Order Flow Transition 'CT' -> 'TW' -> 'TS' :
- From - CT
- Success - TW
- Fail - TS
- Order Flow Handler - BM OF_CreateTopUpPayments
- Transition Type - Auto
- Action - Create Auto-Payments
Order Flow Transition 'RB' -> 'AD' -> 'RB' :
- From - RB
- Success - AD
- Fail - RB
- Order Flow Handler - BM OF_CreateResellerTransactions
- Transition Type - On Event
- Action - Create Reseller-level Transactions
Order Flow Transition 'TF' -> 'CL' -> 'TF' :
- From - TF
- Success - CL
- Fail - TF
- Order Flow Handler - BM OF_CancelOrder
- Transition Type - Manual
- Action - Cancel Order
Order Flow Transition 'TF' -> 'CT' -> 'TF' :
- From - TF
- Success - CT
- Fail - TF
- Order Flow Handler - Empty/Null
- Transition Type - Manual
- Action - Check Balance and Create Auto-Payment for Reseller
Order Flow Transition 'TP' -> 'CL' -> 'TP' :
- From - TP
- Success - CL
- Fail - TP
- Order Flow Handler - BM OF_CancelOrder
- Transition Type - Manual
- Action - Cancel Order
Order Flow Transition 'TP' -> 'CT' -> 'TP' :
- From - TP
- Success - CT
- Fail - TP
- Order Flow Handler - Empty/Null
- Transition Type - Manual
- Action - Check Balance and Create Auto-Payment for Reseller
Order Flow Transition 'TS' -> 'TP' -> 'TF' :
- From - TS
- Success - TP
- Fail - TF
- Order Flow Handler - BM OF_IsBalanceReservationInProgress
- Transition Type - Auto
- Action - Check Reseller Balance Reservation Status
Order Flow Transition 'TW' -> 'AD' -> 'TW' :
- From - TW
- Success - AD
- Fail - TW
- Order Flow Handler - BM OF_WaitForPaymentsCompletion
- Transition Type - On Event
- Action - Check Auto-Payment Completion
Re-submit provisioning for hanging orders.