We have a need to close a Work Item and move that data into a Work Item archive.
I have created a Rule that can delete a group of Work Items based on their Date and Type (i.e Manual Action) but for auditing reasons we need this data to be archived.
Does anyone know if there is a method or anything else that i could use to move this data into a Work Item Object?
Hi @Bradlabs12, do you have the workitem types to archive selected under the IdentityIQ settings > Workitems?
Perform the below steps to archive the workitems.
- Configure this attribute in System Configurations.
<entry key="workItemArchiveTypes" value="Approval/>
- Complete your workitems through any rules using below code.
String workItemName = item.getName();
if(workItemName!=null){
workItemToApprove = (WorkItem)context.getObjectByName(WorkItem.class, workItemName);
try{
owner = workItemToApprove.getOwner().getName();
workItemToApprove.setCompleter(owner);
workItemToApprove.setState(WorkItem.State.Finished);
context.saveObject(workItemToApprove);
context.commitTransaction();
Workflower wf = new Workflower(context);
wf.finish(workItemToApprove);
}
catch (GeneralException e) {
log.error("GeneralException"+e.mesas);
}
}
this should archive all the approval workitems as soon as they are completed
we are looking at closing a bunch of Work Item of Type “Manual Action”. Previous to our full deployment of Sailpoint we were using Work Items for things our provisioning teams needed to do… Now we are using ServiceNow. So, we have a bunch of work items that we need to close. So we wanted close them and archive the information
Gotcha, make sure you select the workitem archive type.
The code Gautham sent can help with approving/closing and then they will be archived.
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
