aboutsummaryrefslogtreecommitdiffstats
path: root/runtime/src/main/resources/clds/camel/routes
diff options
context:
space:
mode:
authorbrunomilitzer <bruno.militzer@est.tech>2021-08-16 10:34:06 +0100
committerAjith Sreekumar <ajith.sreekumar@bell.ca>2021-08-20 08:56:39 +0000
commit95995f9785c5c438dcfe26358feb2ebe4dd70302 (patch)
tree72680c049d2fd1d654c5bebaddc399ab703db42c /runtime/src/main/resources/clds/camel/routes
parentd0a1bcee60c43a736a0526d49c07c564632c4f02 (diff)
ADD Change State Control Loop Definition
Issue-ID: POLICY-3425 Change-Id: I0898feefd0d63802e90c1c191d1ac1f14f7df389 Signed-off-by: brunomilitzer <bruno.militzer@est.tech>
Diffstat (limited to 'runtime/src/main/resources/clds/camel/routes')
-rw-r--r--runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml25
1 files changed, 25 insertions, 0 deletions
diff --git a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml
index ff39200b7..230aea142 100644
--- a/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml
+++ b/runtime/src/main/resources/clds/camel/routes/controlloop-flows.xml
@@ -160,6 +160,31 @@
</doFinally>
</doTry>
</route>
+ <route id="get-tosca-instantiation-order-state">
+ <from uri="direct:get-tosca-instantiation-order-state"/>
+ <doTry>
+ <log loggingLevel="INFO"
+ message="Getting the Tosca Instantiation Order State"/>
+ <to
+ uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=invokeLog('ControlLoop', 'Getting the Tosca Instantiation Order State')"/>
+ <setHeader name="CamelHttpMethod">
+ <constant>GET</constant>
+ </setHeader>
+ <setHeader name="Content-Type">
+ <constant>application/json</constant>
+ </setHeader>
+ <log loggingLevel="INFO"
+ message="Endpoint to get Tosca Instantiation Order State: {{clamp.config.controlloop.runtime.url}}/onap/controlloop/v2/instantiationState"></log>
+ <toD
+ uri="{{clamp.config.controlloop.runtime.url}}/onap/controlloop/v2/instantiationState?bridgeEndpoint=true&amp;useSystemProperties=true&amp;throwExceptionOnFailure=${exchangeProperty[raiseHttpExceptionFlag]}&amp;authMethod=Basic&amp;authUsername={{clamp.config.controlloop.runtime.userName}}&amp;authPassword={{clamp.config.controlloop.runtime.password}}&amp;authenticationPreemptive=true&amp;connectionClose=true"/>
+ <convertBodyTo type="java.lang.String"/>
+ <doFinally>
+ <to uri="direct:reset-raise-http-exception-flag"/>
+ <to
+ uri="bean:org.onap.policy.clamp.flow.log.FlowLogOperation?method=invokeReturnLog()"/>
+ </doFinally>
+ </doTry>
+ </route>
<route id="get-json-schema">
<from uri="direct:get-json-schema"/>
<doTry>