decision.handleCancellationInitiatedEvent();
return decision.isDone();
}
public boolean handleActivityTaskCanceled(HistoryEvent event) {
ActivityTaskCanceledEventAttributes attributes = event.getActivityTaskCanceledEventAttributes();
String activityId = getActivityId(attributes);
DecisionStateMachine decision = getDecision(new DecisionId(DecisionTarget.ACTIVITY, activityId));
decision.handleCancellationEvent();
return decision.isDone();
}