Is Mobile
Description:
This checks if the current application is running on a mobile device.
The result is true if the app is running on a mobile device.
{
"type": "system",
"action": "is_mobile",
"args": {
"target": "$context.result"
}
}
Is in portrait mode
Description:
Is the device in a portrait rotation, if so the result is true.
{
"type": "system",
"action": "is_portrait",
"args": {
"target": "$context.result"
}
}
Is in landscape mode
Description:
Is the device in landscape rotation, if so the result is true.
{
"type": "system",
"action": "is_landscape",
"args": {
"target": "$context.result"
}
}
Copy to clipboard
Description:
Copy the given value to clipboard.
If you want to stringify the content, for example json, set the optional parameter “stringify” to true. The default is false.
{
"type": "system",
"action": "copy_to_clipboard",
"args": {
"source": "$context.value",
"stringify": true
}
}
Sleep
Description:
Standard sleep function where you define a sleep duration in milliseconds.
{
"type": "system",
"action": "sleep",
"args": {
"duration": 100,
}
}
Pause the process
Description:
Pause the current running process and resume it when you are ready.
This is often used when a process step shows a UI for the user to interact with and continue once the UI is closed.
{
"type": "system",
"action": "pause"
}
Resume the process
Description:
If the process is paused, resume it using the resume action.
{
"type": "system",
"action": "resume"
}
Abort a process
Description:
If something goes wrong and you need to abort the process, throwing a error, use the abort action.
{
"type": "system",
"action": "resume",
"args": {
"error": "oops this needs to stop"
}
}