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 “CF” order. See https://cloudblue.freshdesk.com/support/solutions/articles/44002247248
  • Whether “AP” status already exists and has incorrect handlers for “CF” 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: 155. If it does not, add this identifier or replace the incorrect identifiers with the correct ones by downloading and copying the move_old_handlers.py script to the BSS node, then running it:
    # python move_old_handlers.py
  2. Fix inconsistencies found by precheck in custom order flows using the default order flow as an example.
    1. If order flow already includes “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/44002247248 are performed and the order flow is configured in accordance with this article.

If the described steps did not work then you can configure order flows after the upgrade.

  • The new status "AP" must be inserted before EC status for “RN” orders: "AP" -> "EC".
  • The new status must have the following handler: AP: 'OF_FinishProvisioningCF'
  • 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):
      For “CF” orders:
      • From: "AP"; Success: EC; Fail: AP; Action: Finish Provisioning; Order Flow Handler: 'OF_FinishProvisioningCF'; Transition Type: On Event
        Status EC already must exists. See https://cloudblue.freshdesk.com/support/solutions/articles/44002247248
        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.

3. Run the upgrade script.