java.lang.Object
overit.geocall.bl.BusinessTask<I>
overit.geocallapp.utilities.core.bl.common.validexecution.ValidExecutionBusinessTask<I>
overit.geocallapp.wfm.core.bl.criticalactivity.detectprocess.task.BTCriticalActivity<I>
Type Parameters:
I - the generic type
All Implemented Interfaces:
Serializable, Tool, ValidExecution
Direct Known Subclasses:
BTCriticalActivitiesDelete, BTCriticalActivityAddDataToSchedulingActivities, BTCriticalActivityDetectProcessesUpdate, BTCriticalActivityDetectProcessInsert, BTCriticalActivityDetectProcessLoad, BTCriticalActivityDetectProcessSearch, BTCriticalActivityDetectProcessUpdate, BTCriticalActivityInsert, BTCriticalActivityLoad, BTCriticalActivityRuleCriterionLoad, BTCriticalActivityRuleCriterionSearch, BTCriticalActivityRuleHeaderInsert, BTCriticalActivityRuleHeaderLoad, BTCriticalActivityRuleHeaderSearch, BTCriticalActivityRuleHeaderUpdate, BTCriticalActivityRuleLoad, BTCriticalActivityRuleSave, BTCriticalActivityRuleWOFilterDelete, BTCriticalActivityRuleWOFilterInsert, BTCriticalActivityRuleWOFilterLoad, BTCriticalActivityRuleWOFilterSearch, BTCriticalActivitySearch, BTCriticalActivityWorkOrderOperationSearch, BTDetectCriticalActivities, BTForcedDetectOnScheduleCompleteManualAction, BTForcedDetectOnScheduleCompleteValidation, BTWoOperationCriticalActivitiesAggregatesLoad

public abstract class BTCriticalActivity<I> extends ValidExecutionBusinessTask<I>
Generic business task for critical activity entities.
Before executing its purpose, the task checks whether the critical activity module is active and if the current user has the required permissions.
Since:
13.0
See Also:
GCApi:
task
  • Constructor Details

    • BTCriticalActivity

      public BTCriticalActivity()
  • Method Details

    • isValidExecution

      public boolean isValidExecution()
      Description copied from interface: ValidExecution
      Determines whether the current state is valid for execution.
      Returns:
      true if execution is valid, 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