Examples of reassign()


Examples of org.intalio.tempo.workflow.tms.ITaskManagementService.reassign()

      String[] ids = new String[tasks.length];
      for(int i = 0 ; i <tasks.length ; i++ids[i] = tasks[i].getID();
      AuthIdentifierSet users = new AuthIdentifierSet();
      users.add("intalio\\admin");
      AuthIdentifierSet roles = new  AuthIdentifierSet();
      tms.reassign(ids, users, roles, newState);
     
      tasks = tms.getAvailableTasks(TaskType.ACTIVITY.name(), "");
      Assert.assertEquals(newState, ((PATask)tasks[0]).getState());
    }
}
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.ITaskManagementService.reassign()

        Collection<String> uOwners = selectTask.getUserOwners();
        uOwners.clear();
        selectTask.getRoleOwners().clear();
        selectTask.getUserOwners().addAll(targetUserSet);

        tms.reassign(new String[] {selectTask.getID()}, (AuthIdentifierSet)selectTask.getUserOwners(), (AuthIdentifierSet) selectTask.getRoleOwners(), selectTask.getState());
        _logger.debug("Reassign task[" + selectTaskId + "] to " + targetUserId);

        /*
         * check that the task is not in the inbox of current user
         */
 
View Full Code Here

Examples of org.intalio.tempo.workflow.tms.client.TempoClient.reassign()

        else if (optionalCall.equals("delete"))
          tempoClient.delete(new String[] { id });
        else if (optionalCall.equals("deleteAll"))
          tempoClient.deleteAll("false", "T._state = TaskState.READY", "PATask");
        else if (optionalCall.equals("reassign"))
            tempoClient.reassign(id, "examples/msmith");
        else
            throw new Exception("invalid optional call:" + optionalCall);

        _log.info("wait some more so that we process the optional call");
        Thread.sleep(SLEEP_TIME);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.