Skip to main content
Version: 0.27.0

Constants & Placeholders

Built-in constants​

Every scenario has a CONSTANTS dictionary available in expressions — in Create variable, Condition, Assert and Python Code. All values are evaluated once, when the run starts.

KeyValue
FULL_DATEThe run date as a date object — use .strftime(...) to format it.
YEARFour-digit year, e.g. 2026.
MONTHTwo-digit month, e.g. 08.
DAYTwo-digit day of the month.
DAY_OF_WEEKDay of the week as a number, Sunday = 0.
DAY_OF_WEEK_NAMEDay name, e.g. Wednesday.
START_TIMEFull timestamp of when the run started.
IS_WORK_DAYTrue Monday–Friday, False at the weekend.
QUARTERCalendar quarter, 1–4.
WEEK_NUMBERISO week number.

Example:

f"Report_{CONSTANTS['YEAR']}_Q{CONSTANTS['QUARTER']}.xlsx"

AIVIRO_NOTIFICATIONS holds the messages collected by Add Message so far, which lets a Python Code block or a Condition react to what the run has already reported.

tip

IS_WORK_DAY is the neat way to make a daily schedule skip weekends without touching the cron expression: wrap the body in a Condition on CONSTANTS['IS_WORK_DAY'].

Character constants​

The auto-completer's Constants tab also offers two characters that cannot be typed into a value field directly, because a quoted literal stores exactly the characters it shows:

Tab entryInsertsValue
newlinechr(10)A line break.
tabchr(9)A tab character.

A typed \n is stored as a backslash followed by the letter n, not as a line break — see Saving and reopening.


Referencing variables​

In any value field, $ followed by a variable name inserts that variable's value:

$Helios_path
$project_name

This is what the Commands tree and the Diagram view show in their one-line action summaries — Command: $Helios_path, Subject: $project_name.

The $ applies in expressions too — $amount * 1.21, $record['state'] == "OK". The two exceptions are inside the braces of a hand-written f-string (f"Hello {name}", not {$name}) and inside the Python Code action, which is ordinary Python.

For the full rules — text with variables, arithmetic, dates, operators, list handling — see Values, Variables & Expressions.

Secret placeholders​

Reference a Vault entry from any text parameter:

{{SECRET:MY_KEY}}