Show TOC

Procedure documentationLooking Up the Rule Engine Locate this document in the navigation structure

 

You can only do local lookup when the rules are built either on Java or Java and XSD. The table below illustrates the lookup possibilities.

Ruleset Inputs

Local Lookup

XSD

Yes

XSD + Java

Yes

Java

Yes

Note Note

In above matrix, Java does not include the default Java aliases (Java classes) that are available with the Project. Ex: FunctionsUtil

End of the note.

Procedure

Local Lookup

RuleEngineLocalHome.JNDI_NAME is the JNDI Name used for Local Lookup. Use the following code for local lookup of rules engine.

Syntax Syntax

  1. InitialContext context = getInitialContext();
  2. RuleEngineLocalHome home = (RuleEngineLocalHome) context.lookup(RuleEngineLocalHome.JNDI_NAME);
    
  3. RuleEngineLocal local = home.create();
  4. RuleEngine engine = (RuleEngine) local;
    
End of the code.