Examples of TaskController


Examples of com.extjs.gxt.samples.mail.client.mvc.TaskController

    Registry.register(SERVICE, service);

    Dispatcher dispatcher = Dispatcher.get();
    dispatcher.addController(new AppController());
    dispatcher.addController(new MailController());
    dispatcher.addController(new TaskController());
    dispatcher.addController(new ContactController());

    dispatcher.dispatch(AppEvents.Login);
   
    GXT.hideLoadingPanel("loading");
View Full Code Here

Examples of org.apache.hadoop.mapred.TaskController

   */
  public UserLogManager(Configuration conf) throws IOException {
    Class<? extends TaskController> taskControllerClass =
      conf.getClass("mapred.task.tracker.task-controller",
                     DefaultTaskController.class, TaskController.class);
    TaskController taskController =
     (TaskController) ReflectionUtils.newInstance(taskControllerClass, conf);
    this.taskController = taskController;
    setFields(conf);
  }
View Full Code Here

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

Examples of org.jbpm.taskmgmt.def.TaskController

      }
    }
  }

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

Examples of org.jbpm.taskmgmt.def.TaskController

    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

Examples of org.jbpm.taskmgmt.def.TaskController

      "  </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

Examples of org.jbpm.taskmgmt.def.TaskController

      "  </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

Examples of org.jbpm.taskmgmt.def.TaskController

    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

Examples of org.jbpm.taskmgmt.def.TaskController

      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

Examples of org.jbpm.taskmgmt.def.TaskController

    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
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.