|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ilog.rules.tools.IlrBaseTool ilog.rules.tools.IlrMain
public class IlrMain
This class invokes the ilrmain
function of the ILOG Rule Language (IRL). It is provided as a convenient
tool for testing a ruleset archive.
To use this class, the CLASSPATH
variable must contain the jrules-engine.jar
file as well
as any of your application classes that are referred to in the rules.
The syntax of the command is as follows:
java ilog.rules.tools.IlrMain [-context contextClass] -jar rulesetarchivefile arg1 ... argN
The options are:
-context
is used to supply a specific derived context class name.
contextClass
is a fully-qualified class name. By default, the class IlrContext
is used.
Note that subclassing of an IlrContext
is deprecated since JRules 5.0.rulesetarchivefile
is a ruleset archive jar file which contains an ilrmain
function.arg1 ... argN
are arguments that are transmitted to ilrmain
. These
arguments are concatenated into a single string and are separated by a space. For example, if the arguments are
-name myname -file myfile
, the ilrmain
function receives the string argument
"-name myname -file myfile"
.
The ilrmain
function must have the following signature:
XXX ilrmain(java.lang.Object arg) { ... }
The function may have a void or other return type. If no arguments are provided through this class, arg
is null
. Otherwise, the value of arg
is the concatenated string.
IlrContext.executeMain(Object)
Field Summary |
---|
Fields inherited from class ilog.rules.tools.IlrBaseTool |
---|
arguments, contextClass, items, reflect, ruleset, writer |
Method Summary | |
---|---|
protected IlrContext |
createJarContext(String filename)
Deprecated. |
Methods inherited from class ilog.rules.tools.IlrBaseTool |
---|
createFile, createRuleset, decodeArguments, decodeLastArguments, displayUsage, init, initContextClass, invoke |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
protected IlrContext createJarContext(String filename)
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |