Created
June 20, 2014 05:44
-
-
Save gnosis23/6556a76027eefef33176 to your computer and use it in GitHub Desktop.
the Sort Skill in drl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rule "Rule 01" | |
| when | |
| $cashflow : Cashflow( $date : date, $amount : amount ) | |
| not Cashflow( date < $date) | |
| then | |
| System.out.println("Cashflow: "+$date+" :: "+$amount); | |
| retract($cashflow); | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment