how do I invoke ilrmain function in ilog jrules , is it invoked implcitly or do we have to explcitly invoke , in the latter case , how do I do it. IBM documentation is very obscure regarding ilrmain function.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
IlrMain provides an easy way to test your rules without too much overhead.
You define your input variables, create your testcase and invoke the rule
execution with context.execute. After execution, you can display the
result.
Here’s a small example:
Imagine you’ve created a ruleset to decide whether to grant a loan or not.
Your input is called application of type LoanApplication and you
expect a decision in your output. Your IlrMain would look something
like this:
To start the IlrMain, click on Run > Run Configurations… > Rule
Project and create a new run configuration for your rule project.
Select the project with your IlrMain-Function and make shure Launch
project with function ilrmain is selected.
Under Parameters & Arguments you should select Clear All Values so
that the parameter from your IlrMain are being used for execution.
Apply and Run
In your command line, your loan decision should appear. Something like: