toValue method

String toValue()

Implementation

String toValue() {
  switch (this) {
    case WorkflowRunStatus.running:
      return 'RUNNING';
    case WorkflowRunStatus.completed:
      return 'COMPLETED';
    case WorkflowRunStatus.stopping:
      return 'STOPPING';
    case WorkflowRunStatus.stopped:
      return 'STOPPED';
    case WorkflowRunStatus.error:
      return 'ERROR';
  }
}