Skip to main content

Flow Configuration

Summary

This page documents configuration for Velox flows (TvxActionMan) and flow action items. Flows define scheduling, monitoring, REST endpoints, retry behaviour, logging, notification routing, and ordered execution steps such as maps, reports, outbound transports, SQL, shell commands, sub-flows, file routing, and custom scripts.

Source Code Locations

  • Classes\vxActionMan.pas:22 - TvxActionItem base class.
  • Classes\vxActionMan.pas:299 - TvxActionMan.
  • Classes\vxActionMan.pas:1494 - TvxActionMan.New defaults.
  • Classes\vxActionMan.pas:793 - TvxActionReport.
  • Classes\vxActionMan.pas:3230 - TvxActionShellExecute.
  • Classes\vxActionMan.pas:3404 - TvxActionTransport.
  • Classes\vxActionMan.pas:3599 - TvxActionSQL.
  • Classes\vxActionMan.pas:3678 - TvxActionFileRouter.
  • Classes\vxActionMan.pas:3821 - TvxActionSubAction.
  • Classes\vxActionMan.pas:3921 - TvxActionCustomScript.
  • Classes\vxActionMan.pas:4061 - TvxActionAPI source-visible subclass. No current class registration or main flow setup creation path was confirmed.
  • Classes\vxRouteItem.pas:8 - file route item.
  • Classes\vxScriptItem.pas:9 - script item.
  • Forms\frmSetupActions.pas:25 - flow setup form.

Important Classes

  • TvxActionMan
  • TvxActionItem
  • TvxActionMap, TvxActionReport, TvxActionTransport, TvxActionShellExecute, TvxActionSQL, TvxActionFileRouter, TvxActionSubAction, TvxActionCustomScript
  • TvxActionAPI as a source-visible transport-derived subclass whose active product availability was not confirmed
  • TvxRouteItem
  • TvxScriptItem
  • TvxTransportLink

Important Forms

  • TSetupActions
  • TManageActions
  • TViewProcesses
  • TSetupMapDesign
  • TScriptEditor

Important Services

  • VeloxService executes scheduled, monitored, manual, linked, and transport-related flows.
  • VeloxAPIService executes REST flows and API-linked flows.
  • Database table: VX_ACTION.
  • Child objects: TvxActionItem, TvxDefManager, TvxTransportLink, TvxScriptItem, TvxRouteItem.
  • Shared enum values: TvxExecutionType, TvxSchedulePeriod, TvxRepeatOccurrence, TvxActionType, TvxHTTPMethod, TvxLogStatusTypeSet.

Flow Module Identity

SettingValid valuesDefaultImpact
TableInternal stringVX_ACTIONSelects flow database table.
ModuleDescriptionInternal stringFlowDisplay/module metadata.
ModuleNameStringNew FlowUser-visible flow name.

Schedule and Execution Settings

SettingValid valuesDefaultImpact
ScheduleTypeTvxExecutionTypefstNoneDetermines manual, scheduled, monitor, REST, or linked flow execution mode.
SchedulePeriodTvxSchedulePeriodfspDailyDaily/weekly/monthly schedule grouping.
RunOnceImmediatelyBooleanFalseRuns once immediately when schedule starts.
RepeatIntervalInteger10Interval amount for recurring execution. Source comment says "number of seconds etc"; effective unit depends on RepeatPeriod.
RepeatPeriodTvxRepeatOccurrencefrtMinutesUnit for repeat interval.
DayIntervalInteger1Day interval for daily schedules.
MonthDayInteger1Day of month for monthly schedules.
EnableReoccurringBooleanFalseEnables repeat/recurring execution.
StartTimeTDateTime time value12:01:00 AMSchedule start time.
EndTimeTDateTimeNot explicitly assigned in New; Delphi date/time default is 0Schedule end time.
WeekDaysTvxDays setMonday through FridayDays used by weekly schedules.
FileMonitorTvxDefItem child referencenilDefinition/file source monitored for incoming files.
IgnoreCancelBooleanFalseAllows execution to ignore cancellation in relevant paths.
ReprocessUntilErrorBooleanFalseReprocesses until error condition. Exact loop enforcement is in execution code.
MaxThreadsPerActionInteger1Maximum concurrent threads per flow.
LinkedActionFIDSGUID stringEmptyGuidLinked flow reference.
LinkedActionOrderInteger1Execution order for linked flows.

Retry Settings

SettingValid valuesDefaultImpact
AutoRetryBooleanFalseEnables automatic retry.
AutoRetryCountInteger3Number of retry attempts.
AutoRetryWaitSecondsInteger5Wait between retries in seconds, per property name.

REST/API Settings

SettingValid valuesDefaultImpact
RESTMethodTvxHTTPMethodhmGetHTTP method for REST-triggered flow.
RESTEndpointString; setter prepends / when missing''; BeforeAdd can set /api/{FID}REST route endpoint.
RESTGroupsString''API group tags/categories.
RESTSummaryString''OpenAPI/API summary.
RESTDescriptionTStringsEmpty listREST/OpenAPI description.
RESTDocumentationString''Documentation text/reference.
RESTParamsTStringsEmpty listREST parameter metadata.
RESTSuccessResultInteger HTTP status200HTTP status for successful response.
RESTClientErrorResultInteger HTTP status400HTTP status for client errors.
RESTServerErrorResultInteger HTTP status500HTTP status for server errors.
RESTAllowAnonymousBooleanFalseAllows anonymous REST execution.
RequestDefTvxDefItem child referencenilRequest data definition.
ResponseDefTvxDefItem child referencenilResponse data definition.

Logging and Notification Settings

