public boolean isDone() {
return state == DecisionState.COMPLETED || canceled;
}
private Decision createCancelTimerDecision() {
CancelTimerDecisionAttributes tryCancel = new CancelTimerDecisionAttributes();
tryCancel.setTimerId(attributes.getTimerId());
Decision decision = new Decision();
decision.setCancelTimerDecisionAttributes(tryCancel);
decision.setDecisionType(DecisionType.CancelTimer.toString());
return decision;
}