easy-rules | The simple , stupid rules engine for Java | Rule Engine library

 by   j-easy Java Version: easy-rules-4.1.0 License: MIT

kandi X-RAY | easy-rules Summary

kandi X-RAY | easy-rules Summary

easy-rules is a Java library typically used in Server, Rule Engine applications. easy-rules has no bugs, it has no vulnerabilities, it has build file available, it has a Permissive License and it has high support. You can download it from GitHub, Maven.

Easy Rules is a Java rules engine inspired by an article called "Should I use a Rules Engine?" of Martin Fowler in which Martin says:. You can build a simple rules engine yourself. All you need is to create a bunch of objects with conditions and actions, store them in a collection, and run through them to evaluate the conditions and execute the actions. This is exactly what Easy Rules does, it provides the Rule abstraction to create rules with conditions and actions, and the RulesEngine API that runs through a set of rules to evaluate conditions and execute actions.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              easy-rules has a highly active ecosystem.
              It has 4452 star(s) with 981 fork(s). There are 220 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 65 open issues and 273 have been closed. On average issues are closed in 29 days. There are 6 open pull requests and 0 closed requests.
              It has a positive sentiment in the developer community.
              The latest version of easy-rules is easy-rules-4.1.0

            kandi-Quality Quality

              easy-rules has 0 bugs and 0 code smells.

            kandi-Security Security

              easy-rules has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              easy-rules code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              easy-rules is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              easy-rules releases are available to install and integrate.
              Deployable package is available in Maven.
              Build file is available. You can build the component from source.
              Installation instructions are not available. Examples and code snippets are available.
              easy-rules saves you 3160 person hours of effort in developing the same functionality from scratch.
              It has 6799 lines of code, 735 functions and 146 files.
              It has low code complexity. Code complexity directly impacts maintainability of the code.

            Top functions reviewed by kandi - BETA

            kandi has reviewed easy-rules and discovered the below as its top functions. This is intended to give you an instant insight into easy-rules implemented functionality, and help decide if they suit your requirements.
            • Command entry point
            • Create a composite rule
            • Main function
            • Create a composite rule
            • Main method
            • Create a composite rule
            • The main method
            • Create a composite rule
            • Entry point to the simulation
            • Create a composite rule
            • Entry point
            • Checks if the given method is a Fact
            • Executes the compiled script
            • Returns a string representation of the facts
            • Compares this rule with the specified priority and description
            • Creates a new rules from the given reader
            • Evaluates the given facts for this rule group
            • Evaluates the supplied facts
            • Creates a rule from the given reader descriptor
            • Create a set of SpELRule from a Reader
            • Compares two action order
            • Compares this fact with the specified fact name
            • This method returns a hashCode of the name
            • Creates a simple rule
            • Create a set of rules from a given rule descriptor
            • Test program
            • Read rule definitions from the specified reader
            • Evaluates the expression
            • Invokes the method on the proxy
            • Processes a set of rules
            Get all kandi verified functions for this library.

            easy-rules Key Features

            No Key Features are available at this moment for easy-rules.

            easy-rules Examples and Code Snippets

            No Code Snippets are available at this moment for easy-rules.

            Community Discussions

            Trending Discussions on easy-rules

            QUESTION

            How to use variables in easy rules?
            Asked 2020-May-17 at 16:20

            I am using JSON descriptor to load rules using easy-rules and I want to use variables in easy rules actions. For example I have a set of rules where I define rule id, name, description as given below

            ...

            ANSWER

            Answered 2020-May-15 at 20:13

            Summarising, no and yes!

            To get to how, you have to understand that as long as a variable is present as a Fact or somehow it is present in MVEL context, it can be resolved.

            Here's detailed answers-

            Use rule name, description inside actions?

            No. You can't use Rule's name and description inside an Action. To use external variables inside rules, you'll have to add them as facts. If you want that ability, use drools which is much more feature rich and heavy framework.

            Use a variable under actions?

            This you can do, however not the way you have. def has a special meaning inside MVEL. So to use variables, you can do either of these things-

            1. Define variable as separate action item:

            Source https://stackoverflow.com/questions/61626840

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install easy-rules

            You can download it from GitHub, Maven.
            You can use easy-rules like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the easy-rules component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .

            Support

            You are welcome to contribute to the project with pull requests on GitHub. Please note that Easy Rules is in maintenance mode, which means only pull requests for bug fixes will be considered. If you believe you found a bug or have any question, please use the issue tracker.
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/j-easy/easy-rules.git

          • CLI

            gh repo clone j-easy/easy-rules

          • sshUrl

            git@github.com:j-easy/easy-rules.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Rule Engine Libraries

            easy-rules

            by j-easy

            RulesEngine

            by microsoft

            NRules

            by NRules

            grule-rule-engine

            by hyperjumptech

            nools

            by noolsjs

            Try Top Libraries by j-easy

            easy-random

            by j-easyJava

            easy-flows

            by j-easyJava

            easy-batch

            by j-easyJava

            easy-states

            by j-easyJava

            easy-props

            by j-easyJava