@@ 1008-1013 (lines=6) @@ | ||
1005 | case WorkflowEntryInterface::CREATED: { |
|
1006 | $result = false; |
|
1007 | } |
|
1008 | case WorkflowEntryInterface::ACTIVATED: { |
|
1009 | if (WorkflowEntryInterface::CREATED === $currentState || WorkflowEntryInterface::SUSPENDED === $currentState) { |
|
1010 | $result = true; |
|
1011 | } |
|
1012 | break; |
|
1013 | } |
|
1014 | case WorkflowEntryInterface::SUSPENDED: { |
|
1015 | if (WorkflowEntryInterface::ACTIVATED === $currentState) { |
|
1016 | $result = true; |
|
@@ 1020-1025 (lines=6) @@ | ||
1017 | } |
|
1018 | break; |
|
1019 | } |
|
1020 | case WorkflowEntryInterface::KILLED: { |
|
1021 | if (WorkflowEntryInterface::CREATED === $currentState || WorkflowEntryInterface::ACTIVATED === $currentState || WorkflowEntryInterface::SUSPENDED === $currentState) { |
|
1022 | $result = true; |
|
1023 | } |
|
1024 | break; |
|
1025 | } |
|
1026 | default: { |
|
1027 | $result = false; |
|
1028 | break; |