|
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.studio.res.generator.IlrFileGenerator ilog.rules.studio.res.generator.IlrVelocityGenerator ilog.rules.studio.res.generator.IlrTraceFileGenerator
public class IlrTraceFileGenerator
Adds a generator to the generator list in the
New Client Project for RuleApps wizard.
This class extends IlrVelocityGenerator
. It uses velocity to
generate and manage the properties file, tracefilter.properties
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class ilog.rules.studio.res.generator.IlrFileGenerator |
---|
IlrFileGenerator.Parameter, IlrFileGenerator.RuleApp, IlrFileGenerator.RulesetArchive |
Field Summary |
---|
Fields inherited from class ilog.rules.studio.res.generator.IlrFileGenerator |
---|
contentCreated |
Constructor Summary | |
---|---|
IlrTraceFileGenerator()
Constructs a new IlrTraceFileGenerator instance. |
Method Summary | |
---|---|
void |
generateProjectContent(org.eclipse.jdt.core.IJavaProject javaProject)
Generates the Java project content. |
String |
getInfoAllRules()
Tests if the boolean filter on all rules is set. |
String |
getInfoAllTasks()
Tests the boolean filter on all tasks is set. |
String |
getInfoBoundObjectByRule()
Tests if the boolean filter on the object bound by the rules fired before execution is set. |
String |
getInfoExecutionDate()
Tests if the boolean filter on execution date is set. |
String |
getInfoExecutionDuration()
Tests if the boolean filter on execution duration is set. |
String |
getInfoExecutionEvents()
Tests if the boolean filter on the environment is set. |
String |
getInfoNumRulesFired()
Tests the boolean filter on the number of rules fired is set. |
String |
getInfoNumRulesNotFired()
Tests if the boolean filter on the number of rules not fired is set. |
String |
getInfoNumTasksExecuted()
Tests the boolean filter on the number of tasks executed is set. |
String |
getInfoNumTasksNotExecuted()
Tests if the boolean filter on the number of tasks not executed is set. |
String |
getInfoOutputParameters()
Deprecated. As of JRules 7.0 this filter has been removed. |
String |
getInfoOutputString()
Deprecated. As of JRules 7.0 this filter has been removed. |
String |
getInfoRulesFired()
Deprecated. Since JRules 7.0, this filter is deleted. |
String |
getInfoRulesNotFired()
Tests if the boolean filter on rules not fired is set. |
String |
getInfoSystemProperties()
Tests if the boolean filter on the system properties is set. |
String |
getInfoTasksFired()
Deprecated. As of JRules 7.0 this filter has been removed. |
String |
getInfoTasksNotExecuted()
Tests if the boolean filter on tasks not executed is set. |
String |
getInfoWorkingMemory()
Checks if the boolean filter on working memory is set. |
protected String |
getTemplateDirectory()
As it not used in this class, the location, that is, the absolute path, which template paths are relative to is the empty string. |
String |
getWorkingMemoryFilter()
Returns a comma separated list containing the classnames to include in the working memory filter. |
protected org.apache.velocity.VelocityContext |
initializeContext(Object userData,
org.apache.velocity.VelocityContext context)
Initializes a velocity context. |
boolean |
isGeneratedTraceFile()
Tests if the trace file must be generated. |
void |
setGeneratedTraceFile(boolean generateTraceFile)
Sets if the trace filter properties file must be generated. |
void |
setInfoAllRules(boolean infoAllRules)
Sets the boolean filter on all rules. |
void |
setInfoAllTasks(boolean infoAllTasks)
Sets the boolean filter on all tasks. |
void |
setInfoBoundObjectByRule(boolean infoBoundObjectByRule)
Sets the boolean filter on the object bound by the rules fired before execution. |
void |
setInfoExecutionDate(boolean infoExecutionDate)
Sets the boolean filter on execution date. |
void |
setInfoExecutionDuration(boolean infoExecutionDuration)
Sets the boolean filter on execution duration. |
void |
setInfoExecutionEvents(boolean infoExecutionEvents)
Sets the boolean filter on the environment. |
void |
setInfoNumRulesFired(boolean infoNumRulesFired)
Sets the boolean filter on the number of rules fired. |
void |
setInfoNumRulesNotFired(boolean infoNumRulesNotFired)
Sets the boolean filter on the number of rules not fired. |
void |
setInfoNumTasksExecuted(boolean infoNumTasksExecuted)
Sets the boolean filter on the number of tasks executed. |
void |
setInfoNumTasksNotExecuted(boolean infoNumTasksNotExecuted)
Sets the boolean filter on the number of tasks not executed. |
void |
setInfoOutputParameters(boolean infoOutputParameters)
Deprecated. As of JRules 7.0 this filter has been removed. |
void |
setInfoOutputString(boolean infoOutputString)
Deprecated. Since JRules 7.0, this filter is deleted. |
void |
setInfoRulesFired(boolean infoRulesFired)
Deprecated. As of JRules 7.0 this filter has been removed. |
void |
setInfoRulesNotFired(boolean infoRulesNotFired)
Sets the boolean filter on rules not fired. |
void |
setInfoSystemProperties(boolean infoSystemProperties)
Sets the boolean filter on the system properties. |
void |
setInfoTasksFired(boolean infoTasksFired)
Deprecated. As of JRules 7.0 this filter has been removed. |
void |
setInfoTasksNotExecuted(boolean infoTasksNotExecuted)
Sets the boolean filter on the tasks not executed. |
void |
setInfoWorkingMemory(boolean infoWorkingMemory)
Sets the boolean filter on working memory. |
void |
setWorkingMemoryFilter(String workingMemoryFilter)
Sets the names of the classes to include in the working memory filter. |
Methods inherited from class ilog.rules.studio.res.generator.IlrVelocityGenerator |
---|
generateVelocityFile, generateVelocityFile, generateVelocityFileInSrc, generateVelocityFileInSrc, getGeneratedExtension, getGeneratedFileName, getGeneratedName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.jface.wizard.IWizardNode |
---|
dispose, getExtent, isContentCreated |
Constructor Detail |
---|
public IlrTraceFileGenerator()
IlrTraceFileGenerator
instance.
Any class that extends this one must declare a public default constructor
which calls this constructor. The default constructor is the only one
that can be called to create a generator.
Method Detail |
---|
protected String getTemplateDirectory()
getTemplateDirectory
in class IlrVelocityGenerator
public void generateProjectContent(org.eclipse.jdt.core.IJavaProject javaProject)
This default implementation creates a src
directory in the
Java project.
generateProjectContent
in class IlrVelocityGenerator
javaProject
- The destination of the Java project files.IlrFileGenerator.generateProjectContent(IJavaProject)
protected org.apache.velocity.VelocityContext initializeContext(Object userData, org.apache.velocity.VelocityContext context)
IlrVelocityGenerator.generateVelocityFile(String,String,String,String,String,Object)
method. It retrieves the parameters to put in the velocity template.
initializeContext
in class IlrVelocityGenerator
userData
- The object specified in
IlrVelocityGenerator.generateVelocityFile(String,String,String,String,String,Object)
.context
- The velocity context to fill.
IlrVelocityGenerator.initializeContext(java.lang.Object, org.apache.velocity.VelocityContext)
public String getInfoAllRules()
String
value true
is returned.public void setInfoAllRules(boolean infoAllRules)
infoAllRules
- Set to true
to filter on all rules.public String getInfoAllTasks()
String
value true
is returned.public void setInfoAllTasks(boolean infoAllTasks)
infoAllTasks
- Set to true
to filter on all tasks.public String getInfoExecutionEvents()
String
value true
is returned.public void setInfoExecutionEvents(boolean infoExecutionEvents)
infoExecutionEvents
- Set to true
to filter on the
environment.public String getInfoExecutionDate()
String
value true
is returned.public void setInfoExecutionDate(boolean infoExecutionDate)
infoExecutionDate
- Set to true
to filter on
execution duration.public String getInfoExecutionDuration()
String
value true
is returned.public void setInfoExecutionDuration(boolean infoExecutionDuration)
infoExecutionDuration
- Set to true
to filter on
execution duration.public String getInfoNumRulesFired()
String
value true
is returned.public void setInfoNumRulesFired(boolean infoNumRulesFired)
infoNumRulesFired
- Set to true
to filter the number
of rules fired.public String getInfoNumRulesNotFired()
String
value true
is returned.public void setInfoNumRulesNotFired(boolean infoNumRulesNotFired)
infoNumRulesNotFired
- Set to true
to filter on the
number of rules not fired.public String getInfoNumTasksExecuted()
String
value true
is returned.public void setInfoNumTasksExecuted(boolean infoNumTasksExecuted)
infoNumTasksExecuted
- Set to true
to filter on the
number of tasks executed.public String getInfoNumTasksNotExecuted()
String
value true
is returned.public void setInfoNumTasksNotExecuted(boolean infoNumTasksNotExecuted)
infoNumTasksNotExecuted
- Set to true
to filter on
on the number of tasks not executed.public String getInfoOutputParameters()
public void setInfoOutputParameters(boolean infoOutputParameters)
public String getInfoOutputString()
public void setInfoOutputString(boolean infoOutputString)
public String getInfoRulesFired()
public void setInfoRulesFired(boolean infoRulesFired)
public String getInfoRulesNotFired()
String
value true
is returned.public void setInfoRulesNotFired(boolean infoRulesNotFired)
infoRulesNotFired
- Set to true
to filter on the the
rules not fired.public String getInfoTasksFired()
public void setInfoTasksFired(boolean infoTasksFired)
public String getInfoTasksNotExecuted()
String
value true
is returned.public void setInfoTasksNotExecuted(boolean infoTasksNotExecuted)
infoTasksNotExecuted
- Set to true
to filter on the
tasks not executed.public String getInfoWorkingMemory()
String
value true
is returned.public void setInfoWorkingMemory(boolean infoWorkingMemory)
infoWorkingMemory
- Set to true
to filter on the
working memeory.public String getWorkingMemoryFilter()
true
for this filter to be considered.
public void setWorkingMemoryFilter(String workingMemoryFilter)
setInfoWorkingMemory(boolean infoWorkingMemory)
must be set to
true
.
workingMemoryFilter
- A comma separated list containing the names
of the classes to include in the working memory filter.public boolean isGeneratedTraceFile()
true
is
returned.public void setGeneratedTraceFile(boolean generateTraceFile)
generateTraceFile
- Set to true
to generate the trace
filters properties file.public String getInfoBoundObjectByRule()
String
value true
is returned.public void setInfoBoundObjectByRule(boolean infoBoundObjectByRule)
infoBoundObjectByRule
- Set to true
to activate the filter.public String getInfoSystemProperties()
String
value true
is returned.public void setInfoSystemProperties(boolean infoSystemProperties)
infoSystemProperties
- Set to true
to activate the
filter.
|
Rule Execution Server API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |