Package org.jbpm.taskmgmt.def

Examples of org.jbpm.taskmgmt.def.TaskController


    this.priority = task.getPriority();
    this.isSignalling = task.isSignalling();
  }

  void submitVariables() {
    TaskController taskController = (task != null ? task.getTaskController() : null);
    // if there is a task controller,
    if (taskController != null) {
      // the task controller is responsible for copying variables back into the process
      taskController.submitParameters(this);

      // if there is no task controller
    }
    else if ((token != null) && (token.getProcessInstance() != null)) {
      // the default behaviour is that all task-local variables are flushed to the process
View Full Code Here


      }
    }
  }

  void initializeVariables() {
    TaskController taskController = (task != null ? task.getTaskController() : null);
    if (taskController != null) {
      taskController.initializeVariables(this);
    }
  }
View Full Code Here

    return assignmentDelegation;
  }

  protected TaskController readTaskController(Element taskControllerElement)
  {
    TaskController taskController = new TaskController();

    if (taskControllerElement.attributeValue("class") != null)
    {
      Delegation taskControllerDelegation = new Delegation();
      taskControllerDelegation.read(taskControllerElement, this);
      taskController.setTaskControllerDelegation(taskControllerDelegation);

    }
    else
    {
      List<VariableAccess> variableAccesses = readVariableAccesses(taskControllerElement);
      taskController.setVariableAccesses(variableAccesses);
    }
    return taskController;
  }
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertNull(taskController.getVariableAccesses());
    Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
    assertNotNull(taskControllerDelegation);
    assertEquals("my-own-task-controller-handler-class", taskControllerDelegation.getClassName());
  }
View Full Code Here

      "  </task-node>" +
      "</process-definition>"
    );
    TaskNode taskNode = (TaskNode) processDefinition.getNode("t");
    Task task = taskNode.getTask("clean ceiling");
    TaskController taskController = task.getTaskController();
    assertNotNull(taskController);
    assertNull(taskController.getTaskControllerDelegation());
    List variableAccesses = taskController.getVariableAccesses();
    assertNotNull(variableAccesses);
    assertEquals(3, variableAccesses.size());
    VariableAccess variableAccess = (VariableAccess) variableAccesses.get(0);
    assertNotNull(variableAccesses);
    assertEquals("a", variableAccess.getVariableName());
View Full Code Here

    this.taskInstance = taskInstance;
    this.taskInstanceId = taskInstance.getId();

    // set the parameters
    this.taskFormParameters = new ArrayList();
    TaskController taskController = taskInstance.getTask().getTaskController();
    if (taskController!=null) {
      List variableAccesses = taskController.getVariableAccesses();
      Iterator iter = variableAccesses.iterator();
      while (iter.hasNext()) {
        VariableAccess variableAccess = (VariableAccess) iter.next();
        String mappedName = variableAccess.getMappedName();
        Object value = taskInstance.getVariable(mappedName);
View Full Code Here

      this.dueDate = businessCalendar.add(new Date(), new Duration(task.getDueDate()));
    }
  }
 
  void submitVariables() {
    TaskController taskController = (task!=null ? task.getTaskController() : null);
    if (taskController!=null) {
      taskController.submitParameters(this);
    }
  }
View Full Code Here

    if (taskController!=null) {
      taskController.submitParameters(this);
    }
  }
  void initializeVariables() {
    TaskController taskController = (task!=null ? task.getTaskController() : null);
    if (taskController!=null) {
      taskController.initializeVariables(this);
    }
  }
View Full Code Here

    }
    return assignmentDelegation;
  }

  protected TaskController readTaskController(Element taskControllerElement) {
    TaskController taskController = new TaskController();

    if (taskControllerElement.attributeValue("class")!=null) {
      Delegation taskControllerDelegation = new Delegation();
      taskControllerDelegation.read(taskControllerElement, this);
      taskController.setTaskControllerDelegation(taskControllerDelegation);

    } else {
      List variableAccesses = readVariableAccesses(taskControllerElement);
      taskController.setVariableAccesses(variableAccesses);
    }
    return taskController;
  }
View Full Code Here

    }
    return assignmentDelegation;
  }

  protected TaskController readTaskController(Element taskControllerElement) {
    TaskController taskController = new TaskController();

    if (taskControllerElement.attributeValue("class")!=null) {
      Delegation taskControllerDelegation = new Delegation();
      taskControllerDelegation.read(taskControllerElement, this);
      taskController.setTaskControllerDelegation(taskControllerDelegation);

    } else {
      List variableAccesses = readVariableAccesses(taskControllerElement);
      taskController.setVariableAccesses(variableAccesses);
    }
    return taskController;
  }
View Full Code Here

TOP

Related Classes of org.jbpm.taskmgmt.def.TaskController

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.