blob: 16daec9201b125a6cd1ab5588ef5c86ffbaa0566 [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" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +02009 <delay>
10 <constant>30000</constant>
11 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010012 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
13 </when>
14 <when>
15 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
16 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
17 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020018 <delay>
19 <constant>30000</constant>
20 </delay>
21 <to
22 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010023 </when>
24 <when>
25 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
26 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
27 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020028 <delay>
29 <constant>30000</constant>
30 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010031 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
32 </when>
33 <when>
34 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020035 <to
36 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010037 </when>
38 <when>
39 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
40 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
41 </when>
42 </choice>
43 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
44 </route>
45
46</routes>