Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a Collect conditional element similar to the one in Drools. #166

Open
markbjerke opened this issue Dec 18, 2015 · 1 comment
Open
Milestone

Comments

@markbjerke
Copy link

The collection conditional element similar to Drools allows you to specify set oriented bindings and reason over the set in the LHS of rules. A collect node was implemented that extends the from node. The example below finds all customers who have bought items over 10.

This blog describes collect, our implementation is similar. The example(s) in the blog were used as test cases.

http://blog.athico.com/2007/06/chained-from-accumulate-collect.html

This paper was used to develop the collect node:
http://citeseer.ist.psu.edu/viewdoc/download?doi=10.1.1.25.1076&rep=rep1&type=pdf

c : Customer;
items : Array items.length == c.items.length from collect( item: Item item.price > 10  from c.items );
@DevSide
Copy link
Collaborator

DevSide commented Oct 4, 2016

👍 Collect is a powerfull feature

@DevSide DevSide added this to the v0.5.0 milestone Oct 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants