Steps To Implement “Gem ‘Wongi Engine’ - Rule Engine”
Wongi Engine is a rule engine formulated in Ruby. This library contains the rule sets to be defined in a readable way with the help of DSL (Defined Under Namespace). After installing Gem ‘Wongi-Engine’ and integrating the wongi-engine library inside the ruby file, the Wongi Rule Engine is created as mentioned below. gem install wongi-engine After installation of the gem, it's time to create an instance of the wongi-engine to start adding the essential facts or for additional procedures. engine = Wongi::Engine.create The Wongi Rule Engine mainly contains rules with matchers/conditions along with the required actions and facts are as follows: Rules: The rules are interpreted by the statements and it then executes the action if the condition for the rule matches the fact. Every rule is defined in the form mentioned below: Rule = Condition + Action Facts: All the input data in the Wongi Rule Engine is implemented as ...