deliveredtechnologies / rulebook

100% Java, Lambda Enabled, Lightweight Rules Engine with a Simple and Intuitive DSL
http://www.deliveredtechnologies.com
Apache License 2.0
721 stars 124 forks source link

Can POJO rules have their facts changed? #132

Closed rizjoj closed 6 years ago

rizjoj commented 6 years ago

In a pojo rule we inject a fact like so:

@Given("isPresent")
private Boolean isPresent;

But, can one rule change this value so that following rules can see the changed value? It doesn't seem to work for me.

rizjoj commented 6 years ago

Solved it using:

@Given("isPresent")
private NameValueReferable<Boolean> isPresent;