How can i add loop specific constraints? let's say, for loop 1: I do not want decision output of one of the node in path which says 'repeated tag'.
Please have a look at attached image. I always want output marked as 1 in 1st iteration of loop.
Test case can not end with number 2 being the only 1 block.
Let me review this and see if there is a way to do this.
I guess there could be a discussion on if you are really trying to model requirements or if you are trying to model a procedure. Trying to use a flow as an algorithm to build something will not always be possible.
But that being said, it looks to me that your loop is more like a “while”-loop whereas your requirement is more like a “do until” loop.
What if you would model as follows:
From process “Iterate over Response” create a flow “New-Created” to the process with output copied as is.
From decision “All response tags processed” the “no” flow goes to decision with outputs 1 and 2
Thank you for your response. I do see your point. Abstracting the model might have added some ambiguity.
The requirement is to map XML response from an SoR to REST fields of a middleware service.
The data mapping is dependent on start date in XML tag blocks. All data blocks with same date should be mapped to 1 JSON array and everytime a new date is encountered, new JSON array must be created.
I think your way of modeling it will work for the requirement. I will give it a try and see how it pans out.
Out of curiosity, might we need loop number specific constraints for requirements like considering only odd/even nodes or linear progression sequences.
Have a look at this prior Communities post which references some of what you're trying to accomplish:
hope this helps.