use of com.uber.cadence.WorkflowExecutionCanceledEventAttributes in project cadence-client by uber-java.
the class StateMachines method cancelWorkflow.
private static void cancelWorkflow(RequestContext ctx, WorkflowData data, CancelWorkflowExecutionDecisionAttributes d, long decisionTaskCompletedEventId) {
WorkflowExecutionCanceledEventAttributes a = new WorkflowExecutionCanceledEventAttributes().setDetails(d.getDetails()).setDecisionTaskCompletedEventId(decisionTaskCompletedEventId);
HistoryEvent event = new HistoryEvent().setEventType(EventType.WorkflowExecutionCanceled).setWorkflowExecutionCanceledEventAttributes(a);
ctx.addEvent(event);
}
Aggregations