* ONAP
* ================================================================================
* Copyright (C) 2020-2022 AT&T Intellectual Property. All rights reserved.
- * Modifications Copyright (C) 2023 Nordix Foundation.
+ * Modifications Copyright (C) 2023-2024 Nordix Foundation.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
//
try {
if (notification != null) {
- PolicyEngineConstants.getManager().deliver("POLICY-CL-MGT", notification);
+ PolicyEngineConstants.getManager().deliver("policy-cl-mgt", notification);
}
} catch(RuntimeException e) {
notification.setPolicyScope(drools.getRule().getName());
notification.setPolicyName($manager.getPolicyName());
notification.setPolicyVersion($manager.getPolicyVersion());
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
try {
ControlLoopResponse clResponse = $manager.makeControlLoopResponse($outcome);
- $manager.deliver("DCAE_CL_RSP", clResponse, "SDNR notification", drools.getRule().getName());
+ $manager.deliver("dcae_cl_rsp", clResponse, "SDNR notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception generating SDNR Response notification",
+ " is Deny");
}
- $manager.deliver("POLICY-CL-MGT", notification, "GUARD notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "GUARD notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception generating GUARD notification",
notification.setHistory(Collections.emptyList());
notification.setMessage($manager.getOperationMessage());
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
$manager.setState(State.POLICY_LOADED);
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
$manager.getSteps().clear();
$manager.setState(State.POLICY_LOADED);
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
notification.setHistory($manager.getPartialHistory().stream().map(OperationOutcome2::getClOperation)
.toList());
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
notification.setPolicyName($manager.getPolicyName());
notification.setPolicyVersion($manager.getPolicyVersion());
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception processing operation outcome",
// aborted while processing the SDNR step - generate a notification
ControlLoopResponse clResponse = $manager.makeControlLoopResponse($outcome);
- $manager.deliver("DCAE_CL_RSP", clResponse, "SDNR notification", drools.getRule().getName());
+ $manager.deliver("dcae_cl_rsp", clResponse, "SDNR notification", drools.getRule().getName());
}
if ($step != null) {
notification.setMessage($manager.getFinalMessage());
}
- $manager.deliver("POLICY-CL-MGT", notification, "notification", drools.getRule().getName());
+ $manager.deliver("policy-cl-mgt", notification, "notification", drools.getRule().getName());
} catch(RuntimeException e) {
logger.warn("{}: {}.{}: manager={} exception generating final notification",