}
}
@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));
}