Now we should add some parameters that can be used to define how the loan decision should be taken. Let's then add following parameters:
employmentStatus (com.example.test.EmploymentStatus)
lastYearIncome (long)
We will grant a loan to people with indefinite work contract and last year income over 20.000$ and self-employed people with last year income over 50.000$. We can define it with such constraint (named "loan decision"):
Because the value of loanDecision is set to NEGATIVE by default, we do not to define constraint for those cases.