import lombok.NoArgsConstructor;
import lombok.NonNull;
import org.onap.policy.controlloop.ControlLoopOperation;
-import org.onap.policy.controlloop.ControlLoopResponse;
import org.onap.policy.controlloop.policy.PolicyResult;
/**
private PolicyResult result = PolicyResult.SUCCESS;
private String message;
private boolean finalOutcome;
- private ControlLoopResponse controlLoopResponse;
+ private Object response;
/**
* Copy constructor.
this.result = source.result;
this.message = source.message;
this.finalOutcome = source.finalOutcome;
- this.controlLoopResponse = source.controlLoopResponse;
+ this.response = source.response;
}
/**
return clo;
}
+ @SuppressWarnings("unchecked")
+ public <T> T getResponse() {
+ return (T) response;
+ }
+
/**
* Determines if this outcome is for the given actor and operation.
*