pfx-api:update
This method updates a record using data stored in the body. The body should be an object with:
data
field which contains the data to be updated;oldValues
field withtypedId
andversion
of the updated record.
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 the pricing parameter ID. |
| string | Â | Defines pricing parameter name. |
| 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.
Examples
Example of updating Payout Record.
<route>
<from uri="direct:update-test"/>
<setBody>
<groovy>
[
'data': ['intgStatus': 'Processed'],
'oldValues': ['typedId': '1.PYR','version': '0']
]
</groovy>
</setBody>
<to uri="pfx-api:update?objectType=PYR"/>
</route>
IntegrationManager version 5.8.0