Null Workitem during Certification campaign

Which IIQ version are you inquiring about?

[8.4]

Please share any images or screenshots, if relevant.

Tomcat log:

Please share any other relevant files that may be required.

import sailpoint.object.Identity;
import sailpoint.object.WorkItem;
import  sailpoint.api.SailPointContext;
System.out.println("Unique123");
System.out.println(owner);
System.out.println("Unique345");
System.out.println(item);

if(!(item.getName()==null)){
if(item.getType().equals(WorkItem.Type.Certification) || item.getType().equals(WorkItem.Type.Challenge)||item.getType().equals(WorkItem.Type.Signoff)||item.getType().equals(WorkItem.Type.Remediation)){
		System.out.println("Inside If check statement");
		try{
		String nOwner = item.getOwner().getName();
		System.out.println(nOwner);
		return nOwner;}catch(error){System.out.println(error);}
		}
}else{
                return item.getOwner();
		
		}

Share all details about your problem, including any error messages you may have received.

Hi,

I have a use case where we change preference of an identity to forward all the workitems to another identity.

Next we want to forward all the work items except the one related to certification, remediation… I have attached the rule I’m using to do that.
Problem I’m facing is there are two workitems generated(look at the attached image). First is null and the second one is the required workitem. According to the logic of my rule the workitem should go to the original owner (item.getOwner()) not the forwarded user.
The logs also show the same but when I run a certification campaign the item goes to the forwarded user. Somehow the null workitem is hampering with the rules logic.

Please help.

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