blob: 2103b4acfde56b67703891c84d79e800de9de81d [file] [log] [blame]
sebdetd72d0d02018-12-01 15:09:54 +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>
sebdete463a152018-12-20 16:41:55 +01007 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
sebdetd72d0d02018-12-01 15:09:54 +01008 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
9 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
10 <delay>
11 <constant>30000</constant>
12 </delay>
13 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdete463a152018-12-20 16:41:55 +010014 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
15 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
sebdetd72d0d02018-12-01 15:09:54 +010016 </when>
17 <when>
18 <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple>
sebdete463a152018-12-20 16:41:55 +010019 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
sebdetd72d0d02018-12-01 15:09:54 +010020 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" />
21 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" />
sebdetd72d0d02018-12-01 15:09:54 +010022 <delay>
23 <constant>30000</constant>
24 </delay>
25 <to
26 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdete463a152018-12-20 16:41:55 +010027 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
28 <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" />
29 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
sebdetd72d0d02018-12-01 15:09:54 +010030 </when>
31 <when>
32 <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple>
sebdete463a152018-12-20 16:41:55 +010033 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
sebdetd72d0d02018-12-01 15:09:54 +010034 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
35 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
36 <delay>
37 <constant>30000</constant>
38 </delay>
39 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdete463a152018-12-20 16:41:55 +010040 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
41 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
sebdetd72d0d02018-12-01 15:09:54 +010042 </when>
43 <when>
44 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
sebdete463a152018-12-20 16:41:55 +010045 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
sebdetd72d0d02018-12-01 15:09:54 +010046 <to
47 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
sebdete463a152018-12-20 16:41:55 +010048 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" />
49 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
sebdetd72d0d02018-12-01 15:09:54 +010050 </when>
51 <when>
52 <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple>
sebdete463a152018-12-20 16:41:55 +010053 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" />
54 <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" />
sebdetd72d0d02018-12-01 15:09:54 +010055 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
sebdete463a152018-12-20 16:41:55 +010056 <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" />
sebdetd72d0d02018-12-01 15:09:54 +010057 </when>
58 </choice>
59 </route>
60
61</routes>