Share all details related to your problem, including any error messages you may have received.
Hello everyone,
I’ve been working on a requirement to fetch the past Certified items.To achieve this i’ve written a CertificationItemCustomization rule.Logic used here is i’ll be fetching CertificationDefinition from certification object(That is input argument) and from certificationDefinition name i’ll fetch the most recent certificationDefinition object(Using queryOptions etc).I’m unable to retrieve the list of entitlements that are being certificatied in the most recent certification(Using CertfDef object).Could you please help me on this
In which part of the certification process are you invoking your customization rule? For a rule that is triggered as part of the Active/Revoke/End Period, you can access the full certification information.
Example of End Period rule:
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule language="beanshell" name="EndPeriodCustomRule" type="CertificationPhaseChange">
<Description></Description>
<Signature returnType="void">
<Inputs>
<Argument name="context" type="sailpoint.api.SailPointContext">
</Argument>
<Argument name="certification">
</Argument>
<Argument name="previousPhase">
<Description>
Certification.Phase (may be null) that is the previous phase.
</Description>
</Argument>
<Argument name="nextPhase">
<Description>
Certification.Phase (may be null) that is the next phase.
</Description>
</Argument>
</Inputs>
</Signature>
<Source>
import sailpoint.object.*;
for (CertificationEntity certificationEntity : certification.getEntities()) {
for (CertificationItem certificationItem : certificationEntity.getItems()) {
//some code here
}
}</Source>
</Rule>