Method Summary |
|
public boolean | equals(Object obj) Provides a better implementation than the default, comparing the fields and
then performing "equals" on the Conditions and Actions. |
public boolean | evaluateConditions(RuleContext context) Evaluate Conditions from the internal List of Conditions.
The evaluation stops as soon as one Condition evaluates to false.
Parameters: context - the RuleContext used to perform the evaluation. |
public void | executeActions(RuleContext context) Execute all Actions of the internal list of Actions.
Parameters: context - the RuleContext used to perform the evaluation. |
public List<Action> | getActions() Gets the list of Actions. |
public List<Condition> | getConditions() Gets the list of Conditions. |
public String | getCreatorUser() Gets the creator user-id. |
public Hashtable<String, Object> | getMetaInformation() Gets the meta-information repository. |
public String | getName() Gets the name of the Rule. |
public boolean | isPublic() Checks if is the Rule is marked as public. |
public static boolean | propertyEquals(Object thisProperty, Object otherProperty) Convenience static method to properly compare two properties of an object,
taking into account that any of them could be "null". |
public void | run(RuleContext rtc) Runs the Rule for the given RuleContext. |
public void | setActions(List<Action> actions) Sets a new Action list. |
public void | setConditions(List<Condition> conditions) Sets a new Condition list. |
public void | setCreatorUser(String user) Sets the creator user-id. |
public void | setMetaInformation(Hashtable<String, Object> metaInformation) Assigns a new meta-information repository. |
public void | setName(String name) Sets the name of the Rule. |
public void | setPublic(boolean isPublic) Marks the Rule as public. |
public String | toString() If the Rule has a name, then it is used as String version, otherwise the
default implementation is used. |