Share all details about your problem, including any error messages you may have received.
In my certification escalation rule I am trying to do this:
Identity entity = item.getCertificationEntity( );
however, turns out, item, which is an input argument in escalation rules is a workitem and not a certification item. so, the API above returns null. I have some additional logic on the entity object which I cant execute. how do I get the entity identity for the item the escalation rule is being iterated over?
I have already created a dummy certification I can see that cerification object is accesible there…
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Rule PUBLIC "sailpoint.dtd" "sailpoint.dtd">
<Rule language="beanshell" name="test" type="CertificationPhaseChange">
<Description>This rule is run when the certification either enters or leaves a phase.</Description>
<Signature returnType="void">
<Inputs>
<Argument name="log" type="org.apache.commons.logging.Log">
<Description>
The log object associated with the SailPointContext.
</Description>
</Argument>
<Argument name="context" type="sailpoint.api.SailPointContext">
<Description>
A sailpoint.api.SailPointContext object that can be used to query the database if necessary.
</Description>
</Argument>
<Argument name="certification">
<Description>
The sailpoint.object.Certification being certified.
</Description>
</Argument>
<Argument name="certificationItem">
<Description>
The sailpoint.object.CertificationItem that is being certified.
</Description>
</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>xyz</Source>
</Rule>