Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-19498

Importing app containing collapsed subprocess duplicates included process definitions in Call Activity and Collapsed SubProcess

    Details

      Description

      Summary
      When importing two apps from another environment, if two different processes reference the same subprocess (or call activity), publishing the apps fails and App Editor throws an error.

      Steps to reproduce
      [Source Environment used for export]:

      1. Set up APS
      2. Create 2 parent definitions - CollapseMain1 and CollapseMain2 (Please find attachment - SourceEnvProcesses.png)
      3. Create 1 sub process definition - CollapseSub (Please find attachment - SourceEnvProcesses.png) and point CollapseMain1 and CollapseMain2 to use CollapseSub as collapsed sub process
      4. Create and publish 2 apps - CollpaseMain1App and CollapseMain2App and use CollpaseMain1 and CollpaseSub for CollapseMain1App and use CollapseMain2 and CollpaseSub for CollpaseMain2 (Please find 4 attachments - CollapseMain1App.png, CollapseMain1App.zip and CollapseMain2App.png and CollapseMain2App.zip)
      5. When publishing the 2nd app, CollpaseMain2App, the system throws a warning. (Please find attachment - Error2ndAppPublishWarning.png)
         Following models are already used in another app. Is this ok?
        Process 'CollapseSub' (App "CollpaseMain1App")
        
      6. Proceed with 'confirm' and publish (Since this is a warning, not an error, system allows the publish to complete)
      7. Export both apps, CollpaseMain1App and CollpaseMain2App

      [Target Environment used for import]:

      1. Import and publish CollpaseMain1App
      2. Import and publish CollpaseMain2App

      NOTE: You can directly skip the source environment by importing the attched apps "App A.zip" and "App B.zip".

      Expected Behaviour
      App import completes and both apps publish without any errors.

      Observed Behaviour

      1. CollpaseMain1App imports and publishes with no issue
      2. CollpaseMain2App imports, but upon publishing, the system throws an error - see attachment 2ndAppPublishErrorTargetEnv.png
         Your process model "CollapseSub" has the same identifier "CollapseSub" as the existing deployed process "CollapseSub" of the app "CollpaseMain1App". Change the "ID" property of this process model to something different.
        
      3. When navigating to the process page, there are 3 CollpaseSub process definitions in the target environment - screenshot - TargetProcessDefPage.png

      Additional Note

      • Upon importing, if APS identifies that there are existing process models, this would be the desired behavior:
        1- update existing process/subprocess automatically (version)
        2- create new process/subprocess appending a increment to name to make it unique in the UI to users
        3- or decline occurs
      • Call Activity behaves the same way that the collapsed sub processes does. Customer's use case is tied more with the Call Activity than Collpased sub processes. Therefore, I am attaching the evidence pertaining the Call Activity as well.

      This issue particularly impacts the customer since Call Activity uses the process identifier when parent process calls the sub-process. Therefore, when process identifier duplicates and customers manually edit the id's, the parent Call Activity subprocess id has to be edited as well, which causes significant manual updates when the process is complex.

      1) CallActivitySourceEnv3Models.png
      2) TargetCallActivityApps.png
      3) TargetCallActivityProcessDuplicates.png
      4) AppA.zip
      5) AppB.zip

        Attachments

        1. 2ndAppPublishErrorTargetEnv.PNG
          2ndAppPublishErrorTargetEnv.PNG
          72 kB
        2. App A.zip
          8 kB
        3. App B.zip
          7 kB
        4. CallActivitySourceEnv3Models.PNG
          CallActivitySourceEnv3Models.PNG
          113 kB
        5. CollpaseMain1App.PNG
          CollpaseMain1App.PNG
          52 kB
        6. CollpaseMain1App.zip
          10 kB
        7. CollpaseMain2App.PNG
          CollpaseMain2App.PNG
          51 kB
        8. CollpaseMain2App.zip
          10 kB
        9. Error2ndAppPublishWarning.PNG
          Error2ndAppPublishWarning.PNG
          41 kB
        10. SourceEnvProcesses.PNG
          SourceEnvProcesses.PNG
          51 kB
        11. TargetAppBPublishError.PNG
          TargetAppBPublishError.PNG
          568 kB
        12. TargetCallActivityApps.PNG
          TargetCallActivityApps.PNG
          72 kB
        13. TargetCallActivityProcessDuplicates.PNG
          TargetCallActivityProcessDuplicates.PNG
          46 kB
        14. TargetProcessDefPage.PNG
          TargetProcessDefPage.PNG
          52 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  cdenton Claire Denton
                  Reporter:
                  hpark Hee Sun Park [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel