Class 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.

Error Code:

Since:
12.0
See Also:
GCApi:
task
  • 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: ValidExecution
      Controls whether an exception should be thrown when execution is invalid. This method allows implementing classes to specify their exception-throwing behavior when ValidExecution.isValidExecution() returns false. If this method returns true, callers should throw the exception returned by ValidExecution.getException().
      Returns:
      true if an exception should be thrown for invalid execution, false otherwise
    • getException

      public DAValidateException getException()
      Description copied from interface: ValidExecution
      Returns the exception that describes why execution is invalid. This method provides detailed information about validation failures when ValidExecution.isValidExecution() returns false. The returned exception can be thrown by callers if ValidExecution.throwExceptionIfInvalid() returns true.
      Returns:
      a DAValidateException describing the validation failure, or null if execution is valid or no specific exception is available