Increment integer flow variable in each loop until variable reach 5 not working with below approach
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2022 09:38 PM - edited 11-02-2022 10:13 PM
In the flow designer sub flow, created a flow variable called counter of integer type
1. assigned 1 value to flow variable
2. add do the following until
3. Incremented flow variable by using ADD transform function ( used this approach https://snhackery.com/2021/09/03/flow-variables-vs-scratchpad-variables-revisited/)
4. until condition to check is flow variable is equal to 5.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 09:52 PM - edited 02-17-2025 09:53 PM
Hello Sanju,
I upgraded my PDI to Rome. Not sure whether it is added to Rome. There is an alternate way :). You can use inline script.
Below code can be used in the inline script. This takes the flow variable position and increment by 1.