oushu1zhangxiangxuan1 / drools_pre_research

Pre-research Drools
Apache License 2.0
0 stars 0 forks source link

How to get rules result? #7

Open oushu1zhangxiangxuan1 opened 4 years ago

oushu1zhangxiangxuan1 commented 4 years ago

drools.getRule().getName(), called from a rule's RHS, returns the name of the rule.

drools.getTuple() returns the Tuple that matches the currently executing rule, and drools.getActivation() delivers the corresponding Activation. (These calls are useful for logging and debugging purposes.)