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 with typedId and version of the updated record.

Properties

Option

Type

Default

Description

Option

Type

Default

Description

outputTarget

string

 

Defines output target for data in the exchange. It can be stored in the header, property or body.

outputTargetName

string

 

Defines output target name for the target type header and property. Put here the name of exchange header and name of exchange property.

typedId

string

 

Defines typedId of the Pricefx entity.

pricingParameterId

string

 

Defines the pricing parameter ID.

pricingParameterName

string

 

Defines pricing parameter name.

connection

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