toValue method
Implementation
String toValue() {
switch (this) {
case StepState.pending:
return 'PENDING';
case StepState.cancelPending:
return 'CANCEL_PENDING';
case StepState.running:
return 'RUNNING';
case StepState.completed:
return 'COMPLETED';
case StepState.cancelled:
return 'CANCELLED';
case StepState.failed:
return 'FAILED';
case StepState.interrupted:
return 'INTERRUPTED';
}
}