decision.handleCancellationEvent();
return decision.isDone();
}
boolean handleRequestCancelActivityTaskFailed(HistoryEvent event) {
RequestCancelActivityTaskFailedEventAttributes attributes = event.getRequestCancelActivityTaskFailedEventAttributes();
String activityId = attributes.getActivityId();
DecisionStateMachine decision = getDecision(new DecisionId(DecisionTarget.ACTIVITY, activityId));
decision.handleCancellationFailureEvent(event);
return decision.isDone();
}