Before the upgrade of an order flow, the pre-check script is run automatically. This pre-check script checks existing order flows for a possible upgrade. The following checks are performed:

If the precheck script fails, perform the following actions:


  1. Ensure that the following identifier exists in the “FlowHandler” table: 158. If it does not exist, add this identifier or replace the incorrect identifier with the correct one using the move_old_handlers.py script. To use this script, copy it to the BSS node and run.
  2. Fix inconsistencies found by precheck in custom order flows using the default order flow as an example.
    1. If the order flow already has “VC” or “VF” statuses, rename them using the interactive rename-status.py script. Note that this script does not change the default record in the “OrderOperation” table. If you want to rename the initial status of an order flow, this record must be updated manually and with care.
    2. Make sure that the actions from these articles are applied and the flow is configured in accordance with these articles:
  3. If the described steps did not work, configure the order flow after the upgrade:
    1. Insert the new "VC" status before the "AP" status for “SO”, “CH”, “RN”, and “CF” orders: VC -> AP (success), VC → VF (fail).
      The new status must have the following handler: VC: 'OF_ValidateActivationDate'
  4. To add new statuses and their transitions, complete these steps:
    1. Log in to the PCP, go to Billing > Settings > Order Processing > All Order Flows, and click the required order flow and then the required order type.
    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.
    3. In the Order Flow Transitions tab, add their transitions. The new statuses must have the following transitions (you can copy them from the default order flow):
  5. If you have any customized transitions, you must update them too. If an order flow still cannot be modified, send its copy to the support team for investigation.
  6. Run the upgrade script.