Search in sources :

Example 1 with WorkflowExecutionCompletedEventAttributes

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

Aggregations

ChildWorkflowExecutionCompletedEventAttributes (com.uber.cadence.ChildWorkflowExecutionCompletedEventAttributes)1 HistoryEvent (com.uber.cadence.HistoryEvent)1 WorkflowExecutionCompletedEventAttributes (com.uber.cadence.WorkflowExecutionCompletedEventAttributes)1