toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case StepExecutionState.pending:
      return 'PENDING';
    case StepExecutionState.running:
      return 'RUNNING';
    case StepExecutionState.$continue:
      return 'CONTINUE';
    case StepExecutionState.completed:
      return 'COMPLETED';
    case StepExecutionState.cancelled:
      return 'CANCELLED';
    case StepExecutionState.failed:
      return 'FAILED';
    case StepExecutionState.interrupted:
      return 'INTERRUPTED';
  }
}