Class BTCriticalActivityRuleSave
java.lang.Object
overit.geocall.bl.BusinessTask<CriticalActivityRuleSaveEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<CriticalActivityRuleSaveEvent>
overit.geocallapp.wfm.core.bl.criticalactivity.detectprocess.task.BTCriticalActivity<CriticalActivityRuleSaveEvent>
overit.geocallapp.wfm.core.bl.criticalactivity.rule.task.BTCriticalActivityRuleSave
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(CriticalActivityRuleSaveEvent.class)
public class BTCriticalActivityRuleSave
extends BTCriticalActivity<CriticalActivityRuleSaveEvent>
Business task in order to save a
CriticalActivityRule.
When the CriticalActivityRuleSaveEvent is launched the BT notices the
call and saves the CriticalActivityRule basing on the event's
input.
Error Code:
- Since:
- 13.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckRule(CriticalActivityRule rule, PoolKit poolKit) protected voiddeleteOldWOFilters(Long headerId, PoolKit poolKit) protected voidexecute(CriticalActivityRuleSaveEvent event, PoolKit poolKit) Executes the actual business logic after validation has passed.protected voidsaveNewWoFilters(Long headerId, List<BOCriticalActivityRuleWOFilter> woFilters, PoolKit poolKit) protected List<BOCriticalActivityRuleHeader> searchRulesByCode(String code, PoolKit poolKit) Methods inherited from class overit.geocallapp.wfm.core.bl.criticalactivity.detectprocess.task.BTCriticalActivity
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
-
BTCriticalActivityRuleSave
public BTCriticalActivityRuleSave()
-
-
Method Details
-
execute
protected void execute(CriticalActivityRuleSaveEvent event, PoolKit poolKit) throws DAException, DAValidateException Description copied from class:ValidExecutionBusinessTaskExecutes the actual business logic after validation has passed.- Specified by:
executein classValidExecutionBusinessTask<CriticalActivityRuleSaveEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAException- if a data access error occurs during executionDAValidateException- if validation fails during execution
-
checkRule
protected void checkRule(CriticalActivityRule rule, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
searchRulesByCode
protected List<BOCriticalActivityRuleHeader> searchRulesByCode(String code, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-
deleteOldWOFilters
protected void deleteOldWOFilters(Long headerId, PoolKit poolKit) throws DAValidateException, DAException - Throws:
DAValidateExceptionDAException
-
saveNewWoFilters
protected void saveNewWoFilters(Long headerId, List<BOCriticalActivityRuleWOFilter> woFilters, PoolKit poolKit) throws DAException, DAValidateException - Throws:
DAExceptionDAValidateException
-