Search in sources :

Example 1 with WorkflowExecutionCanceledEventAttributes

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);
}
Also used : WorkflowExecutionCanceledEventAttributes(com.uber.cadence.WorkflowExecutionCanceledEventAttributes) ChildWorkflowExecutionCanceledEventAttributes(com.uber.cadence.ChildWorkflowExecutionCanceledEventAttributes) HistoryEvent(com.uber.cadence.HistoryEvent)

Aggregations

ChildWorkflowExecutionCanceledEventAttributes (com.uber.cadence.ChildWorkflowExecutionCanceledEventAttributes)1 HistoryEvent (com.uber.cadence.HistoryEvent)1 WorkflowExecutionCanceledEventAttributes (com.uber.cadence.WorkflowExecutionCanceledEventAttributes)1