addDecision(decisionId, new CompleteWorkflowStateMachine(decisionId, decision));
}
void failWorkflowExecution(Throwable e) {
Decision decision = new Decision();
FailWorkflowExecutionDecisionAttributes fail = createFailWorkflowInstanceAttributes(e);
decision.setFailWorkflowExecutionDecisionAttributes(fail);
decision.setDecisionType(DecisionType.FailWorkflowExecution.toString());
DecisionId decisionId = new DecisionId(DecisionTarget.SELF, null);
addDecision(decisionId, new CompleteWorkflowStateMachine(decisionId, decision));
workflowFailureCause = e;