decision.handleCompletionEvent();
return decision.isDone();
}
boolean handleActivityTaskScheduled(HistoryEvent event) {
ActivityTaskScheduledEventAttributes attributes = event.getActivityTaskScheduledEventAttributes();
String activityId = attributes.getActivityId();
activitySchedulingEventIdToActivityId.put(event.getEventId(), activityId);
DecisionStateMachine decision = getDecision(new DecisionId(DecisionTarget.ACTIVITY, activityId));
decision.handleInitiatedEvent(event);
return decision.isDone();
}