nemonik/Intellect

when part

Opened this issue · 4 comments

Hi

I need to check mulitple facts in the when part of the rule. Is it possible to combine them?

I cannot find any example how to do this for Intellect so I am not sure if it is supported.

Right now. No. Although, you could chain two or more rules via having a
proceeding rule set a variable and evaling with in one or more that
follows. It is on the list near the gittip link of things to do that I am
working on.

Question, what are using Intellect for, if you don't mind me asking? Also,
what is your time frame?

-Michael
On Jun 29, 2014 3:40 AM, "agale031176" notifications@github.com wrote:

Hi

I need to check mulitple facts in the when part of the rule. Is it
possible to combine them?

I cannot find any example how to do this for Intellect so I am not sure if
it is supported.


Reply to this email directly or view it on GitHub
#10.

Hi

I thought so that it is currently not supported and I even was checking your solution using the ANTLR but unfortunately they dropped support for Python in the latest version. Looked really good but I need it to work for Python.

I am currently evaluating whether I can use an already available Rules engine in Python for an existing platform containing business rules. Currently nothing I found supports what I need. Basically I need something like Drools but in Python.

There now exists a ANTLR4 runtime for Python accomplished by a 3rd party
who contributed his source... My read me on github makes mention of it. So,
this is not my biggest concern...

Yeah, Intellect is the closest thing to Drools in regards to Python, but I
need to find the time to work the issues mentioned in the readme.

-Michael
On Jun 29, 2014 3:30 PM, "agale031176" notifications@github.com wrote:

Hi

I thought so that it is currently not supported and I even was checking
your solution using the ANTLR but unfortunately they dropped support for
Python in the latest version. Looked really good but I need it to work for
Python.

I am currently evaluating whether I can use an already available Rules
engine in Python for an existing platform containing business rules.
Currently nothing I found supports what I need. Basically I need something
like Drools but in Python.


Reply to this email directly or view it on GitHub
#10 (comment).

+1 on this feature. I'm planning to use Intellect to build an event correlator for alarms in a system. I want to batch alarms so when I receive a new alarm I need to figure out if there is already one of the same type in the system. Do do that I create a Alarm fact and a AlarmFact fact, the first is removed as soon as it is processed and the second has a counter of how many alarms of a certain type has come so far for deduplication.