Examples of WorkflowState


Examples of org.apache.oodt.cas.workflow.lifecycle.WorkflowState

    inst.setCurrentTaskId(workflow.getTasks().get(0).getTaskId());
    inst.setSharedContext(metadata);
    inst.setPriority(Priority.getDefault()); // FIXME: this should be sensed or
                                             // passed in
    WorkflowLifecycle cycle = getLifecycleForWorkflow(workflow);
    WorkflowState state = cycle.createState("Null", "initial",
        "Workflow created by Engine.");
    inst.setState(state);
    persist(inst);
    return inst;
  }
View Full Code Here

Examples of org.apache.oodt.cas.workflow.lifecycle.WorkflowState

    return tasks;
  }

  public void validateWorkflowProcessor(WorkflowProcessor wp) {
    if (wp instanceof TaskProcessor) {
      WorkflowState state = wp.getState();
      WorkflowLifecycle lc = this.lifecycle.getLifecycleForWorkflow(wp
          .getWorkflowInstance().getWorkflow());
      if (lc == null)
        lc = this.lifecycle.getDefaultLifecycle();
      if ((state.getName().equals("WaitingOnResources") && state.getPrevState()
          .getName().equals("Executing"))
          || state.getName().equals("Executing"))
        wp.setState(lc.createState("Queued", "waiting",
            "Marked back to queued state because of system failure"));
      else
        wp.setState(state);
    } else {
View Full Code Here

Examples of org.apache.oodt.cas.workflow.lifecycle.WorkflowState

   *
   * @param status The provided status to set.
   */
  @Deprecated
  public void setStatus(String status){
    WorkflowState state = new WorkflowState();
    state.setName(status);
    this.state = state;
  }
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.