Class BTEvaluateGenericQualification
java.lang.Object
overit.geocall.bl.BusinessTask<EvaluateGenericQualificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<EvaluateGenericQualificationEvent>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask<EvaluateGenericQualificationEvent>
overit.geocallapp.wfm.orchestrator.workforce.bl.qualification.task.BTEvaluateGenericQualification
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
@Event(EvaluateGenericQualificationEvent.class)
public class BTEvaluateGenericQualification
extends ValidPermissionBusinessTask<EvaluateGenericQualificationEvent>
Business task for evaluate the generic qualification for the input resource.
- Since:
- 17.0
- See Also:
- GCApi:
- task
-
Field Summary
FieldsFields inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
LOG -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckRequiredQualifications(BOResource resource, List<BOQualification> genericQualifications, List<Long> resourceQualifications, PoolKit poolKit) Checks if the resource has generic qualificationsprotected voidexecute(EvaluateGenericQualificationEvent event, PoolKit poolKit) Evaluate the generic qualification for resource.protected List<BOQualification> getGenericQualifications(PoolKit poolKit) Return a list of generic qualificationsprotected WorkforceIntegrationServicegetIntegrationService(PoolKit poolKit) Returns an instance ofWorkforceIntegrationServicegetResourceQualifications(PoolKit poolKit, Date referenceDate, Long resourceId) Return a list of resource qualificationsbooleanDetermines whether the current state is valid for execution.protected voidValidate the inputMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidPermissionBusinessTask
checkValidExecution, getException, throwExceptionIfInvalidMethods inherited from class overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask
body, getEventMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Field Details
-
eventInput
-
-
Constructor Details
-
BTEvaluateGenericQualification
public BTEvaluateGenericQualification()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Description copied from interface:ValidExecutionDetermines whether the current state is valid for execution.- Returns:
- true if execution is valid, false otherwise
-
execute
protected void execute(EvaluateGenericQualificationEvent event, PoolKit poolKit) throws DAException, DAValidateException Evaluate the generic qualification for resource.- Specified by:
executein classValidExecutionBusinessTask<EvaluateGenericQualificationEvent>- Parameters:
event- the input event to processpoolKit- thePoolKit- Throws:
DAValidateExceptionDAException- if a data access error occurs during execution
-
validate
protected void validate(Long resourceId, Date referenceDate) throws DAValidateException, DAException Validate the input- Parameters:
resourceId- the resource idreferenceDate- the reference date- Throws:
DAValidateExceptionDAException
-
getGenericQualifications
protected List<BOQualification> getGenericQualifications(PoolKit poolKit) throws DAValidateException, DAException Return a list of generic qualifications- Parameters:
poolKit- thePoolKit- Returns:
- Throws:
DAValidateExceptionDAException
-
getResourceQualifications
protected List<Long> getResourceQualifications(PoolKit poolKit, Date referenceDate, Long resourceId) throws DAValidateException, DAException Return a list of resource qualifications- Parameters:
poolKit- thePoolKitreferenceDate- the reference dateresourceId- the resource id- Returns:
- the resource qualification list
- Throws:
DAValidateExceptionDAException
-
checkRequiredQualifications
protected void checkRequiredQualifications(BOResource resource, List<BOQualification> genericQualifications, List<Long> resourceQualifications, PoolKit poolKit) throws DAValidateException, DAException Checks if the resource has generic qualifications- Parameters:
resource- the resourcegenericQualifications- the list of generic qualificationsresourceQualifications- the list of resource qualificationspoolKit- thePoolKit- Throws:
DAValidateExceptionDAException
-
getIntegrationService
protected WorkforceIntegrationService getIntegrationService(PoolKit poolKit) throws DAValidateException Returns an instance ofWorkforceIntegrationService- Parameters:
poolKit- thePoolKit- Returns:
- an instance of
WorkforceIntegrationService - Throws:
DAValidateException
-