blob: 2103b4acfde56b67703891c84d79e800de9de81d [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>
sebdet25793862018-11-08 17:11:10 +01007 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +01008 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
9 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020010 <delay>
11 <constant>30000</constant>
12 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010013 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020014 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
sebdet25793862018-11-08 17:11:10 +010015 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010016 </when>
17 <when>
18 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
sebdet25793862018-11-08 17:11:10 +010019 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010020 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
21 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020022 <delay>
23 <constant>30000</constant>
24 </delay>
25 <to
26 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020027 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
sebdetac3eeb32018-09-21 17:46:12 +020028 <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" />
sebdet25793862018-11-08 17:11:10 +010029 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010030 </when>
31 <when>
32 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
sebdet25793862018-11-08 17:11:10 +010033 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010034 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
35 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020036 <delay>
37 <constant>30000</constant>
38 </delay>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010039 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020040 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
sebdet25793862018-11-08 17:11:10 +010041 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010042 </when>
43 <when>
44 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
sebdet25793862018-11-08 17:11:10 +010045 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
Determe, Sebastien (sd378r)300c8132018-05-23 21:08:29 +020046 <to
47 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdet19ab2332018-09-12 18:52:39 +020048 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
sebdet25793862018-11-08 17:11:10 +010049 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010050 </when>
51 <when>
52 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
sebdet25793862018-11-08 17:11:10 +010053 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
sebdet19ab2332018-09-12 18:52:39 +020054 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010055 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdet25793862018-11-08 17:11:10 +010056 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010057 </when>
58 </choice>
Determe, Sebastien (sd378r)7c083742018-02-14 15:31:55 +010059 </route>
60
61</routes>