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&batchedMode=true&batchSize=100&sortBy=sku&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&batchedMode=true&batchSize=100&sortBy=sku&filter=filter"/>
<split>
<simple>${body}</simple>
<to uri="pfx-api:fetch?objectType=P&sortBy=sku&filter=filter"/>
</split>
</route>
Â
IntegrationManager version 5.8.0