Skillable Studio allows execution of scripts against a cloud subscription, as well as executing scripts that do not have a target. Scripts are used in Automated Activities and Life Cycle Actions.
This script execution environment is running Node.js 14.16.1.
Interacting with Skillable Studio
Your scripts can communicate success or failure to Skillable Studio in one of two ways.
Return a Boolean value
Use setActivityResult
You can also report the result as a score %...
Send a Notification to the User
Notifications appear as real-time toast notification in the lab client.
Lab Variables
Lab variables are always string name/value pairs. Variable values are scoped to the lab instances and become available within the lab instructions as well as subsequent script executions.
You can "receive" a variable in your script...
##Dealing with Async
It's very common to work with asynchronous JavaScript.
Use setActivityResult
If you choose to use setActivityResult, the last time it is called within your script will determine the outcome.
Use a Promise
You can use a promise and return the result to Skillable Studio by resolving the promise.