Giter Club home page Giter Club logo

trool's People

Contributors

schrej avatar sean-concourse avatar seanpmaxwell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

trool's Issues

Capability to handle rules with AND /OR

I was wondering if Trools has the capability to configure a rule in CSV that has an AND / OR.

( variable1 = 1 and variable1 = 2 ) OR ( variable3 = 3 and variable4 = 4 ).

Drools a similar rule engine has a feature called ACTIVATION-GROUP to stop execution if one rule in the same activation group evaluates to T.

Trool status

A question:

  • what is the status of the Trool project? is it still actively maintained ?
    I understand that the main goal of theprject is reached so that there is no need for further dev, yet if there are some community needs, or some bugs found, is there still some support?
  • additionally if some of us want to continue work on it, improve it, is there a help from creators available to answer on some questions to understand the code?

Compare 2 facts in a rule

Hi,
I'm trying to find a way to compare 2 facts. So for example if I have

priceOne
priceTwo

and I want a rule to use whichever price is lower. If rules have to be of the form

fact (operator) $param

where param is specified in the table, I don't think I can do that?
thanks

Delimiter

Hello I'm currently working on your lib: He is what I discover

1)"While on a rule's action column, each param specified must be separated by a comma. If no params are specified (the cell is blank), the rule will skip that action column."

I would like to put n parameter $param in my method actions according to your rules:
eg ==> addNumber($param $param) , on the next row I have to put:
eg ==> 2, 3 separated by comma.
I got the follow issue :
Error: Error on DecisionTable(ADDITION) : The number of params for an action operation must match the number of argument for the method: addNumber($param $param)

I resolved that issue by modifying the source code :
SOLUTION 1:
filename: engine.ts
method: callActionOp()
line: var cellVals = cellValStr.split(';') changing the comma into semi colon

EDIT :
SOLUTION 2:
add quote in the csv for example: addNumber($param $param) --> "3,5"
Because my CSV was delimiter by comma so I'm getting trouble to seperate parameters for a same action

2)Can we do something like cond1 ==> action1 ==> condi2 ===> action2 ?
seems that the 1st table will be overwrited by the 2nd...

3)Finally, Can I return the result to another object other than the Fact object? Does it have to be inside of that object or I can put that fact to another object?

Thank you in advance for your reply.

Improvement: Reusing internal state across calls

Hey there,

Thank you for such an amazing library.

We gave this a try and it works quite well, but we want to make sure that it can scale up as the ruleset size increases and the request-load increases, how would this tolerate load.

Would it be better to load the CSV just once, return an instance object, and then let the user call applyRules as many times as needed? This will reduce reading the file from a disk again and again on every evaluation call.

Let me know what you think.
Cheers, Anuraag.

Export rules from table

Hello,
I was wondering if there is any feature to export or read rules that are already in the .csv file. This would save a lot of time and handling when attempting to read the table on our own.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.