toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case FlowExecutionEventType.executionStarted:
      return 'EXECUTION_STARTED';
    case FlowExecutionEventType.executionFailed:
      return 'EXECUTION_FAILED';
    case FlowExecutionEventType.executionAborted:
      return 'EXECUTION_ABORTED';
    case FlowExecutionEventType.executionSucceeded:
      return 'EXECUTION_SUCCEEDED';
    case FlowExecutionEventType.stepStarted:
      return 'STEP_STARTED';
    case FlowExecutionEventType.stepFailed:
      return 'STEP_FAILED';
    case FlowExecutionEventType.stepSucceeded:
      return 'STEP_SUCCEEDED';
    case FlowExecutionEventType.activityScheduled:
      return 'ACTIVITY_SCHEDULED';
    case FlowExecutionEventType.activityStarted:
      return 'ACTIVITY_STARTED';
    case FlowExecutionEventType.activityFailed:
      return 'ACTIVITY_FAILED';
    case FlowExecutionEventType.activitySucceeded:
      return 'ACTIVITY_SUCCEEDED';
    case FlowExecutionEventType.startFlowExecutionTask:
      return 'START_FLOW_EXECUTION_TASK';
    case FlowExecutionEventType.scheduleNextReadyStepsTask:
      return 'SCHEDULE_NEXT_READY_STEPS_TASK';
    case FlowExecutionEventType.thingActionTask:
      return 'THING_ACTION_TASK';
    case FlowExecutionEventType.thingActionTaskFailed:
      return 'THING_ACTION_TASK_FAILED';
    case FlowExecutionEventType.thingActionTaskSucceeded:
      return 'THING_ACTION_TASK_SUCCEEDED';
    case FlowExecutionEventType.acknowledgeTaskMessage:
      return 'ACKNOWLEDGE_TASK_MESSAGE';
  }
}