iterate next item in the list

Certified Associate Developer

I have a process model that includes a script task with the following output:

rule!SC_getImportPregressoPc(id: pv!index)
  

The problem I'm facing is that I'm incrementing the index by 1 in each iteration to move to the next item, but the IDs in my dataset are not sequential. For example, I have IDs like 5, 6, 7, but the next ID might be 500 due to filtering applied by the rule, causing my process to exit early when it reaches a gap in the ID sequence.

How can I configure the process to iterate over only the IDs present in my filtered list, rather than assuming a simple +1 progression?

Any guidance would be appreciated!

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data