Script Kinds
You can attach additional functionalities to scripts by specializing them into specific script kinds.
From the Settings of a script, the Metadata tab lets you define the following script kinds:
Actions
Section titled “Actions”Actions are the basic building blocks for flows.
Trigger scripts
Section titled “Trigger scripts”These are used as the first step in flows, most commonly with an internal state and a schedule to watch for changes on an external system, and compare it to the previously saved state. If there are changes, it triggers the rest of the flow, i.e. subsequent scripts.
Approval scripts
Section titled “Approval scripts”Suspend a flow until it’s approved. An approval script interacts with the Orvanta API using any of the Orvanta clients to retrieve a secret approval URL and resume/cancel endpoints. The most common scenario for approval scripts is to send an external notification with a URL that can be used to resume or cancel a flow.
Error handlers
Section titled “Error handlers”Handle errors for flows after all retry attempts have been exhausted. If it does not return an exception itself, the flow is considered to be “recovered” and will have a success status. So in most cases, you will have to rethrow an error to have it be listed as a failed flow.
Preprocessors
Section titled “Preprocessors”Preprocessors are used to preprocess the data before it is used in the flow.