use of com.uber.cadence.RequestCancelActivityTaskDecisionAttributes in project cadence-client by uber-java.
the class ActivityDecisionStateMachine method createRequestCancelActivityTaskDecision.
private Decision createRequestCancelActivityTaskDecision() {
RequestCancelActivityTaskDecisionAttributes tryCancel = new RequestCancelActivityTaskDecisionAttributes();
tryCancel.setActivityId(scheduleAttributes.getActivityId());
Decision decision = new Decision();
decision.setRequestCancelActivityTaskDecisionAttributes(tryCancel);
decision.setDecisionType(DecisionType.RequestCancelActivityTask);
return decision;
}
Aggregations