Drools is a lightweight rules engine based on the pattern matching Rete algorithm. It has been around since 2001 and maintained by JBoss community.The Drools engine is completely written in Java.
When
<Condition is true>
Then
<Take desired Action>