Exemplo n.º 1
0
 /*
  * Claims an action for a given eperson
  */
 @Override
 public void createOwnedTask(
     Context context, XmlWorkflowItem wi, Step step, WorkflowActionConfig action, EPerson e)
     throws SQLException, AuthorizeException {
   ClaimedTask task = claimedTaskService.create(context);
   task.setWorkflowItem(wi);
   task.setStepID(step.getId());
   task.setActionID(action.getId());
   task.setOwner(e);
   task.setWorkflowID(step.getWorkflow().getID());
   claimedTaskService.update(context, task);
   // Make sure this user has a task
   grantUserAllItemPolicies(context, wi.getItem(), e);
 }