flowsforapex / apex-flowsforapex

Flows for APEX - Model and run process flows all within Oracle APEX!
https://flowsforapex.org
Other
83 stars 42 forks source link

Add flow_globals.loop_counter #737

Closed rallen2010 closed 2 months ago

rallen2010 commented 2 months ago

Makes the current value of any loop_counter available in variable expressions and plsql script type tasks. Value returned is the loop counter of the nearest parent iteration / loop. Null if there is no parent lop / iteration. e.g., a looping subprocessA contains a task InsideA and a nested subProcess BinsideA, which contais a task taskCinsideBinsideA. subProcessA is currently on loop 3. The gobal variable flow_globals.loop_counter is accessible and =3 in task CinsideBinsideA. This is thought to be quite useful for scripts and variable expressions inside loops and iterations.