pfx-config:set

The component is used to store data in Pricefx and use them as required. Think of it as basic persistent storage.

Properties

Option

Type

Default

Description

Option

Type

Default

Description

name

string

 

Name of the parameter to set. Mandatory.

value

string

 

Value of the parameter to set.

connection

string

pricefx

Connection name to use. If empty, the default connection is used. 

toHeader

string

 

If filled, result of the retrieval will be returned into the given header instead of the exchange body.

defaultValue

string

 

If filled, this value will be returned if the response from retrieval is null.

Requirements

  • A defined connection (or default 'pricefx') must exist within the application connection pools.

  • The component itself is the producer, thus must be used in to routes.

Examples

<route id="r2"/> <from uri="timer:testSFDC?repeatCount=1"/> <log message="There is nothing to load from last run (${header.LastUpdateDate})"/> <log message="Setting property INTEGRATION_SFDC_Customer_LastUpdateDate for configurator to: ${header.nowDate}"/> <toD uri="pfx-config:set?name=INTEGRATION_SFDC_Customer_LastUpdateDate&amp;value=${header.nowDate}"/> <log message="Set property INTEGRATION_SFDC_Customer_LastUpdateDate for configurator to: ${header.nowDate}"/> <log message="Stopping route with loading Customers"/> </route>

 

IntegrationManager version 5.8.0