toFlowExecutionEventType method
Implementation
FlowExecutionEventType toFlowExecutionEventType() {
switch (this) {
case 'EXECUTION_STARTED':
return FlowExecutionEventType.executionStarted;
case 'EXECUTION_FAILED':
return FlowExecutionEventType.executionFailed;
case 'EXECUTION_ABORTED':
return FlowExecutionEventType.executionAborted;
case 'EXECUTION_SUCCEEDED':
return FlowExecutionEventType.executionSucceeded;
case 'STEP_STARTED':
return FlowExecutionEventType.stepStarted;
case 'STEP_FAILED':
return FlowExecutionEventType.stepFailed;
case 'STEP_SUCCEEDED':
return FlowExecutionEventType.stepSucceeded;
case 'ACTIVITY_SCHEDULED':
return FlowExecutionEventType.activityScheduled;
case 'ACTIVITY_STARTED':
return FlowExecutionEventType.activityStarted;
case 'ACTIVITY_FAILED':
return FlowExecutionEventType.activityFailed;
case 'ACTIVITY_SUCCEEDED':
return FlowExecutionEventType.activitySucceeded;
case 'START_FLOW_EXECUTION_TASK':
return FlowExecutionEventType.startFlowExecutionTask;
case 'SCHEDULE_NEXT_READY_STEPS_TASK':
return FlowExecutionEventType.scheduleNextReadyStepsTask;
case 'THING_ACTION_TASK':
return FlowExecutionEventType.thingActionTask;
case 'THING_ACTION_TASK_FAILED':
return FlowExecutionEventType.thingActionTaskFailed;
case 'THING_ACTION_TASK_SUCCEEDED':
return FlowExecutionEventType.thingActionTaskSucceeded;
case 'ACKNOWLEDGE_TASK_MESSAGE':
return FlowExecutionEventType.acknowledgeTaskMessage;
}
throw Exception('$this is not known in enum FlowExecutionEventType');
}