Error when trying to approve a request after workflow policy has been changed from "Policy-based" to "Non-Policy based"

book

Article ID: 208237

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

Scenario:

  1. There is existing admin task that has policy-based approval workflow.
  2. Workflow process on the admin task is changed from "Policy-based" to "Non-Policy based"
  3. An user tries to approve a request that has been created before admin task change, using Identity Portal or Identity Manager User Console.
    The approval results in an error. Identity Manager server.log shows this error:
2021-02-03 07:55:54,466 ERROR [iamframework.webservices] (default task-82) Cannot determine approval scope: [facility=4 severity=2 reason=0 status=38 message=No items found]
 at com.netegrity.llsdk6.imsimpl.provider.ApprovalPolicyProviderImpl.findByTag(ApprovalPolicyProviderImpl.java:174) [imsapi6.jar:]
 at com.netegrity.llsdk6.imsimpl.provider.ApprovalPolicyProviderImpl.getApprovalPolicy(ApprovalPolicyProviderImpl.java:85) [imsapi6.jar:]
 at com.netegrity.ims.util.WorkflowApprovalPolicyHelper.getApprovalPolicy(WorkflowApprovalPolicyHelper.java:228) [ims.jar:]
 at com.netegrity.ims.util.WorkflowApprovalPolicyHelper.getScopedAttributesForWorkitem(WorkflowApprovalPolicyHelper.java:356) [ims.jar:]
 at com.ca.iamframework.webservices.api.ApprovalResource.checkApprovalTaskScreenForRuleBasedWF(ApprovalResource.java:906) [portal-ws.jar:]
 at com.ca.iamframework.webservices.api.ApprovalResource.internalGetData(ApprovalResource.java:541) [portal-ws.jar:]
 at com.ca.iamframework.webservices.api.ApprovalResource.runAction(ApprovalResource.java:243) [portal-ws.jar:]
 at sun.reflect.GeneratedMethodAccessor300.invoke(Unknown Source) [:1.8.0_212]
...

May also show this error message:

2021-02-03 07:55:54,469 ERROR [iamframework.webservices] (default task-82) Workitem isn't assigned for user

Environment

Release : 14.3

Component : CA IDENTITY SUITE (VIRTUAL APPLIANCE)

Resolution

This is working as expected. 

Before changing the workflow policy from "Policy-based" to "Non-Policy based" all the pending work items must be cleared.

If pending work items are not cleared an attempt to approve after changing from "Policy-based" to "Non-Policy based" will result in an error.

Newly generated work items will work fine.