use of com.uber.cadence.WorkflowExecutionCompletedEventAttributes in project cadence-client by uber-java.
the class StateMachines method completeWorkflow.
private static void completeWorkflow(RequestContext ctx, WorkflowData data, CompleteWorkflowExecutionDecisionAttributes d, long decisionTaskCompletedEventId) {
WorkflowExecutionCompletedEventAttributes a = new WorkflowExecutionCompletedEventAttributes().setResult(d.getResult()).setDecisionTaskCompletedEventId(decisionTaskCompletedEventId);
HistoryEvent event = new HistoryEvent().setEventType(EventType.WorkflowExecutionCompleted).setWorkflowExecutionCompletedEventAttributes(a);
ctx.addEvent(event);
}
Aggregations