blob: 8305c2e4948f28cf820e35591dbc13d689e65a8b [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" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020013 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010014 </when>
15 <when>
16 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
17 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
18 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020019 <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020020 <delay>
21 <constant>30000</constant>
22 </delay>
23 <to
24 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010025 </when>
26 <when>
27 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
28 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
29 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020030 <delay>
31 <constant>30000</constant>
32 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010033 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020034 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010035 </when>
36 <when>
37 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020038 <to
39 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020040 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010041 </when>
42 <when>
43 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
44 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020045 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010046 </when>
47 </choice>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010048 </route>
49
50</routes>