Why is next traced for each instance? Why cant I get only se

Posted by Kanchana Gopalakrishnan on 03-Jan-2017 09:11

If I make three instances I get 9 messages....

How can I make it to work once?

Posted by Harold-Jan Verlee on 03-Jan-2017 10:16

You are iterating in rule 1 through the Books collection instead of the “sorted” collection. So by Books occurrence (3x), it will generate corresponding sorted messages (3x). Try to change it to sorted.pages in rule 1 and you’ll be all set.
 
Best regards,
Harold
 

All Replies

Posted by Harold-Jan Verlee on 03-Jan-2017 09:44

Please make sure you apply the sortedBy and next operators against a ROOT entity. It will not work correctly against a CHILD entity.
 
Example:
 
 
 
 
Best regards,
Harold
 

Posted by Kanchana Gopalakrishnan on 03-Jan-2017 10:01

  I am getting the same error when I try for single entity.

Posted by Harold-Jan Verlee on 03-Jan-2017 10:16

You are iterating in rule 1 through the Books collection instead of the “sorted” collection. So by Books occurrence (3x), it will generate corresponding sorted messages (3x). Try to change it to sorted.pages in rule 1 and you’ll be all set.
 
Best regards,
Harold
 

This thread is closed