Add 30s waiting time
[clamp.git] / src / main / resources / clds / camel / flexible-flow.xml
1 <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>
7                                                                 <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" />
8                                                                 <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" />
9                                                                 <delay>
10                                                                                 <constant>30000</constant>
11                                                                 </delay>
12                                                                 <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" />
18                                                                 <delay>
19                                                                                 <constant>30000</constant>
20                                                                 </delay>
21                                                                 <to
22                                                                                 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
23                                                 </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" />
28                                                                 <delay>
29                                                                                 <constant>30000</constant>
30                                                                 </delay>
31                                                                 <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" />
32                                                 </when>
33                                                 <when>
34                                                                 <simple> ${exchangeProperty.actionCd} == 'STOP'</simple>
35                                                                 <to
36                                                                                 uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" />
37                                                 </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>