return result;
}
private boolean isCompletionEvent(Decision decision) {
DecisionType type = DecisionType.fromValue(decision.getDecisionType());
switch (type) {
case CancelWorkflowExecution:
case CompleteWorkflowExecution:
case FailWorkflowExecution:
case ContinueAsNewWorkflowExecution: