Action
Last updated
Was this helpful?
Last updated
Was this helpful?
An action is something that can be performed by an actor. An action can trigger a state transition and/or may update the process variables.
https://schemas.letsflow.io/v1.0/action
$schema
URI
The action URI that describes the JSON structure of the action. This can also be used for automation and may be used by the UI.
title
string
A short title for the action.
description
A long description of the action that is shown when the action has been performed.
actor
Defines the actor allowed to perform this action.
If a single actor is permitted, specify their key.
If multiple actors can perform the action, use an array.
To allow all actors in the schema, use an asterisk (*
).
Wildcard actors (keys ending in *
) are also supported.
To assign the action to a service, set the actor to service:SERVICE_NAME
. Note that the asterisk (*
) does not apply to services.
if
This field must be true
for the action to be allowed to be executed. Typically used in combination with a <ref>
data function.
response
Define the data type of the response data of the action using a JSON schema.
stub
any
update
update instruction or array of update instructions
Update instructions are used to update the process variables after executing an action.
string or
string, , or array of strings and/or data functions
boolean or
The response value that is used when .