Package org.jbpm.taskmgmt.def

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 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)
              ) {
View Full Code Here


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

        }
    return workItem;
  }
 
  private static void initializeVariables(WorkItemImpl workItem, Task task, JpdlNodeInstance nodeInstance) {
    TaskController taskController = task.getTaskController();
    if (taskController != null) {
      Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
        if (taskControllerDelegation != null) {
          // TODO: delegation (API mismatch!)
        } else {
          List<VariableAccess> variableAccesses = taskController.getVariableAccesses();
          if (variableAccesses != null) {
            for (VariableAccess variableAccess: variableAccesses) {
              String mappedName = variableAccess.getMappedName();
              if (variableAccess.isReadable()) {
                String variableName = variableAccess.getVariableName();
View Full Code Here

                "' (" + result.getClass().getName() + ")");
        }
  }
 
  public static void restoreVariables(WorkItemImpl workItem, Task task, JpdlNodeInstance nodeInstance) {
    TaskController taskController = task.getTaskController();
    if (taskController != null) {
      Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
      if (taskControllerDelegation != null) {
        // TODO: delegation (API mismatch!)
        } else {
          List<VariableAccess> variableAccesses = taskController.getVariableAccesses();
          if (variableAccesses != null) {
              String missingTaskVariables = null;
            for (VariableAccess variableAccess: variableAccesses) {
              String mappedName = variableAccess.getMappedName();
              Object value = workItem.getParameter(mappedName);
View Full Code Here

      this.dueDate = businessCalendar.add(Clock.getCurrentTime(), new Duration(task.getDueDate()));
    }
  }
 
  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)
              ) {
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 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.