Package org.kuali.rice.krms.api.engine
Class SelectionCriteria
java.lang.Object
org.kuali.rice.krms.api.engine.SelectionCriteria
SelectionCritera are used to to select an
Agenda to execute.- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionstatic SelectionCriteriacreateCriteria(org.joda.time.DateTime effectiveExecutionTime, Map<String, String> contextQualifiers, Map<String, String> agendaQualifiers) This static factory method creates a SelectionCriteria used to select an Agenda to execute.This method gets the effective date/time in epoch time, suitable for converting to aDateviaDate(long)
-
Method Details
-
createCriteria
public static SelectionCriteria createCriteria(org.joda.time.DateTime effectiveExecutionTime, Map<String, String> contextQualifiers, Map<String, String> agendaQualifiers) This static factory method creates a SelectionCriteria used to select an Agenda to execute.- Parameters:
effectiveExecutionTime- the time that the rule is being executed at. If null, the time of engine execution will be used.contextQualifiers- qualifiers used to select the contextagendaQualifiers- qualifiers used to select the agenda from the context- Returns:
- the
SelectionCriteria
-
getEffectiveExecutionTime
This method gets the effective date/time in epoch time, suitable for converting to aDateviaDate(long)- Returns:
- the epoch time for effective execution, or null
(which defers to the
Enginebut implies that the actual time when execution begins will be used).
-
getContextQualifiers
- Returns:
- the map of context qualifiers. May be empty, will never be null.
-
getAgendaQualifiers
- Returns:
- the map of agenda qualifiers. May be empty, will never be null.
-