public class RuleExecutionSetImpl extends Object implements javax.rules.admin.RuleExecutionSet
RuleExecutionSet interface
which defines a named set of executable Rule instances. A
RuleExecutionSet can be executed by a rules engine via the
RuleSession interface.RuleExecutionSet,
Serialized Form| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultObjectFilter()
Returns the default ObjectFilter class name
associated with this rule execution set.
|
String |
getDescription()
Get a description of this rule execution set.
|
String |
getName()
Get the name of this rule execution set.
|
javax.rules.ObjectFilter |
getObjectFilter()
Get an instance of the default filter, or null.
|
Object |
getProperty(Object key)
Get a user-defined or Drools-defined property.
|
List |
getRules()
Return a list of all
Rules that are part of the
RuleExecutionSet. |
org.kie.api.runtime.KieSession |
newStatefulSession(org.drools.core.SessionConfiguration conf)
Returns a new WorkingMemory object.
|
org.kie.api.runtime.StatelessKieSession |
newStatelessSession()
Returns a new WorkingMemory object.
|
void |
setDefaultObjectFilter(String objectFilterClassname)
Set the default
ObjectFilter class. |
void |
setProperty(Object key,
Object value)
Set a user-defined or Drools-defined property.
|
public javax.rules.ObjectFilter getObjectFilter()
public org.kie.api.runtime.KieSession newStatefulSession(org.drools.core.SessionConfiguration conf)
public org.kie.api.runtime.StatelessKieSession newStatelessSession()
public String getName()
getName in interface javax.rules.admin.RuleExecutionSetpublic String getDescription()
getDescription in interface javax.rules.admin.RuleExecutionSetpublic Object getProperty(Object key)
getProperty in interface javax.rules.admin.RuleExecutionSetkey - the key to use to retrieve the propertypublic void setProperty(Object key, Object value)
setProperty in interface javax.rules.admin.RuleExecutionSetkey - the key for the property valuevalue - the value to associate with the keypublic void setDefaultObjectFilter(String objectFilterClassname)
ObjectFilter class. This class is
instantiated at runtime and used to filter result objects unless
another filter is specified using the available APIs in the runtime
view of a rule engine.
Setting the class name to null removes the default
ObjectFilter.setDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSetobjectFilterClassname - the default ObjectFilter classpublic String getDefaultObjectFilter()
getDefaultObjectFilter in interface javax.rules.admin.RuleExecutionSetpublic List getRules()
Rules that are part of the
RuleExecutionSet.getRules in interface javax.rules.admin.RuleExecutionSetRules that are part of the
RuleExecutionSet.Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.