The stages are not sorted in order of updating after upgrading to Paris.


Description

When customer creates a new request and proceed to the stage of requested item using flow designer, the stages of Requested Item are not sorted in order of updating after upgrading to Paris.
This issue has not occurred in New York and Orlando OOB.

Steps to Reproduce: 
1.Create a flow in Orlando OOB
  Flow Designer > Designer > New > Flow

(1)Properties
  Name : Test_Flow_1012a
  Application : Global
  Run As : System User

(2)Stages (Create stages in descending order)
  Name    | Value
  --------------------
  Stage D | D
  Stage C | C
  Stage B | B
  Stage A | A

(3)TRIGGER and ACTIONS
  Trigger : Service Catalog
  |
  |----------Stage A
  |
  1 Update Request Record (Table:Request[sc_request])
  |
  |----------Stage B
  |
  2 Update Requested Item Record (Table:Requested Item[sc_req_item]) 
  |
  |----------Stage C
  |
  3 Update Requested Item Record (Table:Requested Item[sc_req_item]) 
  |
  |----------Stage D
  |
  4 Update Requested Item Record (Table:Requested Item[sc_req_item]) 

2.Create catalog item
  Service Catalog > Catalog Definitions > Maintain Items > New
  
  Name : Test 20201012a
  Catalogs : Service Catalog
  Category : Can We Help You?
  
  Process Engine
    Flow : Test_Flow_1012a

  Portal Settings
    Request method : Request

3.Order Test 20201012a in Orlando OOB
  Self-Service > Service Catalog > Can We Help You? > Test 20201012a > Order Now
  ==>
  Request Number: REQ0010014
  Requested Item : RITM0010023

  Stage
  --------------------------------
  Stage A - 0 Seconds (Completed)
  Stage B - 0 Seconds (Completed)
  Stage C - 0 Seconds (Completed)
  Stage D - 0 Seconds (Completed)

==>The stages are sorted in order of updating correctly.

4.Set Update set for Flow:Test_Flow_1012a and Catalog Item : Test 20201012a, then export to XML
  System Update Sets > Local Update Sets
  
5.Import XML in Paris OOB and commit update set
  System Update Sets > Update Sets to Commit

6.Order Test 20201012a in Paris OOB
  Self-Service > Service Catalog > Can We Help You? > Test 20201012a > Order Now
  ==>
  Request Number: REQ0010003
  Requested Item : RITM0010003

  Stage
  --------------------------------
  Stage D - 0 Seconds (Completed)
  Stage C - 0 Seconds (Completed)
  Stage B - 0 Seconds (Completed)
  Stage A - 0 Seconds (Completed)
  
==>The stages are NOT sorted in order of updating after upgrading to Paris.

Release or Environment

Paris

Cause

After Upgrade:
- By default new flow executions on Paris will have stage order based on the configuration menu
- In any case setting system property com.glide.hub.flow_engine.stage_display.by_configuration_order=false will keep stage order prior to Paris

Resolution

We first advise you to update the stages configuration order within Flow Designer, but if you need to quickly revert to pre-Paris behavior please add a system property to control default it and set false as a value to false.  Then once your flows have been updated the property can be removed.

  1. Navigate to sys_properties.LIST
  2. Click "New"
  3. Create a property with the following values:
    Name: com.glide.hub.flow_engine.stage_display.by_configuration_order

    Type: true | false

    Value: false