Package org.intalio.tempo.workflow.task

Examples of org.intalio.tempo.workflow.task.TaskState


    public void testMultipleReassign() throws Exception {
      ITaskManagementService tms = new RemoteTMSFactory(TMS_REMOTE_URL, TOKEN).getService();
     
     
      Task[] tasks = tms.getAvailableTasks(TaskType.ACTIVITY.name(), "");
      TaskState newState = TaskState.READY;
      if(((PATask)tasks[0]).getState().equals(TaskState.READY))
        newState = TaskState.CLAIMED;
     
      String[] ids = new String[tasks.length];
      for(int i = 0 ; i <tasks.length ; i++ids[i] = tasks[i].getID();
View Full Code Here


        dao=_taskDAOFactory.openConnection();
            OMElementQueue rootQueue = new OMElementQueue(requestElement);
            ArrayList<String> taskIds = expectListOfValues(rootQueue, "taskId");
            AuthIdentifierSet users = expectAuthIdentifiers(rootQueue, "userOwner");
            AuthIdentifierSet roles = expectAuthIdentifiers(rootQueue, "roleOwner");
            TaskState taskState;
            String taskStateStr = requireElementValue(rootQueue, "taskState");
            try {
                taskState = TaskState.valueOf(taskStateStr.toUpperCase());
            } catch (IllegalArgumentException e) {
                throw new InvalidInputFormatException("Unknown task state: '" + taskStateStr + "'");
View Full Code Here

        String isChainedBeforeStr = expectElementValue(taskMetadata, "isChainedBefore");
        String previousTaskID = expectElementValue(taskMetadata, "previousTaskId");

        Class<? extends Task> taskClass = TaskTypeMapper.getTypeClassByName(taskTypeStr);
        Task resultTask = null;
        TaskState taskState = null;

        if (!ITaskWithState.class.isAssignableFrom(taskClass)) {
            forbidParameter(taskStateStr, "task state");
            forbidParameter(failureCode, "failure code");
            forbidParameter(failureReason, "failure reason");
View Full Code Here

TOP

Related Classes of org.intalio.tempo.workflow.task.TaskState

Copyright © 2018 www.massapicom. 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.