Doel
Read the current tenant-shared runtime variable value by id.
Elements runtime reference / Runtime store
getVarRead the current tenant-shared runtime variable value by id.
getVar(name, default=None)
Read the current tenant-shared runtime variable value by id.
getvarUse these fields as the Python call arguments or keyword payload for this helper.
{
"name": "temperature_threshold",
"default": 80
}
| Field | Description |
|---|---|
name | Runtime variable id. |
default | Value returned when the variable is missing. |
80
def run():
threshold = float(getVar("temperature_threshold", 80) or 80)
return {"threshold": threshold}