pfx-api:fetchIterator

Provides iterator for fetch results in order to reduce the route complexity.

Properties

There are no properties to set. The method fetches properties from the batch in the body.

Examples

Simplifying Fetch Batch Mode by Using fetchIterator Method

The following code describes how to use the fetchIterator method for simplifying batch processing of a fetch inside a split where parameters are defined only once – in the parent fetch:

<route> <from uri="direct:start"/> <to uri="pfx-api:fetch?objectType=P&amp;batchedMode=true&amp;batchSize=100&amp;sortBy=sku&amp;filter=filter"/> <split> <simple>${body}</simple> <to uri="pfx-api:fetchIterator"/> </split> </route>

Instead of the original definition with duplicate parameters:

<route> <from uri="direct:start"/> <to uri="pfx-api:fetch?objectType=P&amp;batchedMode=true&amp;batchSize=100&amp;sortBy=sku&amp;filter=filter"/> <split> <simple>${body}</simple> <to uri="pfx-api:fetch?objectType=P&amp;sortBy=sku&amp;filter=filter"/> </split> </route>

 

IntegrationManager version 5.8.0