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:


  • Whether identifiers of new order flow handlers already exist and contain different methods. In this case, the pre-check script writes this inconsistency into a log file.
  • Whether “EC” status already exists for “RN” order. See https://cloudblue.freshdesk.com/support/solutions/articles/44001910499.
  • Whether “AP” status already exists and has incorrect handlers for “RN” order. In this case, the pre-check script writes this inconsistency into a log file.

If the precheck script fails, perform the following actions:

  1. Ensure that the following identifier exists in the “FlowHandler” table: 154. 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 “AP” status, rename it 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. Check that actions from https://cloudblue.freshdesk.com/support/solutions/articles/44001910499 are performed and the order flow is configured according to this article.
  3. If described steps did not work, configure the order flow after the upgrade:
    Insert new "AP" status before "EC" status for “RN” orders: AP -> EC.
    The new status must have the following handler: AP: 'OF_FinishProvisioningRN'
  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):
      • “RN” orders:
        From: "AP"; Success: "EC"; Fail: "AP"; Action: "Finish Provisioning"; Order Flow Handler: "OF_FinishProvisioningRN"; Transition Type: "On Event"
    4. Status "EC" must already exist. Refer to: https://cloudblue.freshdesk.com/support/solutions/articles/44001910499
  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.