public class EventFilter extends Object implements Serializable
//Get the instance of EventFilter EventFilter filter = EventFilter.createEventFilter(); //Enable the collection of ConditionEventDetail for failed condition filter.enableCollectionOfConditionFailedStringEvents(true); //Enable the collection of ActionEventDetail for fired Evaluate/Execute Action filter.enableCollectionOfEvaluateActionStringEvents(true); //After configuring the filter it should be set to the context used to invoke Ruleset ctxt.setEventFilter(filter);
Modifier and Type | Field and Description |
---|---|
protected boolean |
collectAssignActionEventsAsString |
protected boolean |
collectDecisionTableEventsAsString |
protected boolean |
collectEvaluateActionEventsAsString |
protected boolean |
collectFailedConditionEventsAsString |
protected boolean |
collectSatisfiedConditionEventsAsString |
Modifier | Constructor and Description |
---|---|
protected |
EventFilter() |
Modifier and Type | Method and Description |
---|---|
static EventFilter |
createEventFilter()
Returns a new instance of EventFilter
|
void |
enableCollectionOfAssignActionStringEvents(boolean enable)
Enables the collection of event generated if any assign type of action
gets fired.
|
void |
enableCollectionOfConditionFailedStringEvents(boolean enable)
Enables the collection of string event messages generated by failed
conditions.
|
void |
enableCollectionOfConditionSatisfiedStringEvents(boolean enable)
Enables the collection of string event messages generated by satisfied
conditions.
|
void |
enableCollectionOfDecisionTableStringEvents(boolean enable)
Enables the collection of events generated while evaluating a decision
table.
|
void |
enableCollectionOfEvaluateActionStringEvents(boolean enable)
Enables the collection of event generated if any Evaluate type of action
gets fired.
|
boolean |
isCollectionOfAssignActionEventsAsStringEnabled()
Returns
true if collection of detail for assign action
type has been enabled. |
boolean |
isCollectionOfConditionFailedEventsAsStringEnabled()
Returns
true if collection of detail for not satisfied
condition as String has been enabled. |
boolean |
isCollectionOfConditionSatisfiedEventsAsStringEnabled()
Returns
true if collection of detail for satisfied
condition as String has been enabled. |
boolean |
isCollectionOfDecisionTableEventsAsStringEnabled()
Returns
true if collection of detail for evaluate decision
table as String has been enabled. |
boolean |
isCollectionOfEvaluateActionEventsAsStringEnabled()
Returns
true if collection of detail for evaluate action
type has been enabled. |
protected boolean collectDecisionTableEventsAsString
protected boolean collectEvaluateActionEventsAsString
protected boolean collectAssignActionEventsAsString
protected boolean collectFailedConditionEventsAsString
protected boolean collectSatisfiedConditionEventsAsString
public void enableCollectionOfConditionFailedStringEvents(boolean enable)
enable
is set to true
then
method IEventDetails.getConditionFailedEventMessages()
an array
of string of the event details of all the failed conditions.enable
- enables the collection of ConditionEventDetail for failed
conditions. If set to false
the method
IEventDetails.getConditionFailedEventMessages()
will
return an empty array.public void enableCollectionOfConditionSatisfiedStringEvents(boolean enable)
enable
is set to true
then
method IEventDetails.getConditionSatisfiedEventMessages()
an
array of string of the event details of all the satisfied conditions.enable
- enables the collection of ConditionEventDetail for satisfied
conditions. If set to false
the method
IEventDetails.getConditionSatisfiedEventMessages()
will return an empty array.public void enableCollectionOfDecisionTableStringEvents(boolean enable)
enable
- enables the collection of DTEventDetail while evaluating a
decision table. If set to false
the method
IEventDetails.getDecisionTableEventMessages()
will
return an empty array.public void enableCollectionOfEvaluateActionStringEvents(boolean enable)
enable
- enables the collection of ActionEventDetail for Evaluate . If
set to false
then the method
IEventDetails.getEvaluateActionEventMessages()
will
return an empty array.public void enableCollectionOfAssignActionStringEvents(boolean enable)
enable
- enables the collection of ActionEventDetail for Assign type of
action. If set to false
then the method
IEventDetails.getAssignActionEventMessages()
will
return an empty array.public boolean isCollectionOfConditionFailedEventsAsStringEnabled()
true
if collection of detail for not satisfied
condition as String has been enabled.public boolean isCollectionOfConditionSatisfiedEventsAsStringEnabled()
true
if collection of detail for satisfied
condition as String has been enabled.public boolean isCollectionOfDecisionTableEventsAsStringEnabled()
true
if collection of detail for evaluate decision
table as String has been enabled.public boolean isCollectionOfEvaluateActionEventsAsStringEnabled()
true
if collection of detail for evaluate action
type has been enabled.public boolean isCollectionOfAssignActionEventsAsStringEnabled()
true
if collection of detail for assign action
type has been enabled.public static EventFilter createEventFilter() throws RuleException
RuleException
Access Rights |
---|
SC | DC | Public Part | ACH |
---|---|---|---|
[sap.com] BRMS-FACADE
|
[sap.com] tc/brms/facade
|
api
|
BC-BMT-BRM-ENG
|
Copyright 2018 SAP AG Complete Copyright Notice