blob: c7f7ec3b7d134b6cf06b3ec029519c6670346b1e [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" />
sebdet19ab2332018-09-12 18:52:39 +020013 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020014 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010015 </when>
16 <when>
17 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
18 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
19 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020020 <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020021 <delay>
22 <constant>30000</constant>
23 </delay>
24 <to
25 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020026 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010027 </when>
28 <when>
29 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
30 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
31 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020032 <delay>
33 <constant>30000</constant>
34 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010035 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020036 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020037 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010038 </when>
39 <when>
40 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020041 <to
42 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020043 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020044 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010045 </when>
46 <when>
47 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
sebdet19ab2332018-09-12 18:52:39 +020048 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010049 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
Determe, Sebastien (sd378r)7a58af82018-06-06 13:47:21 +020050 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010051 </when>
52 </choice>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010053 </route>
54
55</routes>