I am trying to insert a LOOP macro inside a method as follows:
The item I want to iterate over has multiple cardinality for sure, but I keep getting the following
ERROR: Node under $LOOP$ macro should have multiple cardinality (role:body).
But if I write the same statement outside the execute() method, it works.
I tried another approach which gave puzzling results too.
I made the first line inside the execute() method a different executable statement and then put the $LOOP$ macro. The earlier error goes away but the content inside it is highlighted in RED & no longer appears when I do preview generated text.
Could someone explain what's going on please?