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" /> |
Determe, Sebastien (sd378r) | 7a58af8 | 2018-06-06 13:47:21 +0200 | [diff] [blame] | 13 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 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" /> |
Determe, Sebastien (sd378r) | 7a58af8 | 2018-06-06 13:47:21 +0200 | [diff] [blame] | 19 | <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" /> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame] | 20 | <delay> |
| 21 | <constant>30000</constant> |
| 22 | </delay> |
| 23 | <to |
| 24 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 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" /> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame] | 30 | <delay> |
| 31 | <constant>30000</constant> |
| 32 | </delay> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 33 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
Determe, Sebastien (sd378r) | 7a58af8 | 2018-06-06 13:47:21 +0200 | [diff] [blame] | 34 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 35 | </when> |
| 36 | <when> |
| 37 | <simple> ${exchangeProperty.actionCd} == 'STOP'</simple> |
Determe, Sebastien (sd378r) | 300c813 | 2018-05-23 21:08:29 +0200 | [diff] [blame] | 38 | <to |
| 39 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
Determe, Sebastien (sd378r) | 7a58af8 | 2018-06-06 13:47:21 +0200 | [diff] [blame] | 40 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 41 | </when> |
| 42 | <when> |
| 43 | <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple> |
| 44 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
Determe, Sebastien (sd378r) | 7a58af8 | 2018-06-06 13:47:21 +0200 | [diff] [blame] | 45 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 46 | </when> |
| 47 | </choice> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 48 | </route> |
| 49 | |
| 50 | </routes> |