Action
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.
JSON Schema
https://schemas.letsflow.io/v1.0/action
Action
$schema
$schema
URI
The action JSON schema URI that describes the JSON structure of the action. This can also be used for automation and may be used by the UI.
title
title
string
A short title for the action.
description
description
string or function
A long description of the action that is shown when the action has been performed.
actor
actor
string, array of strings, or function
The key of the actor that may perform this action. If more than one actor may perform the action, use an array.
if
if
boolean or function
This field must be true
for the action to be allowed to be executed. Typically used in combination with a <ref>
data function.
response
response
Define the data type of the response data of the action using a JSON schema.
stub
stub
any
The response value that is used when predicting the next states.
update
update
update instruction or array of update instructions
Update instructions are used to update the process variables after executing an action.
Last updated
Was this helpful?