sebdet | d72d0d0 | 2018-12-01 15:09:54 +0100 | [diff] [blame] | 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 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
| 14 | </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" /> |
| 19 | <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" /> |
| 20 | <delay> |
| 21 | <constant>30000</constant> |
| 22 | </delay> |
| 23 | <to |
| 24 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 25 | </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" /> |
| 30 | <delay> |
| 31 | <constant>30000</constant> |
| 32 | </delay> |
| 33 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 34 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
| 35 | </when> |
| 36 | <when> |
| 37 | <simple> ${exchangeProperty.actionCd} == 'STOP'</simple> |
| 38 | <to |
| 39 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 40 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
| 41 | </when> |
| 42 | <when> |
| 43 | <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple> |
| 44 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 45 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
| 46 | </when> |
| 47 | </choice> |
| 48 | </route> |
| 49 | |
| 50 | </routes> |