Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7667513
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T15:07:23+00:00 2026-05-31T15:07:23+00:00

how do I invoke ilrmain function in ilog jrules , is it invoked implcitly

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T15:07:24+00:00Added an answer on May 31, 2026 at 3:07 pm

    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:

    LoanApplication app = new LoanApplication();
    app.loanAmount = 5000
    Applicant applicant = new Applicant();
    app.applicant = applicant;
    applicant.dateOfBirth = new ilog.rules.xml.types.IlrDate("1980-01-01");
    applicant.income = 2000;
    applicant.fixedExpenses = 600;
    
    input = app;
    context.execute();
    
    System.out.println("Loan Decision: "+output.decision);
    

    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:

    Loan Decision: green
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have tried to invoke DX Tool at Runtime. My main idea is to
I invoke the following to prevent scrolling on a web app: $('body').bind('touchmove', function(e){e.preventDefault()}); But
I want to invoke a function only if the device is connected to the
Can I invoke another installed applications within my application? Suppose I have installed AngryBirds,
I need to invoke a ColdFusion function(present in a .cfm file) when the user
I need to invoke action on a web service, but i have no idea
I want to invoke the window.setTimeot function with my custom scope so I use
I am trying to invoke sendmail via PHP's mail function by the following code:
I have this P/Invoke RegSetValueExW that sets the value to the registry key. in
Invoke.invokeApplication(Invoke.APP_TYPE_CALCULATOR, null); How can I retrieve a value from an invoked calculator back into

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.