ScheduledBehavior

ScheduledBehavior
ScheduledBehavior

Configuration used to persist information about scheduled behaviors.

JSON Example
{
    "id": "string",
    "name": "string",
    "configuration": {
        "target": {
            "behaviorRef": {
                "name": "string",
                "id": "string"
            },
            "entityRef": {
                "name": "string",
                "id": "string"
            },
            "invocationArguments": {
                "arguments": {},
                "metadata": {}
            }
        },
        "config": {
            "active": false,
            "runOnce": false,
            "retries": 0,
            "allowedFailures": 0,
            "cronExpression": "30 * * * * * (Executes behavior every 30 seconds)",
            "taskTimeout": 0
        }
    },
    "state": {
        "execution": {
            "taskRef": {
                "name": "string",
                "id": "string"
            }
        },
        "schedule": {
            "inRetryMode": false,
            "retryCounter": 0,
            "allowedFailuresCounter": 0
        }
    }
}
string
id
Optional

The id of the scheduled behavior, used as unique identifier of the schedule.

string
name
Required

The name of the scheduled behavior.

configuration
Optional

Contains target and configuration of behavior to be scheduled.

state
Optional

Contains execution and schedule that represent the current state of the scheduled behavior.