Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    dvdthecoder
    @dvdthecoder
    will wait for your new release to come along .. as tha t is promissing
    Clayton Long
    @Clayton7510
    0.9-SNAPSHOT now has auditing along with some fixes, including a POJO rule error that can occur when run from a Spring Boot Jar and RuleBookRunner Results, which previously were always Optional true, and now are only Optional true if a result was set. Look for 0.8.1 to be released this weekend with the bug fixes and 0.9 to be released within the next couple of weeks.
    Clayton Long
    @Clayton7510
    v0.8.1 has been released: https://github.com/rulebook-rules/rulebook/releases/tag/v0.8.1. It is now available in Maven Central.
    Clayton Long
    @Clayton7510
    What I think should be the final version of 0.9-SNAPSHOT is in the sonatype snapshot repo. This will be released to Maven Central shortly, assuming there are no issues with this snapshot release.
    Clayton Long
    @Clayton7510
    v0.9 was just released to Maven Central. Rules Auditing is now available in RuleBook. https://github.com/rulebook-rules/rulebook/releases/tag/v0.9
    dvdthecoder
    @dvdthecoder
    I wanted to know when there are two pojo rules ( example : https://github.com/rulebook-rules/rulebook/wiki/POJO-Rules ) . can I access the result of rule execution into second
    dvdthecoder
    @dvdthecoder
    I think when reading th example I case the result getting chained ... so yes it is possible and I will try it out but just wanted to confirm my thinking
    Clayton Long
    @Clayton7510
    @dvdthecoder yes, you can. The Result is owned by the RuleBook and it's chained from one rule to the next. Sorry for the delayed response. Work has been a bear, so I wasn't checking Gitter much.
    meysampsdh
    @meysampsdh

    Hi everyone,

    Is it possible to generate rulebook rules dynamically?

    Clayton Long
    @Clayton7510
    @meysampsdh I suppose it would be possible using the Java DSL. If you had say like a condition or a map that resolved a rule's content based on some value, the rule could be added dynamically to a RuleBook. It would be a little harder to dynamically build RuleBooks using POJO rules since the ClassLoader would have to reload the classes in the targeted package. Something like JRebel would be needed, at present.
    meysampsdh
    @meysampsdh
    @Clayton7510 Thank you so much. It was handled with an another approach.
    dvdthecoder
    @dvdthecoder
    @Clayton7510 thanks ... we are executin g first prototype .. let us how it goes ... have taken a pojo rule book approach
    @meysampsdh could you share the approach .. ?
    Martin Goyot
    @Erwyn
    Hello there
    I just discovered RuleBook and I have a question. Is it possible to save the rulebooks in database?
    Martin Goyot
    @Erwyn
    I think I'm looking also at the same thing than @meysampsdh
    Clayton Long
    @Clayton7510
    At present, external rules are not supported. But that is something that will be possible in an upcoming release w/Groovy rules.
    Martin Goyot
    @Erwyn
    so it's not possible to create "dynamic" rulebooks. If I understand it correctly, the rules are written in the source code and do not move
    and when one want to change anything they change the code
    Clayton Long
    @Clayton7510
    Yes. That's correct. At present, if you wanted to have hot swappable rules, you would need something like JRebel.
    Martin Goyot
    @Erwyn
    ok thanks!
    Clayton Long
    @Clayton7510
    ashishtomar1984
    @ashishtomar1984
    Hi @Clayton7510 .. Recently started using the POJO Rules ..
    during testing .. I came across a concurrency issue .. in RuleBookRunner.run method ..
    This is inside the .. findRuleClassesInPackage(String packageName) .. method
    The if else marked by .. if(pathUri.toString().contains("!")) { .. when 2 threads enter .. underlying ZipfsFileSystemProvider breaks
    As a workaround .. I have applied synchronized block around ruleBookRunner.run .. but that is too contentious .. would like if it can be applied inside this method
    Clayton Long
    @Clayton7510
    Sorry for the delayed response. I'm check out of
    Sometimes I hate Gitter. ☺️ I'll check it out. Thanks.
    Levi Puot Paul
    @levippaul
    @Clayton7510 is there an example of how to unit test a single rule? I assume if you just run the RuleBookRunner, it would just run all the rules in the package.
    Clayton Long
    @Clayton7510
    You are correct. However, RuleBookAdapter can be used with a single POJO rule. So, if you just want to isolate one rule in a package, RuleBookAdapter would do it.
    Sorry for the absence. Other projects and a new house have taken precedence. But some RuleBook work will happen tomorrow
    Clayton Long
    @Clayton7510
    So, work has been nuts lately. Fortunately, I was able to take today off... now, I finally get to merge some PRs.
    Clayton Long
    @Clayton7510
    So, the build in develop is broken. Master is still fine tho. Fixing a few conflicts from PRs - this is a good problem to have.
    Clayton Long
    @Clayton7510
    the build is back up and working again; as soon as the cache updates for travis, it will show that on the github page.
    v0.10-SNAPSHOT is in the Sonatype Snapshots repo. Feel free to use. It should be pretty stable - all community supplied updates this time, too.
    Clayton Long
    @Clayton7510
    Clayton Long
    @Clayton7510
    So, I added a donate button to the README on GitHub. And I will be adding a donate button to deliveredtechnologies.com.
    If there are any donations, then I'm thinking of some kind of profit sharing situation with top contributors; maybe based on some kind of points value... gonna noodle on that. Helping to fund rulebook and paying back the community is a great idea, I think.
    Of course, no matter how awesome rulebook gets, the plan is to always have it's libraries (and the underlying code for those libraries) be free and community driven. But nothing wrong with incentivizing community involvement. ;)
    Clayton Long
    @Clayton7510
    I noticed that some of the more unique features of RuleBook have recently (within the past 6mo) been copied by other /rules engines/. I suppose imitation is the sincerest form of flattery. :)
    Clayton Long
    @Clayton7510
    I'm happy to see that it's contributed to the conversation about the importance of usability, simplicity and straightforwardness in the context of business rules abstractions.
    Clayton Long
    @Clayton7510
    v0.11 is is set to be released soon. Like before the end of November 2018. In this release, ERROR_ON_FAILURE is fixed to bubble up errors (even your own custom errors) from rules and rule auditing is available for rules created in the defineRules() method.
    Clayton Long
    @Clayton7510
    Also in 0.11 (currently in the Snapshot): SpringAwareRuleBookRunner that allows Spring components to be autowired within Rules. Add the 0.11-SNAPSHOT (soon to be released) to your dependencies to get SpingAwareRuleBookRunner with all of Springs goodness inside POJO Rules.
    Correction: add both rulebook-core:0.11-SNAPSHOT and rulebook- spring:0.11-SNAPAHOT as dependencies for Spring injectable Rules with SpringAwareRuleBookRunner
    Clayton Long
    @Clayton7510
    v0.11 now released!
    LdSe
    @LdSe
    Hello! I've started using your framework for a proof of concept and I was wondering how can I retrieve the result of a previous rule as input for the next one, since I have a set of options and I need the decisions to end up with only 1 choice.
    Is it possible?
    Thanks a lot in advance!
    Clayton Long
    @Clayton7510
    The Gitter thing was largely unused. So, I am decommissioning it.