Created
August 10, 2015 03:38
-
-
Save bsbodden/f4d709516df8a9dd2e2c to your computer and use it in GitHub Desktop.
Drools Loans DSL snippet
This file contains 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
[condition][]the lender is “{mortgage_company}"= | |
mortgage:Mortgage(lender:lenderName == “{mortgage_company}",product:mortgageName) | |
[condition][]and there is an application= | |
application:LoanApplication(lenders contains lender) | |
[condition][]- with a FICO score below {score}=ficoScore<{score} | |
[consequence][]reject the application because “{message}"= | |
application.addMessage("Declined by " + lender + " because {message}"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment