Class BTDataCollectionChecker<I>
java.lang.Object
overit.geocall.bl.BusinessTask<CheckerEvent<I>>
overit.geocallapp.utilities.core.bl.common.check.checker.task.AbstractCheckerBusinessTask<I>
overit.geocallapp.utilities.core.bl.common.check.checker.task.ValidExecutionAbstractCheckerBusinessTask<I>
overit.geocallapp.wfm.mobileforms.bl.task.BTDataCollectionChecker<I>
- Type Parameters:
I- the generic type
- All Implemented Interfaces:
Serializable,Tool,ValidExecution
- Direct Known Subclasses:
BTDataCollectionSheetInstanceCheckMandatoryNodes,BTDataCollectionSheetInstanceCheckNodesConstraints,BTDataCollectionSheetInstanceCheckNodesConstraintsThreshold,BTDataCollectionTemplateCheckJSONModel
public abstract class BTDataCollectionChecker<I>
extends ValidExecutionAbstractCheckerBusinessTask<I>
Generic business task for the data collection checker entities.
Before executing its purpose, the task checks whether the data collection module is active or not.
Before executing its purpose, the task checks whether the data collection module is active or not.
Error Code:
- Since:
- 12.0
- See Also:
- GCApi:
- task
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the exception that describes why execution is invalid.booleanChecks whether the data collection is activated or not.booleanControls whether an exception should be thrown when execution is invalid.Methods inherited from class overit.geocallapp.utilities.core.bl.common.check.checker.task.ValidExecutionAbstractCheckerBusinessTask
body, checkValidExecutionMethods inherited from class overit.geocallapp.utilities.core.bl.common.check.checker.task.AbstractCheckerBusinessTask
addCheckIssuesToCheckResult, computeCheckIssues, initCheckResultMethods inherited from class overit.geocall.bl.BusinessTask
start, start, startAlone, startInBackground
-
Constructor Details
-
BTDataCollectionChecker
public BTDataCollectionChecker()
-
-
Method Details
-
isValidExecution
public boolean isValidExecution()Checks whether the data collection is activated or not.- Returns:
- true, if the data collection module is active, false otherwise
-
throwExceptionIfInvalid
public boolean throwExceptionIfInvalid()Description copied from interface:ValidExecutionControls whether an exception should be thrown when execution is invalid. This method allows implementing classes to specify their exception-throwing behavior whenValidExecution.isValidExecution()returns false. If this method returns true, callers should throw the exception returned byValidExecution.getException().- Returns:
- true if an exception should be thrown for invalid execution, false otherwise
-
getException
Description copied from interface:ValidExecutionReturns the exception that describes why execution is invalid. This method provides detailed information about validation failures whenValidExecution.isValidExecution()returns false. The returned exception can be thrown by callers ifValidExecution.throwExceptionIfInvalid()returns true.- Returns:
- a
DAValidateExceptiondescribing the validation failure, or null if execution is valid or no specific exception is available
-