Package org.apache.airavata.model.workspace.experiment

Examples of org.apache.airavata.model.workspace.experiment.WorkflowNodeState


        this.airavataRegistry = airavataRegistry;
    }

    @Subscribe
    public void updateRegistry(WorkflowNodeStatusChangeRequest workflowNodeStatus) {
        WorkflowNodeState state = workflowNodeStatus.getState();
        if (state != null) {
            try {
                String workflowNodeID = workflowNodeStatus.getIdentity().getWorkflowNodeID();
                updateWorkflowNodeStatus(workflowNodeID, state);
            } catch (Exception e) {
View Full Code Here


        this.airavataRegistry = airavataRegistry;
    }

    @Subscribe
    public void updateRegistry(WorkflowNodeStatusChangeRequest workflowNodeStatus) {
        WorkflowNodeState state = workflowNodeStatus.getState();
        if (state != null) {
            try {
                String workflowNodeID = workflowNodeStatus.getIdentity().getWorkflowNodeID();
                updateWorkflowNodeStatus(workflowNodeID, state);
            } catch (Exception e) {
View Full Code Here

        }
    }
   
    @Subscribe
    public void setupWorkflowNodeStatus(TaskStatusChangeRequest taskStatus){
      WorkflowNodeState state=WorkflowNodeState.UNKNOWN;
      switch(taskStatus.getState()){
      case CANCELED:
        state=WorkflowNodeState.CANCELED; break;
      case COMPLETED:
        state=WorkflowNodeState.COMPLETED; break;
      case CONFIGURING_WORKSPACE:
        state=WorkflowNodeState.INVOKED; break;
      case FAILED:
        state=WorkflowNodeState.FAILED; break;
      case EXECUTING: case WAITING: case PRE_PROCESSING: case POST_PROCESSING: case OUTPUT_DATA_STAGING: case INPUT_DATA_STAGING:
        state=WorkflowNodeState.EXECUTING; break;
      case STARTED:
        state=WorkflowNodeState.INVOKED; break;
      case CANCELING:
        state=WorkflowNodeState.CANCELING; break;
    default:
      break;
      }
      logger.debug("Publishing Experiment Status "+state.toString());
      monitorPublisher.publish(new WorkflowNodeStatusChangeRequest(taskStatus.getIdentity(),state));
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.model.workspace.experiment.WorkflowNodeState

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.