Changing Owner/Name/Folder of Component results in error when corresponding Component Workflows in AE contain IF or FOREACH Workflows
Article ID: 85001
CA Automic Workload Automation - Automation Engine
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.
Take one application with a deployment workflow and a component.
Add a IF-Workflow to the component flow workflow and save your changes
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.
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.
OS Version: N/A
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
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*