SettingValid valuesDefaultImpact
SaveLogStatusesTvxLogStatusTypeSet[flsOK, flsWarning, flsIssue, flsDuplicate, flsError]Log statuses saved for flow results.
SendLogStatusesTvxLogStatusTypeSet[flsWarning, flsIssue, flsDuplicate, flsError]Log statuses that send notifications.
UseDefaultEmailBooleanTrueUses default setup email recipients when flow-specific recipients are blank.
AdminEmailString; getter falls back to setup admin email when blank''Flow-specific admin notification target.
NotifyEmailString; getter falls back to setup notify email when blank''Flow-specific notify target.
LogSQLBooleanTrueLogs SQL.
LogHTTPCommsBooleanTrueLogs HTTP communication details.
LogFileDataBooleanFalseControls whether file data is stored in logs.
LogTransportCommsBooleanTrueLogs transport communication details.

Flow Runtime Flags

These are public properties used by execution/script/API runtime. Some are persisted through published properties, others are runtime only.

SettingValid valuesDefaultImpact
RESTBooleanFalseIndicates execution through REST call. Not reset in New if caller already assigned it.
SubActionBooleanFalseIndicates loaded as sub-action.
SendEvent, SendIssueEvent, NotifyCompanyEvent, NotifyCompanyIssueEvent, NotifyPartnerEvent, TypeNum, StatusNum, SourceNum, UserNumInteger flags-1Script/API event/status/source/user references.
IsChangedBooleanFalseScript-set flag indicating the transaction changed.

Action Item Base Settings

SettingValid valuesDefaultImpact
IgnoreEmptySourceDataBooleanFalseAllows action execution when source data is empty.
ActionNameStringNew Action; subclasses overrideDisplay name of action step.
ActionTypeTvxActionTypefatMap; subclasses overrideStep type.
ActionFIDSGUID stringEmptyGuidLinked module/flow/transport/action reference.
ItemActiveBooleanTrueEnables/disables the step.
SourceTvxDefItem child objectnilSource data item.
DestTvxDefItem child objectnilDestination data item.

Action-Specific Settings

Action classSettingValid valuesDefaultImpact
TvxActionMapNo additional published settingsUses base settingsActionName = New Map Action, ActionType = fatMapLoads and executes a map module.
TvxActionReportOutputDestTvxOutputDestTypeNot explicitly assigned; enum field default is fdtViewerOutput target: viewer, printer, file, or email.
TvxActionReportOutputTypeTvxOutputTypeNot explicitly assigned; enum field default is fotPDFReport output format/content type.
TvxActionReportOutputDetailsString with tags'' by field defaultPrinter/file/email target depending on OutputDest.
TvxActionReportFileDetailsString with tags'' by field defaultFile-related output detail. Exact format not fully traced here.
TvxActionReportAttachmentString'' by field defaultAttachment setting.
TvxActionReportMiscellaneousString'' by field defaultMiscellaneous report options. Exact semantics not fully traced here.
TvxActionReportBCCEmailString'' by field defaultBCC recipients for email output.
TvxActionTransportTransportClassRegistered transport class name''; source-visible TvxActionAPI sets TvxTransportHTTPOut if createdSelects outbound transport class for outbound transport action steps.
TvxActionShellExecuteCommandLineString with tags'' by field defaultCommand to run.
TvxActionShellExecuteUsernameString'' by field defaultOptional run-as username.
TvxActionShellExecuteUserpassEncrypted persisted string; runtime getter decrypts'' by field defaultOptional run-as password.
TvxActionShellExecuteDomainString'' by field defaultOptional run-as domain.
TvxActionShellExecuteParamsString with tags'' by field defaultCommand parameters.
TvxActionShellExecuteDelayCardinal seconds0 by field defaultSleeps after command execution when greater than zero.
TvxActionShellExecuteUseShellExecuteBooleanFalse by field defaultChooses shell execution path.
TvxActionShellExecuteWaitforProcessBooleanFalse by field defaultWaits for process completion.
TvxActionSQLSQLCommandString with tags'' by field defaultSQL executed by the action. Blank command is detected and skipped/error-handled in execution code.
TvxActionFileRouterNo direct published settingsChild route itemsActionName = New File Router Action, ActionType = fatFileRouterRoutes files through TvxRouteItem children.
TvxActionSubActionNo additional published settingsUses base ActionFIDSActionName = New Sub Action, ActionType = fatCallActionCalls another flow.
TvxActionCustomScriptChild TvxScriptItem objectsSee script item settingsActionName = New Custom Script Action, ActionType = fatCustomScriptExecutes custom script steps.

Script Item Settings

SettingValid valuesDefaultImpact
ItemNameStringNew Script ItemDisplay name of script item.
FormulaTStringsEmpty list until CreateFormula copies templateScript/formula text.
CompiledStatusInteger0Compile status: code sets 1 compiled, 2 error, and returns 4/5/6 from checks. Full status display mapping is not defined in this unit.

File Route Item Settings

SettingValid valuesDefaultImpact
FileConFIDSGUID stringEmptyGuidFile connection target for route.
FileConNameString''Display name for route file connection.
ItemNameString inherited from TvxScriptItem<New Route Item>Route item display name.
FormulaTStrings inherited from TvxScriptItemRoute script template assigned in constructorRoute condition/action script.

Inbound transports linked to a flow use TvxTransportLink; see Transport Configuration.

Persistence Notes

  • Flow child actions are component children of TvxActionMan and are persisted through module template streaming.
  • Shell action passwords are encrypted on assignment outside component loading.
  • RESTEndpoint setter prepends / when a value does not start with /.

Unclear Areas

  • Some report action string fields (FileDetails, Attachment, Miscellaneous) are persisted and transferred, but their complete value schema is not fully evident from the inspected source.
  • CompiledStatus integer display semantics are partially inferred from code paths; no complete enum was found.