filter() context

I'm trying to implement an expression rule that iterates over a list and returns a filtered list, and struggling to figure out how to do this.  It seems like filter() would be the way to go, but I don't see any examples of what the context parameter is supposed to look like.  What I want to do is something like:

rule input: fromDate (a Date)

rule:

filter(

rule!shouldItemBeIncluded(),

rule!getItemList(),

context: /* I'm lost here - I need to pass two parameters to shouldItemBeIncluded(), the item, and the fromDate */

)

How do I pass those parameters to the supplied predicate?

  Discussion posts and replies are publicly visible

Parents Reply Children
No Data