Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 1 | <routes xmlns="http://camel.apache.org/schema/spring"> |
sebdet | dfa86ca | 2019-04-05 15:15:31 +0200 | [diff] [blame] | 2 | <route id="submit"> |
| 3 | <from uri="direct:processSubmit" /> |
| 4 | <choice> |
| 5 | <when> |
| 6 | <simple> ${exchangeProperty.actionCd} == 'SUBMIT' || |
| 7 | ${exchangeProperty.actionCd} == 'RESUBMIT' |
| 8 | </simple> |
| 9 | <to |
| 10 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" /> |
| 11 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" /> |
| 12 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" /> |
| 13 | <delay> |
| 14 | <constant>30000</constant> |
| 15 | </delay> |
| 16 | <to |
| 17 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 18 | <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" /> |
| 19 | <to |
| 20 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" /> |
| 21 | </when> |
| 22 | <when> |
| 23 | <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple> |
| 24 | <to |
| 25 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" /> |
| 26 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" /> |
| 27 | <to |
| 28 | uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" /> |
| 29 | <delay> |
| 30 | <constant>30000</constant> |
| 31 | </delay> |
| 32 | <to |
| 33 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 34 | <to |
| 35 | uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" /> |
| 36 | <to uri="bean:org.onap.clamp.clds.client.ModelDeleteDelegate" /> |
| 37 | <to |
| 38 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" /> |
| 39 | </when> |
| 40 | <when> |
| 41 | <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple> |
| 42 | <to |
| 43 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" /> |
| 44 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" /> |
| 45 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" /> |
| 46 | <delay> |
| 47 | <constant>30000</constant> |
| 48 | </delay> |
| 49 | <to |
| 50 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 51 | <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" /> |
| 52 | <to |
| 53 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" /> |
| 54 | </when> |
| 55 | <when> |
| 56 | <simple> ${exchangeProperty.actionCd} == 'STOP'</simple> |
| 57 | <to |
| 58 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" /> |
| 59 | <to |
| 60 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 61 | <to |
| 62 | uri="bean:org.onap.clamp.clds.client.GuardPolicyDeleteDelegate" /> |
| 63 | <to |
| 64 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" /> |
| 65 | </when> |
| 66 | <when> |
| 67 | <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple> |
| 68 | <to |
| 69 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'INITIATED')" /> |
| 70 | <to uri="bean:org.onap.clamp.clds.client.GuardPolicyDelegate" /> |
| 71 | <to |
| 72 | uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 73 | <to |
| 74 | uri="bean:org.onap.clamp.clds.client.CldsEventDelegate?method=addEvent(*,'COMPLETED')" /> |
| 75 | </when> |
| 76 | </choice> |
| 77 | </route> |
Determe, Sebastien (sd378r) | 7c08374 | 2018-02-14 15:31:55 +0100 | [diff] [blame] | 78 | </routes> |