Doel
Persist a tenant-shared runtime variable immediately during Element execution.
Elements runtime reference / Runtime store
setVarPersist a tenant-shared runtime variable immediately during Element execution.
setVar(name, value=None)
Persist a tenant-shared runtime variable immediately during Element execution.
setvarUse these fields as the Python call arguments or keyword payload for this helper.
{
"name": "sync_cursor",
"value": 12345
}
| Field | Description |
|---|---|
name | Runtime variable id. |
value | JSON-serializable value to store. |
12345
def run(params):
cursor = int(getVar("sync_cursor", 0) or 0)
next_cursor = cursor + int(params.get("rows", 0))
setVar("sync_cursor", next_cursor)
return {"cursor": next_cursor}