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