Class BundlingRule
java.lang.Object
overit.geocallapp.wfm.bundler.bl.configuration.bundling.rule.BundlingRule
- All Implemented Interfaces:
Serializable,Comparable<BundlingRule>
Object bean that contains the main information of the rule used to create a
Bundle.
It consists of:
- an header
BOBundlingRuleHeaderthat contains the common characteristics of the rule - a list of
BOBundlingRuleFilterrepresenting the links between the rule and the associated work order filters - a list of
BOBundlingRuleOrderingrepresenting the links between the rule and the associated orderings
- Since:
- 10.1
- See Also:
- GCApi:
- bo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(BundlingRule bundlingRule) Compares the current bundling rule to the given one.Returns the list of the bundle operation ordering ids, sorted by priority.Returns theBOBundlingRuleHeaderof the rule.getId()Returns the bundling rule id, taking it from theBOBundlingRuleHeader.Returns the list of theBOBundlingRuleOrderingassociated to the rule.Returns the list ofBOBundlingRuleFilters associated to the rule.Returns the work order filters.static BundlingRuleCreates a fallback bundling rule used as backup when no other rules are applicable.voidsetHeader(BOBundlingRuleHeader header) Sets theBOBundlingRuleHeaderof the rule.voidsetOrderings(List<BOBundlingRuleOrdering> orderings) Sets the list of theBOBundlingRuleOrderingassociated to the rule.voidsetSelectionFilters(List<BOBundlingRuleFilter> selectionFilters) Sets the list ofBOBundlingRuleFilters associated to the rule.
-
Constructor Details
-
BundlingRule
public BundlingRule()Instantiates a new bundling rule.
-
-
Method Details
-
makeFallbackBundlingRule
Creates a fallback bundling rule used as backup when no other rules are applicable. This rule ensures bundling operations can proceed with basic criteria when user-defined rules cannot be matched or executed.- Returns:
- a
BundlingRulewith fallback configuration
-
getHeader
Returns theBOBundlingRuleHeaderof the rule.- Returns:
- the
BOBundlingRuleHeader
-
setHeader
Sets theBOBundlingRuleHeaderof the rule.- Parameters:
header- theBOBundlingRuleHeader
-
getSelectionFilters
Returns the list ofBOBundlingRuleFilters associated to the rule.- Returns:
- a list of
BOBundlingRuleFilters - See Also:
-
setSelectionFilters
Sets the list ofBOBundlingRuleFilters associated to the rule.- Parameters:
selectionFilters- the list ofBOBundlingRuleFilters
-
getOrderings
Returns the list of theBOBundlingRuleOrderingassociated to the rule.- Returns:
- a list of
BOBundlingRuleOrdering - See Also:
-
setOrderings
Sets the list of theBOBundlingRuleOrderingassociated to the rule.- Parameters:
orderings- the list ofBOBundlingRuleOrdering
-
getBundleOperationOrderings
Returns the list of the bundle operation ordering ids, sorted by priority.- Returns:
- the list of
BOBundleOperationOrderingids sorted by priority
-
getWorkOrderFilters
Returns the work order filters.- Returns:
- a list of long elements of type Long
- See Also:
-
getId
Returns the bundling rule id, taking it from theBOBundlingRuleHeader.- Returns:
- the bundling rule id
-
compareTo
Compares the current bundling rule to the given one.- Specified by:
compareToin interfaceComparable<BundlingRule>- Parameters:
bundlingRule- the given bundling rule that needs to be compared with the current- Returns:
- a negative integer, zero, or a positive integer as the current bundling rule header has a priority that is less than, equal to, or greater than the given one.
-