summaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/routes/utils-flows.xml
diff options
context:
space:
mode:
authorsebdet <sebastien.determe@intl.att.com>2019-05-23 17:34:07 +0200
committersebdet <sebastien.determe@intl.att.com>2019-06-05 11:05:35 +0200
commit09bc8450b2b0c4f60eb4a241efc548d13c5c9912 (patch)
treeaddd899e38e02946a6dfa3997b7a43264bd0276a /src/main/resources/clds/camel/routes/utils-flows.xml
parentc7b7368b08fa4e75919d6f7282dee526ccedf398 (diff)
Rework the loop state
Rework the state loop so there is no bug in the loop state anymore, now the components are scanned + upgrade to 4.0.4 Issue-ID: CLAMP-384 Change-Id: If7649238ee52864c84bfb9b6b8471d1738752e29 Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'src/main/resources/clds/camel/routes/utils-flows.xml')
-rw-r--r--src/main/resources/clds/camel/routes/utils-flows.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/resources/clds/camel/routes/utils-flows.xml b/src/main/resources/clds/camel/routes/utils-flows.xml
new file mode 100644
index 000000000..adf843ffe
--- /dev/null
+++ b/src/main/resources/clds/camel/routes/utils-flows.xml
@@ -0,0 +1,17 @@
+<routes xmlns="http://camel.apache.org/schema/spring">
+ <route id="reset-raise-http-exception-flag">
+ <from uri="direct:reset-raise-http-exception-flag" />
+ <setProperty propertyName="raiseHttpExceptionFlag">
+ <simple resultType="java.lang.Boolean">true</simple>
+ </setProperty>
+ </route>
+
+ <route id="dump-loop-log-http-response">
+ <from uri="direct:dump-loop-log-http-response" />
+ <log
+ loggingLevel="INFO"
+ message="${exchangeProperty[logMessage]} - ${header.CamelHttpResponseCode} : ${header.CamelHttpResponseText}" />
+ <to
+ uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('${exchangeProperty[logMessage]} - ${header.CamelHttpResponseCode} : ${header.CamelHttpResponseText}','INFO',${exchangeProperty[loopObject]})" />
+ </route>
+</routes> \ No newline at end of file