aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/resources/clds/camel/routes/utils-flows.xml
diff options
context:
space:
mode:
authorGervais-Martial Ngueko <gervais-martial.ngueko@intl.att.com>2019-06-05 09:25:29 +0000
committerGerrit Code Review <gerrit@onap.org>2019-06-05 09:25:29 +0000
commitd4d0cc066d99a04ed037e7886d5c5112afca17fa (patch)
treea4f1b9ab9e1234febcf311d142fda3a64068500a /src/main/resources/clds/camel/routes/utils-flows.xml
parent61ef2fb62f1818da16a48d75c7a3e0824e39e970 (diff)
parent09bc8450b2b0c4f60eb4a241efc548d13c5c9912 (diff)
Merge "Rework the loop state"
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