Serial poll, parallel poll in access request

HI,
Can anyone please help with serial poll and parallel poll. I am aware that serial poll and parallel poll will take the poll of approvals and rejections but i could not find any sample after related to that. If any one has the sample after script to approve the access request if any of the 2 approvers accept in serial poll it would be of great help.

Thanks in advance,
Naveen

Hi Krishna,
If you are the admin just open the approval and approve it. Are you facing any issue in approving ?

My scenario is like I have 4 level of approvals and approvals should go in serial mode and if any 2 of the 4 approvers accept the request the access request should be completed. if not then access request should be rejected. I read in the compass that using serial poll we can achieve the above scenario. Can anyone please guide exactly how we can achieve that using serial poll in approval mode.

Can anyone please help over the above issue regarding serial poll and parallel poll

Try this if below works

<AfterScript>
<Source>
import sailpoint.workflow.IdentityRequestLibrary;
import sailpoint.object.ApprovalItem;
import sailpoint.object.ApprovalSet;
import java.util.List;
import sailpoint.object.WorkItem;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

private Log logger = LogFactory.getLog("rule.SP.ApprovalFramework.RulesLibrary");

WorkItem.State state = null;
if (null != item)
List approvalItems = approvalSet.getApproved() ;
logger.trace("List of approval approved Items :"+approvalItems);
if(approvalItems.size()>=2){
for (ApprovalItem approvalItem : approvalItems) {
logger.trace("Approval item in loop :"+approvalItem.toXml());
approvalItem.approve();
}
}

assimilateWorkItemApprovalSet(wfcontext, item, approvalSet);
IdentityRequestLibrary.assimilateWorkItemApprovalSetToIdentityRequest(wfcontext, approvalSet);
auditDecisions(item);
</Source>
</AfterScript>

Tried the above code in provisioning approval subprocess after script and I have set the approval mode as serial poll but once the first approver rejects the work item it is not going to the second level approver and the work item is being rejected automatically without considering the serial poll. It is working similar to serial approval mode.

If any suggestions or if anyone knows, what am I missing, please let me know.

Can you please share the workflow to debug more on this or complete workflow case for this.

That is standard behavior for any poll based approval mode. https://community.sailpoint.com/t5/Technical-White-Papers/Lifecycle-Manager-Workflows/ta-p/71301#toc-hId--210682959

The code @iamksatish shared should work to complete the approval if 2 people in the pool both approve it, but it won’t alter the OOB behavior of a single person rejecting an item as a rejection of that item in whole.

You might be able to change that behavior by updating the filterRejects WF control var, but be mindful of how changing this might impact approvals later in the chain…:

1 Like

Please find the workflow here. When filter rejects is set to false even if the first approver rejects the item is going to the second level of approval. However after all the approvals if the item is rejected by any single person the the request is getting rejected. I have added the code shared by u but no luck
cert prov approval sub process.xml (20.7 KB)

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.