Class BTDataCollectionTemplateSearchMatchingWOCreationRules
java.lang.Object
overit.geocall.bl.BusinessTask<DataCollectionTemplateSearchMatchingWOCreationRulesEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<DataCollectionTemplateSearchMatchingWOCreationRulesEvent>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection<DataCollectionTemplateSearchMatchingWOCreationRulesEvent>
overit.geocallapp.wfm.mobileforms.bl.template.task.BTDataCollectionTemplateSearchMatchingWOCreationRules
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(DataCollectionTemplateSearchMatchingWOCreationRulesEvent.class)
public class BTDataCollectionTemplateSearchMatchingWOCreationRules
extends BTDataCollection<DataCollectionTemplateSearchMatchingWOCreationRulesEvent>
Business task in order to search for matching
When the
BODataCollectionTemplateWOCreationRule. When the
DataCollectionTemplateSearchMatchingWOCreationRulesEvent is launched
the BT notices the call and searches for matching the BODataCollectionTemplateWOCreationRule basing on the event's input. - Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(DataCollectionTemplateSearchMatchingWOCreationRulesEvent event, PoolKit poolKit) Searches for matching wo creation rules.protected List<BODataCollectionTemplateWOCreationRule> filterRules(List<BODataCollectionTemplateWOCreationRule> rules, PoolKit poolKit) Filters the rules.protected List<BODataCollectionTemplateWOCreationRule> searchRules(Set<Long> workCycleOperations, PoolKit poolKit) Searches the rules.Methods inherited from class overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollection
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
-
BTDataCollectionTemplateSearchMatchingWOCreationRules
public BTDataCollectionTemplateSearchMatchingWOCreationRules()
-
-
Method Details
-
execute
protected void execute(DataCollectionTemplateSearchMatchingWOCreationRulesEvent event, PoolKit poolKit) throws DAException, DAValidateException Searches for matching wo creation rules.- Specified by:
executein classValidExecutionBusinessTask<DataCollectionTemplateSearchMatchingWOCreationRulesEvent>- Parameters:
event- theDataCollectionTemplateSearchMatchingWOCreationRulesEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
searchRules
protected List<BODataCollectionTemplateWOCreationRule> searchRules(Set<Long> workCycleOperations, PoolKit poolKit) throws DAValidateException, DAException Searches the rules.- Parameters:
workCycleOperations- the work cycle operationspoolKit- thePoolKit- Returns:
- a list of BO data collection template WO creation rule elements of type BODataCollectionTemplateWOCreationRule
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-
filterRules
protected List<BODataCollectionTemplateWOCreationRule> filterRules(List<BODataCollectionTemplateWOCreationRule> rules, PoolKit poolKit) throws DAValidateException, DAException Filters the rules.- Parameters:
rules- list ofBODataCollectionTemplateWOCreationRuleelementspoolKit- thePoolKit- Returns:
- a list of BO data collection template WO creation rule elements of type BODataCollectionTemplateWOCreationRule
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception- See Also:
-