Hello,
Need some help with Listener rules.
We use IIQ 8.4.
I am trying to send oldValue if the new value is null in the listener rule. here is the piece of code i have come up with.
import sailpoint.api.;
import sailpoint.object.;
import java.util.*;
log.error(“First name old value:::”+oldValue);
log.error(“First name new value:::”+newValue);
if (newValue == null && oldValue != null){
log.error(“New value null and old value is not null”);
if (identity.getType()!=null){
String usrIdentityType = identity.getType();
if (usrIdentityType.equalsIgnoreCase(“contractor”) || usrIdentityType.equalsIgnoreCase(“external user”) ){
log.error(“Type is not null if condition true:::”+usrIdentityType);
newValue = oldValue;
log.error(“Final First name old value:::”+oldValue);
log.error(“Final First name new value:::”+newValue);
}
}
}
When i send new value as null through aggregation, it prints the old value as new value in the last log.error statement however newValue is still being sent as null and it’s getting removed from Authoritative source and identity cube.
Please review and let me know if i miss anything.