Class BTInterventionOutcomeValidationStatusByRuleUpdate
java.lang.Object
overit.geocall.bl.BusinessTask<InterventionOutcomeValidationStatusByRuleUpdateEvent>
overit.geocallapp.wfm.core.bl.schedule.intervention.outcome.validationstate.task.BTInterventionOutcomeValidationStatusByRuleUpdate
- All Implemented Interfaces:
Serializable,Tool
@Event(InterventionOutcomeValidationStatusByRuleUpdateEvent.class)
public class BTInterventionOutcomeValidationStatusByRuleUpdate
extends BusinessTask<InterventionOutcomeValidationStatusByRuleUpdateEvent>
Business task in order to update the validation status of an intervention outcome basing on the validation rules.
- Since:
- 18.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbody(InterventionOutcomeValidationStatusByRuleUpdateEvent event, PoolKit poolKit) Updates the validation status of an intervention outcome.protected BooleanisInternalUser(Long userId, PoolKit poolKit) Checks if the given user is internal.Methods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTInterventionOutcomeValidationStatusByRuleUpdate
public BTInterventionOutcomeValidationStatusByRuleUpdate()
-
-
Method Details
-
body
protected void body(InterventionOutcomeValidationStatusByRuleUpdateEvent event, PoolKit poolKit) throws DAException, DAValidateException Updates the validation status of an intervention outcome.- Specified by:
bodyin classBusinessTask<InterventionOutcomeValidationStatusByRuleUpdateEvent>- Parameters:
event- theInterventionOutcomeValidationStatusByRuleUpdateEventpoolKit- thePoolKit- Throws:
DAException- the DA exceptionDAValidateException- the DA validate exception
-
isInternalUser
protected Boolean isInternalUser(Long userId, PoolKit poolKit) throws DAValidateException, DAException Checks if the given user is internal.- Parameters:
userId- the user idpoolKit- thePoolKit- Returns:
- true if the user is internal, false if the user is external
- Throws:
DAValidateException- the DA validate exceptionDAException- the DA exception
-