blob: b2a728d144f9d8705e3e72f5f00519c65537e9a5 [file] [log] [blame]
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01001<routes xmlns="http://camel.apache.org/schema/spring">
2 <route id="submit">
3 <from uri="direct:processSubmit" />
4 <choice>
5 <when>
6 <simple> ${exchangeProperty.actionCd} == 'SUBMIT' || ${exchangeProperty.actionCd} == 'RESUBMIT'</simple>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01007 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
8 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
9 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
10 </when>
11 <when>
12 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
13 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
14 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
15 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
16 </when>
17 <when>
18 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
19 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
20 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
21 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
22 </when>
23 <when>
24 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
25 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
26 </when>
27 <when>
28 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
29 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
30 </when>
31 </choice>
32 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
33 </route>
34
35</routes>