Changing Owner/Name/Folder of Component results in error when corresponding Component Workflows in AE contain IF or FOREACH Workflows

Document ID : KB000085001
Last Modified Date : 14/04/2018
Show Technical Document Details
Issue:
Affects Release version(s): 6;7

Error Message :
Unable to cast object of type 'com.uc4.api.objects.WorkflowIF' to type 'com.uc4.api.objects.JobPlan'.

Renaming a Component where other Automation Engine (AE) objects like JobPlans are part of the specific Component Flow (i.e. FOREACH or IF) triggers the above error message.

This occurs in version v6 and v7 of ARA.

Investigation
  1. Take one application with a deployment workflow and a component.
  2. Add a IF-Workflow to the component flow workflow and save your changes
  3. Go to the component where you have modified the workflow and change the owner to another user or group and press save
Result:
The error message above is displayed.

 
Environment:
OS Version: N/A
Cause:
Cause type:
Defect
Root Cause: Changing the Owner/Name/Folder of a Component raises an error when the corresponding component workflows in AE contain an IF or ForEach workflow. This error may also be thrown if the component, workflow or application is renamed.
Resolution:
Update to a fix version listed below or a newer version if available.

Fix Status: Released

Fix Version(s):
Release Manager 8.0.0 - Available
Release Manager 7.0.2 - Available
Release Manager 6.0.5 - Available
Additional Information:
Workaround :
Avoid renaming the Workflow IF object after its contained in a component workflow.

Example:
Assume the component wokflow is:  
RM.DEMOAPP.DEMOAPP.DEPLOY.DATABASE
It contains a Workflow IF object:  RM.DEMOAPP.DEMOAPP.DEPLOY.DATABASE.WHATIF
To avoid the error, rename the Workflow IF object to:  RM.DEMOAPP.DEMOAPP.DEPLOY.WORKAROUND.DATABASE.WHATIF
The idea is to avoid this name pattern: RM.DEMOAPP.DEMOAPP.DEPLOY.DATABASE*