use of com.uber.cadence.CompleteWorkflowExecutionDecisionAttributes in project cadence-client by uber-java.
the class DecisionsHelper method completeWorkflowExecution.
void completeWorkflowExecution(byte[] output) {
Decision decision = new Decision();
CompleteWorkflowExecutionDecisionAttributes complete = new CompleteWorkflowExecutionDecisionAttributes();
complete.setResult(output);
decision.setCompleteWorkflowExecutionDecisionAttributes(complete);
decision.setDecisionType(DecisionType.CompleteWorkflowExecution);
DecisionId decisionId = new DecisionId(DecisionTarget.SELF, null);
addDecision(decisionId, new CompleteWorkflowStateMachine(decisionId, decision));
}
Aggregations