Search in sources :

Example 1 with CompleteWorkflowExecutionDecisionAttributes

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));
}
Also used : CompleteWorkflowExecutionDecisionAttributes(com.uber.cadence.CompleteWorkflowExecutionDecisionAttributes) Decision(com.uber.cadence.Decision)

Aggregations

CompleteWorkflowExecutionDecisionAttributes (com.uber.cadence.CompleteWorkflowExecutionDecisionAttributes)1 Decision (com.uber.cadence.Decision)1