Skip to content

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 are the basic building blocks for flows.

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.

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.

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 are used to preprocess the data before it is used in the flow.