ckita
ckita

Reputation: 33

NxBRE Rule engine - trigger on Object changes

I need to do a research on a rule engine for my .NET application and I came across NxBRE.

I have different types of objects in my application, and I want to use NxBRE when objects fields and states are changing.

For example: If A.a has changed to x and B.b is y then Do Stuff.

I couldn't find a tutorial or a good example for this, so any help would be appreciated.

In addition - if you have any suggestions for other rule engines that would best suit my needs, I'd love to here it.

Thanks.

Upvotes: 0

Views: 507

Answers (1)

David Dossot
David Dossot

Reputation: 33413

NxBRE could offer you:

 If A.a is x and B.b is y then Do Stuff.

ie it doesn't have the capacity to monitor objects for changes. To do so, you would have to regularly assert the value of A.a as a fact in a durable factbase and have a rule that checks if there are more than one A.a fact. That rule could then assert an A.a has changed fact, which you could use to trigger the Do Stuff rule. You would also need to retract the initial value of A.a. Feasible but not trivial.

It seems like more than a rules engines, you're after an event-oriented framework? If that is the case, check NEsper out.

Upvotes: 0

Related Questions