Posted: 22 Sep 2016 13:56 EDT Last activity: 11 Oct 2016 14:40 EDT
Robotics For Loop: Break Nodes
When using the for loop in the pega robotics (open span) how does the Break node work? What I am trying to do is implement a dynamic limit that changes based off a data grid number of rows. I currently can't figure out how to set the limit to anything other than an integer. If there is a way to set the limit to a variable this would also solve my issue. But for now I was attempting to force an infinite loop by setting the limit to -1 and then setting a break when the data grid value is null (basically the end of the list).
Can someone help explain the for loop function in greater detail please?
***Updated by moderator: Marissa to update categories***
When using a Break control will flow from the Yellow dot next to Break on the For..Loop. You can then handle a break differently then a loop completion. Make sure to connect your execution flow to this dot if you are breaking your loop.