Merge "Fix the loop log issue"
[clamp.git] / src / main / resources / clds / camel / rest / clamp-api-v2.xml
index 1883145..7e0c891 100644 (file)
                                                message="Get Status request successfully executed. The new state is: ${body}" />
                                        <to
                                                uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request successfully executed','INFO',${exchangeProperty[loopObject]})" />
-                                       <to
-                                               uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
                                        <to
                                                uri="bean:org.onap.clamp.flow.log.FlowLogOperation?method=endLog()" />
                                        <doCatch>
                                                <to
                                                        uri="bean:org.onap.clamp.loop.log.LoopLogService?method=addLog('Get Status request failed, Error reported: ${exception}','ERROR',${exchangeProperty[loopObject]})" />
                                        </doCatch>
+                                       <doFinally>
+                                               <to
+                                                       uri="bean:org.onap.clamp.loop.LoopController?method=getLoop(${header.loopName})" />
+                                       </doFinally>
                                </doTry>
                        </route>
                </get>