Skip to content

clsTaskBusinessRules

Shared rule-method container used by the task entity to enforce domain validation.

Purpose

  • Host reusable rule functions decorated with RuleData for BOF registration.

Context

  • Namespace: SAIF.Business.Tasks
  • Assembly/package: SAIF.BOF.Business.Tasks

Public members

Member Signature Purpose
ValidSourceCategory(target, e) Shared Function(ByVal target As Object, ByVal e As clsRuleArgs) As Boolean Validate the source/category pair against TASK_CATEGORY_CODE.
CheckDate(target, e) Shared Function(ByVal target As Object, ByVal e As clsRuleArgs) As Boolean Require a current or future task date when BOF date validation applies.
CheckDateModified(target, e) Shared Function(ByVal target As Object, ByVal e As clsRuleArgs) As Boolean Emit the workday-adjustment warning when a due date is shifted.

Behavioral notes

  • Implements BR-001, BR-002, and BR-003.
  • Each rule can be suppressed by a concrete task through the OverrideRules(...) hook on clsTask.

Constraints and usage notes

  • The class is a shared rule host rather than a persisted entity.

Sources

  • Business\SAIF.Business.Tasks\clsTaskBusinessRules.vb