Class BTBundlingCriteriaApply
java.lang.Object
overit.geocall.bl.BusinessTask<BundlingCriteriaApplyEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundlingCriteriaApplyEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundlingCriteriaApplyEvent>
overit.geocallapp.wfm.orchestrator.workorders.bl.bundler.bundling.task.BTBundlingCriteriaApply
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundlingCriteriaApplyEvent.class)
public class BTBundlingCriteriaApply
extends BTBundler<BundlingCriteriaApplyEvent>
Business task in order to apply a
When the
BOBundleCriterion. When the
BundlingCriteriaApplyEvent is launched
the BT notices the call and applies the BOBundleCriterion basing on the event's input. - Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Map<BOBundleCriterion, List<BOWorkOrderOperation>> applyCriteria(List<BundlingCriterion> bundlingCriteria, BOBundleCriterion defaultBundleCriterion, List<BOWorkOrderOperation> workOrderOperations, PoolKit poolKit) Applies everyBundlingCriterionto the list of givenBOWorkOrderOperations.protected List<BundlingCriterion> Builds everyBundlingCriterionrequested by the givenBundlingCriteriaApplyInput.protected BOBundleCriterionBuilds the defaultBundlingCriterion, which specifies only the execution type of the current bundling process.protected voidexecute(BundlingCriteriaApplyEvent event, PoolKit poolKit) Applies every requestedBOBundleCriterionto the list of givenBOWorkOrderOperations and writes into the journal the map between the applied criterion and its aggregated operations.Methods inherited from class overit.geocallapp.wfm.bundler.bl.task.BTBundler
getException, isValidExecution, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, checkValidExecution, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTBundlingCriteriaApply
public BTBundlingCriteriaApply()
-
-
Method Details
-
execute
protected void execute(BundlingCriteriaApplyEvent event, PoolKit poolKit) throws DAException, DAValidateException Applies every requestedBOBundleCriterionto the list of givenBOWorkOrderOperations and writes into the journal the map between the applied criterion and its aggregated operations.- Specified by:
executein classValidExecutionBusinessTask<BundlingCriteriaApplyEvent>- Parameters:
event- theBundlingCriteriaApplyEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
buildBundlingCriteria
Builds everyBundlingCriterionrequested by the givenBundlingCriteriaApplyInput. TheOperationCenterCriterionis always present and it is the first bundling criterion of the list.- Parameters:
input- the givenBundlingCriteriaApplyInput- Returns:
- the list of all the
BundlingCriterionthat will be applied
-
buildDefaultBundleCriterion
Builds the defaultBundlingCriterion, which specifies only the execution type of the current bundling process. The default bundle criterion is needed for the first step of the process, in order to generate the other needed ones.- Parameters:
input- the givenBundlingCriteriaApplyInput- Returns:
- the default bundle criterion
-
applyCriteria
protected Map<BOBundleCriterion,List<BOWorkOrderOperation>> applyCriteria(List<BundlingCriterion> bundlingCriteria, BOBundleCriterion defaultBundleCriterion, List<BOWorkOrderOperation> workOrderOperations, PoolKit poolKit) Applies everyBundlingCriterionto the list of givenBOWorkOrderOperations.- Parameters:
bundlingCriteria- list ofBundlingCriteriondefaultBundleCriterion- the defaultBundlingCriterionworkOrderOperations- list ofBOWorkOrderOperationto aggregatepoolKit- thePoolKit- Returns:
- the map of the aggregated
BOWorkOrderOperations byBundlingCriterion
-