pfx-api:save
Â
Properties
Option | Type | Default | Description |
---|---|---|---|
| string | Â | Defines output target for data in the exchange. It can be stored in the header, property or body. |
| string | Â | Defines output target name for the target type header and property. Put here the name of exchange header and name of exchange property. |
| string | Â | Defines |
| string | Â | Defines mapper name which is a Spring bean or a definition in the header or property. |
| string | Â | Defines |
| string | Â | Defines connection to Pricefx. This is an optional parameter and if it is not mentioned, the connection is taken from the Spring bean named pricefx. |
The method gets data from the exchange body. The data must be an array.
Examples
<route>
<from uri="direct:create4"/>
<to uri="pfx-api:fetch?quoteUniqueName=P-7320&objectType=Q"/>
<setBody>
<groovy>body[0]</groovy>
</setBody>
<setBody>
<groovy>
body["label"] = "Changed quote label"
body
</groovy>
</setBody>
<to uri="pfx-api:save?objectType=Q"/>
<to uri="mock:create4"/>
</route>
IntegrationManager version 5.8.0