The Stryke Library provides access to execution data and methods that can be used by the scripts to interact with Stryke. All scripts will have a global instance of the stryke library ready to use. This instance can be accessed via the global variable "stryke". The stryke library variable is read-only, its methods and properties cannot be modified.
All execution paths within a script must be resolved by calling either stryke.resolve or stryke.error. Failing to resolve a path that is executed will result in the script timing out.
The ExecutionData object holds execution data, which can be used by scripts at run time.
For example, the execution context can hold the record in context for the current execution, or the old and new values of a record in a trigger execution.As with all members of the stryke global variable, stryke.data (which holds the ExecutionData instance for each execution) is read-only. If you wish to modify the values within an object held inside stryke.data you need to make a copy of the object first. Example:
A model containing information about the user that is executing a script.