Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +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> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 7 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" /> |
| 8 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" /> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame^] | 9 | <delay> |
| 10 | <constant>30000</constant> |
| 11 | </delay> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 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" /> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame^] | 18 | <delay> |
| 19 | <constant>30000</constant> |
| 20 | </delay> |
| 21 | <to |
| 22 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 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" /> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame^] | 28 | <delay> |
| 29 | <constant>30000</constant> |
| 30 | </delay> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 31 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 32 | </when> |
| 33 | <when> |
| 34 | <simple> ${exchangeProperty.actionCd} == 'STOP'</simple> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame^] | 35 | <to |
| 36 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 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> |