The activity that a node has to handle is defined using an . These can have various types, they can be used to specify the communication details for plugins or integrations.
Why it is important? Actions can be used to include in a , and also to send various data to be displayed in the front-end applications.
The FLOWX.AI platform handles the following types of actions:
You can only define and add actions on the following types of nodes: send message task, task and user task.
Business rules can be attached to a node by using actions with action rules on them. These can be specified using DMN rules, MVEL expressions, or scripts written in JavaScript, Python, or Groovy.
More information about supported scripting languages, here.
Each button on the user interface corresponds to a manual user action.
Actions can be:
Some actions can be set to run immediately after another action is performed. In order to achieve this, we need to set the parentName
field on the action to be used as a callback. The callback actions can be performed when a certain message is received by the Engine. In order for this to happen the callbacksForAction
header needs to be set on the message. Callback actions can also be configured to run immediately after the parent action is run, by setting the autoRunChildren
flag to true for the parent action.
Action params are used to set extra values for actions. They are stored as key/value pairs. For example, we can set a topic to use for sending outgoing messages or the message format to be sent to the front-end.
The decision that needs to be defined on an exclusive gateway is defined using a node rule. Similar to action rules, these can be set using DMN or MVEL.
There are two possible kinds of actions:
Actions have a few characteristics that need to be set:
For more information, check the following section:
There are two ways actions could be linked together, so certain actions can be set to run immediately after others.
A parent action has a flag autoRunChildren
, set to false
by default. When this flag is set to true
, the child actions (the ones defined as mandatory and automatic) will be run immediately after the execution of the parent action is finalized.
Child actions can be marked as callbacks to be run after a reply from an external system is received. They will need to be set when defining the interaction with the external system (the Kafka send action).
For example, a callback function might be used to handle a user’s interaction with a web page, such as upload a file. When the user performs the action, the callback function is executed, allowing the web application to respond appropriately.
Child actions can be marked as callbacks to be run after a reply from an external system is received. They will need to be set when defining the interaction with the external system (the Kafka send action).
Callback actions are added in the Advanced configuration tab, in the header param - callbacksForAction
.
callbacksForAction
- the value of this key is a string that specifies a callback action associated with the “upload_file” destination ID. This is part of an event-driven system (Kafka send action) where this callback will be called once the “upload_file” action is completed.A useful feature for actions is having the ability to set them to run at a future time. Actions can be configured to be run after a period of time, starting from the moment the token triggered them to be executed.
The activity that a node has to handle is defined using an . These can have various types, they can be used to specify the communication details for plugins or integrations.
Why it is important? Actions can be used to include in a , and also to send various data to be displayed in the front-end applications.
The FLOWX.AI platform handles the following types of actions:
You can only define and add actions on the following types of nodes: send message task, task and user task.
Business rules can be attached to a node by using actions with action rules on them. These can be specified using DMN rules, MVEL expressions, or scripts written in JavaScript, Python, or Groovy.
More information about supported scripting languages, here.
Each button on the user interface corresponds to a manual user action.
Actions can be:
Some actions can be set to run immediately after another action is performed. In order to achieve this, we need to set the parentName
field on the action to be used as a callback. The callback actions can be performed when a certain message is received by the Engine. In order for this to happen the callbacksForAction
header needs to be set on the message. Callback actions can also be configured to run immediately after the parent action is run, by setting the autoRunChildren
flag to true for the parent action.
Action params are used to set extra values for actions. They are stored as key/value pairs. For example, we can set a topic to use for sending outgoing messages or the message format to be sent to the front-end.
The decision that needs to be defined on an exclusive gateway is defined using a node rule. Similar to action rules, these can be set using DMN or MVEL.
There are two possible kinds of actions:
Actions have a few characteristics that need to be set:
For more information, check the following section:
There are two ways actions could be linked together, so certain actions can be set to run immediately after others.
A parent action has a flag autoRunChildren
, set to false
by default. When this flag is set to true
, the child actions (the ones defined as mandatory and automatic) will be run immediately after the execution of the parent action is finalized.
Child actions can be marked as callbacks to be run after a reply from an external system is received. They will need to be set when defining the interaction with the external system (the Kafka send action).
For example, a callback function might be used to handle a user’s interaction with a web page, such as upload a file. When the user performs the action, the callback function is executed, allowing the web application to respond appropriately.
Child actions can be marked as callbacks to be run after a reply from an external system is received. They will need to be set when defining the interaction with the external system (the Kafka send action).
Callback actions are added in the Advanced configuration tab, in the header param - callbacksForAction
.
callbacksForAction
- the value of this key is a string that specifies a callback action associated with the “upload_file” destination ID. This is part of an event-driven system (Kafka send action) where this callback will be called once the “upload_file” action is completed.A useful feature for actions is having the ability to set them to run at a future time. Actions can be configured to be run after a period of time, starting from the moment the token triggered them to be executed.