Skip to main content

TvxLogStatusType

TvxLogStatusType = (flsNotSet, flsOK, flsWarning, flsIssue, flsDuplicate, flsCancelled, flsError, flsTest, flsHighlight)

Example

procedure ClassifyStatus(Status: TvxLogStatusType; var Value: Variant);
begin
case Status of
flsOK: Value := 'success';
flsWarning, flsIssue, flsDuplicate: Value := 'attention';
flsCancelled: Value := 'cancelled';
flsError: Value := 'error';
else
Value := 'non-terminal';
end;
end;

Usage

TvxLogStatusType classifies Velox execution and log outcomes that drive success checks, persistence, file routing and notification behaviour.

Members

ValueOrdinalMeaning
flsNotSet0No status selected; display Not Set, admin-class mapping.
flsOK1Successful/informational outcome; display Successful.
flsWarning2Warning outcome; usually saved and notified.
flsIssue3Business/data issue; routes files to the issue area.
flsDuplicate4Duplicate outcome; routes files to the duplicate area.
flsCancelled5Execution cancelled or no work; excluded from the default saved-status set.
flsError6System/error outcome; admin-class mapping and error routing.
flsTest7Test-only status; display Test.
flsHighlight8Highlighted informational line; display string is Note.

Behavior and boundaries

  • TvxLog.SetStatusType copies a value to overall/header/row StatusType only when Value > current. It is therefore monotonic by declaration ordinal, not by business severity. Test(7) blocks later Error(6), and Highlight(8) blocks every later normal setter update.
  • Independently of whether the enum update is accepted, passing Error sets the separate Boolean Status=False, and passing OK sets it True. StatusType and Boolean Status can therefore disagree. Other members do not change that Boolean.
  • Normal assignment cannot lower/clear status. Reset paths directly restore OK; IsCancelled=False directly writes NotSet before sending OK through the setter as a special bypass.
  • Default action settings save OK, Warning, Issue, Duplicate and Error; they send notifications for Warning, Issue, Duplicate and Error. Cancelled, Test and Highlight are excluded unless configuration changes.
  • File audit routing treats OK, Warning, Cancelled and Error as audit-directory outcomes; Issue and Duplicate have separate directories.
  • The static email-type table maps Test to Admin and Highlight to Notify, but several GetEmailForType case statements handle only NotSet through Error. Test/Highlight can therefore yield an empty/default result in those paths.
  • REST execution paths differ: one treats only Error as client-error status, while another treats Issue and Error as client errors. Read the endpoint behavior rather than inferring from ordinal.
  • flsHighlight is not semantically more severe than flsError despite its higher ordinal, but it mechanically dominates the current monotonic setter. Never use ordinal comparison in script to rank severity, and do not manually assign Test/Highlight as the overall outcome.
  • Status changes can affect persistence, notifications, retries, file movement and API response codes. Set the most specific named outcome deliberately.

Additional Technical Info

TvxLogStatusType is Velox's execution/log outcome classification. It is not a semantic increasing severity scale: several members control different business paths, and flsHighlight is displayed as a note. The current setter nevertheless uses ordinal comparison as a retention rule, which creates the important quirks below.

A fresh/reset log uses flsOK. TvxLog.IsSuccess returns true only for flsOK; warning, issue, duplicate, cancelled, error, test and highlight are not reported by that exact helper as success.

External references

Created 2026-07-15