Planning to remove the second flavor of makeOutcome() from the Params,
so modifying the drools-apps code to work with the first flavor.
Issue-ID: POLICY-2804
Change-Id: Iddb288f7cf53e93919e77aca8afe3869fadb0d37
Signed-off-by: Jim Hahn <jrh3@att.com>
if (guardDisabled && "GUARD".equals($step.getActorName())) {
// guard is disabled - just enqueue a "SUCCESS" (i.e., "Permit")
- OperationOutcome outcome = $step.getParams().makeOutcome(null);
+ OperationOutcome outcome = $step.getParams().makeOutcome();
outcome.setStart(Instant.now());
outcome.setEnd(outcome.getStart());
* @return a new operation outcome
*/
public OperationOutcome makeOutcome() {
- return params.makeOutcome(operation.getProperty(OperationProperties.AAI_TARGET_ENTITY));
+ OperationOutcome outcome = params.makeOutcome();
+ outcome.setTarget(operation.getProperty(OperationProperties.AAI_TARGET_ENTITY));
+
+ return outcome;
}
@Override