PADFoundationvariablesinitializationbootstrapfoundationsetupnaming-conventions
Variable Bootstrap
Initializes all standard run variables at the top of a PAD flow. Sets up typed placeholders for run tracking, status flags, counters, and common configuration values so every flow starts from a consistent, predictable state.
0 copies
Section 1: Initialize Run Tracking Variables
Section 2: Create Log List and Generate Run ID
Usage Notes
- Place this pattern at the very top of your Main flow before any business logic executes
strRunIdis generated asRUN-yyyyMMdd-HHmmssto uniquely identify each execution — use it in all log entries and error messageslstLogEntriesis an in-memory list used by the Log Detail Writer pattern to accumulate log lines during the runstrRunStatusstarts asRunningand should be updated toSuccessorFailedby the Run Finalizer at the end of the flownumErrorCountandnumRecordsProcessedare shared counters — increment them in your processing loops and error handlersboolSuccessprovides a simple boolean flag for downstream conditional logic (e.g., whether to send a success or failure email)- All variable names use Hungarian notation prefixes (
str,num,bool,dt,lst) for readability and consistency across FlowLibs patterns
Requirements
- No external dependencies — uses only built-in PAD actions
- DateTime action must be available (included in all PAD versions)
- Downstream patterns (Run Header Initializer, Log Detail Writer, Run Finalizer) expect these exact variable names
- Flow must have write access to create list variables in memory