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