Package org.apache.airavata.workflow.model.wf

Examples of org.apache.airavata.workflow.model.wf.WorkflowExecutionState


    switch (messageType) {
    case NODE_STATE_CHANGED:
      xbayaGUI.getGraphCanvas().repaint();
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      // if (state==WorkflowExecutionState.PAUSED ||
      // state==WorkflowExecutionState.STOPPED) {
      // if (getWorkflow().getExecutionState() ==
      // WorkflowExecutionState.RUNNING
      // || getWorkflow().getExecutionState() ==
View Full Code Here


  public boolean notify(WorkflowExecutionMessage messageType, WorkflowInterpreterConfiguration config, Object data) {
    switch (messageType) {
    case NODE_STATE_CHANGED:
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      if (state == WorkflowExecutionState.PAUSED
          || state == WorkflowExecutionState.STOPPED) {
        config.getWorkflow().setExecutionState(WorkflowExecutionState.STOPPED);
      }
      break;
View Full Code Here

    switch (messageType) {
    case NODE_STATE_CHANGED:
      xbayaGUI.getGraphCanvas().repaint();
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      // if (state==WorkflowExecutionState.PAUSED ||
      // state==WorkflowExecutionState.STOPPED) {
      // if (getWorkflow().getExecutionState() ==
      // WorkflowExecutionState.RUNNING
      // || getWorkflow().getExecutionState() ==
View Full Code Here

  public boolean notify(WorkflowExecutionMessage messageType, WorkflowInterpreterConfiguration config, Object data) {
    switch (messageType) {
    case NODE_STATE_CHANGED:
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      if (state == WorkflowExecutionState.PAUSED
          || state == WorkflowExecutionState.STOPPED) {
        config.getWorkflow().setExecutionState(WorkflowExecutionState.STOPPED);
      }
      break;
View Full Code Here

    switch (messageType) {
    case NODE_STATE_CHANGED:
      xbayaGUI.getGraphCanvas().repaint();
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      // if (state==WorkflowExecutionState.PAUSED ||
      // state==WorkflowExecutionState.STOPPED) {
      // if (getWorkflow().getExecutionState() ==
      // WorkflowExecutionState.RUNNING
      // || getWorkflow().getExecutionState() ==
View Full Code Here

             * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
             */
            public void actionPerformed(ActionEvent e1) {
                try {
                    Workflow workflow = engine.getGUI().getWorkflow();
                    WorkflowExecutionState executionState = workflow.getExecutionState();
                    if (executionState == WorkflowExecutionState.RUNNING || executionState == WorkflowExecutionState.STEP) {
                        workflow.setExecutionState(WorkflowExecutionState.PAUSED);
                        play.setIcon(PLAY_ICON);
                    } else if (executionState == WorkflowExecutionState.PAUSED) {
                        workflow.setExecutionState(WorkflowExecutionState.RUNNING);
View Full Code Here

  public boolean notify(WorkflowExecutionMessage messageType, WorkflowInterpreterConfiguration config, Object data) {
    switch (messageType) {
    case NODE_STATE_CHANGED:
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      config.getWorkflow().setExecutionState(state);
//      if (state == WorkflowExecutionState.PAUSED
//          || state == WorkflowExecutionState.STOPPED) {
//        config.getWorkflow().setExecutionState(WorkflowExecutionState.STOPPED);
//      }else if (state == WorkflowExecutionState.RUNNING) {
View Full Code Here

    switch (messageType) {
    case NODE_STATE_CHANGED:
      xbayaGUI.getGraphCanvas().repaint();
      break;
    case EXECUTION_STATE_CHANGED:
      WorkflowExecutionState state = (WorkflowExecutionState) data;
      // if (state==WorkflowExecutionState.PAUSED ||
      // state==WorkflowExecutionState.STOPPED) {
      // if (getWorkflow().getExecutionState() ==
      // WorkflowExecutionState.RUNNING
      // || getWorkflow().getExecutionState() ==
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.model.wf.WorkflowExecutionState

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.