toStartChildWorkflowExecutionFailedCause method
Implementation
StartChildWorkflowExecutionFailedCause
toStartChildWorkflowExecutionFailedCause() {
switch (this) {
case 'WORKFLOW_TYPE_DOES_NOT_EXIST':
return StartChildWorkflowExecutionFailedCause.workflowTypeDoesNotExist;
case 'WORKFLOW_TYPE_DEPRECATED':
return StartChildWorkflowExecutionFailedCause.workflowTypeDeprecated;
case 'OPEN_CHILDREN_LIMIT_EXCEEDED':
return StartChildWorkflowExecutionFailedCause.openChildrenLimitExceeded;
case 'OPEN_WORKFLOWS_LIMIT_EXCEEDED':
return StartChildWorkflowExecutionFailedCause
.openWorkflowsLimitExceeded;
case 'CHILD_CREATION_RATE_EXCEEDED':
return StartChildWorkflowExecutionFailedCause.childCreationRateExceeded;
case 'WORKFLOW_ALREADY_RUNNING':
return StartChildWorkflowExecutionFailedCause.workflowAlreadyRunning;
case 'DEFAULT_EXECUTION_START_TO_CLOSE_TIMEOUT_UNDEFINED':
return StartChildWorkflowExecutionFailedCause
.defaultExecutionStartToCloseTimeoutUndefined;
case 'DEFAULT_TASK_LIST_UNDEFINED':
return StartChildWorkflowExecutionFailedCause.defaultTaskListUndefined;
case 'DEFAULT_TASK_START_TO_CLOSE_TIMEOUT_UNDEFINED':
return StartChildWorkflowExecutionFailedCause
.defaultTaskStartToCloseTimeoutUndefined;
case 'DEFAULT_CHILD_POLICY_UNDEFINED':
return StartChildWorkflowExecutionFailedCause
.defaultChildPolicyUndefined;
case 'OPERATION_NOT_PERMITTED':
return StartChildWorkflowExecutionFailedCause.operationNotPermitted;
}
throw Exception(
'$this is not known in enum StartChildWorkflowExecutionFailedCause');
}