Class BTBundlingRuleSearch
java.lang.Object
overit.geocall.bl.BusinessTask<BundlingRuleSearchEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<BundlingRuleSearchEvent>
overit.geocallapp.wfm.bundler.bl.task.BTBundler<BundlingRuleSearchEvent>
overit.geocallapp.wfm.bundler.bl.configuration.bundling.rule.task.BTBundlingRuleSearch
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(BundlingRuleSearchEvent.class)
public class BTBundlingRuleSearch
extends BTBundler<BundlingRuleSearchEvent>
Business task in order to search a
When the
The search is accomplished by carrying out several steps:
BundlingRule. When the
BundlingRuleSearchEvent is launched
the BT notices the call and searches the BundlingRule basing on the event's input. The search is accomplished by carrying out several steps:
- firstly, we searched for the list of
BOBundlingRuleHeaderthat correspond to the givenBundlingRuleSearchFilter. - after that, the related
BOBundlingRuleFilterare loaded (one list for eachBOBundlingRuleHeader) - likewise, the related
BOBundlingRuleOrderingare loaded (one list for eachBOBundlingRuleHeader) - finally a new
PageResponseof the just createdBundlingRuleis generated and returned into the event's journal
- Since:
- 10.1
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(BundlingRuleSearchEvent event, PoolKit poolKit) Writes thePageResponseof the searchedBundlingRules into the event journal.protected PageResponse<BOBundlingRuleHeader> searchBundlingRules(Page page, BundlingRuleSearchFilter searchFilter, PoolKit pk) Searches for the neededBOBundlingRuleHeaders using the information contained into the givenBundlingRuleSearchFilter.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
-
BTBundlingRuleSearch
public BTBundlingRuleSearch()
-
-
Method Details
-
execute
protected void execute(BundlingRuleSearchEvent event, PoolKit poolKit) throws DAException, DAValidateException Writes thePageResponseof the searchedBundlingRules into the event journal.- Specified by:
executein classValidExecutionBusinessTask<BundlingRuleSearchEvent>- Parameters:
event- theBundlingRuleSearchEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
searchBundlingRules
protected PageResponse<BOBundlingRuleHeader> searchBundlingRules(Page page, BundlingRuleSearchFilter searchFilter, PoolKit pk) throws DAException, DAValidateException Searches for the neededBOBundlingRuleHeaders using the information contained into the givenBundlingRuleSearchFilter.- Parameters:
page- thePagewith the needed pagination informationsearchFilter- theBundlingRuleSearchFilterpk- thePoolKit- Returns:
- the
PageResponsecontaining the paginated results - Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-