Skip to main content

FunctionCondition

Cron-triggered Python condition. On each scheduled occurrence, the condition runs code with params and proceeds to the reaction actions only when the code returns true.

kindKind (string)required
Constant value: function
languageLanguage (string)required
Constant value: python
codeCode (string)required

Python function body executed by this action.

scheduleSchedule (string)required

Cron expression for evaluation cadence

params object

Bound parameters passed to the function

property name*any

Bound parameters passed to the function

FunctionCondition
{
"kind": "function",
"language": "python",
"code": "string",
"schedule": "string",
"params": {}
}