use of com.uber.cadence.WorkflowExecutionCancelRequestedEventAttributes in project cadence-client by uber-java.
the class StateMachines method requestWorkflowCancellation.
private static void requestWorkflowCancellation(RequestContext ctx, WorkflowData data, RequestCancelWorkflowExecutionRequest cancelRequest, long notUsed) {
WorkflowExecutionCancelRequestedEventAttributes a = new WorkflowExecutionCancelRequestedEventAttributes().setIdentity(cancelRequest.getIdentity());
HistoryEvent cancelRequested = new HistoryEvent().setEventType(EventType.WorkflowExecutionCancelRequested).setWorkflowExecutionCancelRequestedEventAttributes(a);
ctx.addEvent(cancelRequested);
}
Aggregations