currentWorkflowMutation WorkflowMutation,
newWorkflowSnapshot *WorkflowSnapshot,
currentWorkflowState := currentWorkflowMutation.ExecutionState.State
if err := checkWorkflowState(currentWorkflowState); err != nil {
return err
}
if newWorkflowSnapshot != nil {
newWorkflowState = &newWorkflowSnapshot.ExecutionState.State
if err := checkWorkflowState(*newWorkflowState); err != nil {