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> |
| 7 | <to uri="bean:org.onap.clamp.clds.client.SdcSendReqDelegate" /> |
| 8 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" /> |
| 9 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" /> |
| 10 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 11 | </when> |
| 12 | <when> |
| 13 | <simple> ${exchangeProperty.actionCd} == 'DELETE'</simple> |
| 14 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDeleteDelegate" /> |
| 15 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDeleteDelegate" /> |
| 16 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 17 | </when> |
| 18 | <when> |
| 19 | <simple> ${exchangeProperty.actionCd} == 'UPDATE'</simple> |
| 20 | <to uri="bean:org.onap.clamp.clds.client.TcaPolicyDelegate" /> |
| 21 | <to uri="bean:org.onap.clamp.clds.client.HolmesPolicyDelegate" /> |
| 22 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 23 | </when> |
| 24 | <when> |
| 25 | <simple> ${exchangeProperty.actionCd} == 'STOP'</simple> |
| 26 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDeleteDelegate" /> |
| 27 | </when> |
| 28 | <when> |
| 29 | <simple> ${exchangeProperty.actionCd} == 'RESTART'</simple> |
| 30 | <to uri="bean:org.onap.clamp.clds.client.OperationalPolicyDelegate" /> |
| 31 | </when> |
| 32 | </choice> |
| 33 | <to uri="bean:org.onap.clamp.clds.client.CldsEventDelegate" /> |
| 34 | </route> |
| 35 | |
| 36 | </routes> |