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