From f12066418c402d3a7fe34667a9fc87295a347b8a Mon Sep 17 00:00:00 2001 From: sebdet Date: Tue, 23 Feb 2021 14:51:54 +0100 Subject: Add new delete policy endpoint Refactor the camel code so that the policy delete can be called "by loop" related flows and "by policy only" related flows. A new endpoint for policy deletion has been added as well. This one will be called by the UI Issue-ID: POLICY-2927 Signed-off-by: sebdet Change-Id: I3c4bd2e22200788360575aa61a0122b7ed4e608d --- .../resources/clds/camel/routes/policy-flows.xml | 79 ++++++++++++++-------- 1 file changed, 51 insertions(+), 28 deletions(-) (limited to 'src/main/resources/clds/camel/routes') diff --git a/src/main/resources/clds/camel/routes/policy-flows.xml b/src/main/resources/clds/camel/routes/policy-flows.xml index 0a9c1f511..f9f2b1d72 100644 --- a/src/main/resources/clds/camel/routes/policy-flows.xml +++ b/src/main/resources/clds/camel/routes/policy-flows.xml @@ -172,41 +172,27 @@ - - + + + message="Deleting Policy in a loop: ${exchangeProperty[policy].getName()}"/> - - null - - - DELETE - - - ${exchangeProperty[X-ONAP-RequestID]} - - - - ${exchangeProperty[X-ONAP-InvocationID]} - - - - ${exchangeProperty[X-ONAP-PartnerName]} - - + uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=invokeLog('Policy', 'Delete Policy in a loop')"/> + + ${exchangeProperty[policy].getPolicyModel().getPolicyModelType()} + + + ${exchangeProperty[policy].getPolicyModel().getVersion() + + + ${exchangeProperty[policy].getName()} + 1.0.0 - - - + - @@ -575,4 +561,41 @@ + + + + + + + null + + + DELETE + + + ${exchangeProperty[X-ONAP-RequestID]} + + + + ${exchangeProperty[X-ONAP-InvocationID]} + + + + ${exchangeProperty[X-ONAP-PartnerName]} + + + + + + + + + + + \ No newline at end of file -- cgit