Search in sources :

Example 1 with RequestCancelActivityTaskDecisionAttributes

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;
}
Also used : RequestCancelActivityTaskDecisionAttributes(com.uber.cadence.RequestCancelActivityTaskDecisionAttributes) Decision(com.uber.cadence.Decision)

Aggregations

Decision (com.uber.cadence.Decision)1 RequestCancelActivityTaskDecisionAttributes (com.uber.cadence.RequestCancelActivityTaskDecisionAttributes)1