for (int workflowIdentifier : workflowIdentifiers) {
XmlWorkflowItem workflowItem = XmlWorkflowItem.find(context, workflowIdentifier);
if (workflowItem != null) {
WorkspaceItem workspaceItem = XmlWorkflowManager.sendWorkflowItemBackSubmission(context, workflowItem, context.getCurrentUser(), "Item sent back to the submisson process by admin", null);
//Delete the workspaceItem
workspaceItem.deleteAll();
}
}
}
return null;