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 FormModifier 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
Rule s that are part of the
RuleExecutionSet . |
org.drools.core.StatefulSession |
newStatefulSession(org.drools.core.SessionConfiguration conf)
Returns a new WorkingMemory object.
|
org.drools.core.StatelessSession |
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.drools.core.StatefulSession newStatefulSession(org.drools.core.SessionConfiguration conf)
public org.drools.core.StatelessSession newStatelessSession()
public String getName()
getName
in interface javax.rules.admin.RuleExecutionSet
public String getDescription()
getDescription
in interface javax.rules.admin.RuleExecutionSet
public Object getProperty(Object key)
getProperty
in interface javax.rules.admin.RuleExecutionSet
key
- the key to use to retrieve the propertypublic void setProperty(Object key, Object value)
setProperty
in interface javax.rules.admin.RuleExecutionSet
key
- 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.RuleExecutionSet
objectFilterClassname
- the default ObjectFilter
classpublic String getDefaultObjectFilter()
getDefaultObjectFilter
in interface javax.rules.admin.RuleExecutionSet
public List getRules()
Rule
s that are part of the
RuleExecutionSet
.getRules
in interface javax.rules.admin.RuleExecutionSet
Rule
s that are part of the
RuleExecutionSet
.Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.