| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| --> |
| <routes> |
| |
| <route id="createAnyObject"> |
| <from uri="direct:createAnyObject"/> |
| <setProperty name="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="awfAdapter" method="create(${body},${exchangeProperty.creator},${exchangeProperty.context})"/> |
| <to uri="propagate:create?anyTypeKind=ANY_OBJECT"/> |
| <to uri="direct:createAnyObjectPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:createAnyObjectPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="updateAnyObject"> |
| <from uri="direct:updateAnyObject"/> |
| <setProperty name="actual"> |
| <simple>${body}</simple> |
| </setProperty> |
| <doTry> |
| <bean ref="awfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <to uri="propagate:update?anyTypeKind=ANY_OBJECT"/> |
| <to uri="direct:updateAnyObjectPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:updateAnyObjectPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="deleteAnyObject"> |
| <from uri="direct:deleteAnyObject"/> |
| <doTry> |
| <to uri="propagate:delete?anyTypeKind=ANY_OBJECT"/> |
| <bean ref="awfAdapter" method="delete(${body})"/> |
| <setBody> |
| <simple>${exchangeProperty.statuses}</simple> |
| </setBody> |
| <to uri="direct:deleteAnyObjectPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:deleteAnyObjectPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="unlinkAnyObject"> |
| <from uri="direct:unlinkAnyObject"/> |
| <doTry> |
| <bean ref="awfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <setBody> |
| <simple>${body.getResult}</simple> |
| </setBody> |
| <to uri="direct:unlinkAnyObjectPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:unlinkAnyObjectPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="linkAnyObject"> |
| <from uri="direct:linkAnyObject"/> |
| <doTry> |
| <bean ref="awfAdapter" method="update(${body},${exchangeProperty.updater},${exchangeProperty.context})"/> |
| <setBody> |
| <simple>${body.getResult}</simple> |
| </setBody> |
| <to uri="direct:linkAnyObjectPort"/> |
| <doCatch> |
| <exception>java.lang.RuntimeException</exception> |
| <handled> |
| <constant>false</constant> |
| </handled> |
| <to uri="direct:linkAnyObjectPort"/> |
| </doCatch> |
| </doTry> |
| </route> |
| |
| <route id="provisionAnyObject"> |
| <from uri="direct:provisionAnyObject"/> |
| <to uri="propagate:provision?anyTypeKind=ANY_OBJECT"/> |
| <to uri="direct:provisionAnyObjectPort"/> |
| </route> |
| |
| <route id="deprovisionAnyObject"> |
| <from uri="direct:deprovisionAnyObject"/> |
| <to uri="propagate:deprovision?anyTypeKind=ANY_OBJECT"/> |
| <to uri="direct:deprovisionAnyObjectPort"/> |
| </route> |
| |
| </routes> |