Which IIQ version are you inquiring about?
Version 8.0
Share all details related to your problem, including any error messages you may have received.
Hi All,
I am trying to write an before provisioning rule for a JDBC application. The basic requirement is that if a plan contains same attribute request with different value it will modify the pan to have only one attribute request for that filed and in the value for that attribute request it will set all the values as list. Below is my code:
import sailpoint.object.Identity;
import sailpoint.object.ProvisioningPlan;
import sailpoint.object.ProvisioningPlan.AccountRequest;
import sailpoint.object.ProvisioningPlan.AttributeRequest;
import sailpoint.object.ProvisioningPlan.Operation;
import sailpoint.tools.Util;
List values = new ArrayList();
List attReqList = new ArrayList();
int count=0;
// if(plan!=null){
AccountRequest accReq=plan.getAccountRequest("JDBC-Application");
attReqList = accReq.getAttributeRequests();
for(AttributeRequest att: attReqList){
if(att.getName().equalsIgnoreCase("RoleName")){
values.add(att.getValue());
}
}
log.error(values.size());
if(values.size()>1){
for(AttributeRequest att: attReqList){
if(att.getName().equalsIgnoreCase("RoleName")){
if(count==0){
att.setValue(values);
count ++;
} else{
accReq.remove(att);
log.error("need to do");
}
}
}
}
// }
However, this code when ever I am trying to execute it is giving me an unknown error "Caused by: org.apache.bsf.BSFException: BeanShell script error: bsh.EvalError: Sourced file: inline evaluation of: import sailpoint.object.Identity; import sailpoint.object.ProvisioningPlan; . . . '' unknown error: null : at Line: 26 : in file: inline evaluation of:
import sailpoint.object.Identity; import sailpoint.object.ProvisioningPlan; . . . ‘’ : if ( values .size ( ) > 1 ) { "
Can anyone please help me to debug this?