Default inputs
A default input is a value Unstract Flow passes to a connector action whenever the spec leaves an optional argument out, such as a page range or a timeout. A required argument, such as the folder path of list_files, always comes from the workflow, so a default for it has no effect; name that value in the spec. A default belongs to one connector instance and one action, so it applies to every call of that action on that instance, and it stays in place when you prepare the workflow again. A saved default applies to the next call of every run of the workflow, including runs a deployment starts and runs already in progress. Key Mappings on a 3270 step is the exception, described below.
Set a default
- Prepare the workflow, then open the Diagram tab, then Flowchart, and find a step that calls the action. Steps that use Flow's built-in file and table actions take no defaults.
- Select the gear on the step's node. Its tooltip reads Set default inputs, or Edit default inputs (configured) when the action already has defaults on that instance. Every step that calls that action on that instance shows the same tooltip: the defaults belong to the action on the instance.
- In Defaults for [action] on [instance], for example Defaults for list_files on Google Drive :2, fill in the arguments you want.
- Select Save and close. An action with no inputs has nothing to save here.
While the workflow has an active deployment, Defaults for [action] on [instance] shows a note above the form that the change reaches the deployment's runs. Saving works as usual.
A value the spec states always wins. The dialog puts it this way: a default applies "for any argument the workflow text does not set".
On a website or terminal step, a default for the session's description or its steps is ignored. On a 3270 step, a default for its Key Mappings is built into the steps when you prepare, and each version keeps the one it was prepared with, so a change leaves deployments and runs already going as they were. Runs from the editor use the last prepared version too, so the gear dialog says: "Key Mappings take effect when you prepare the workflow again." To use the change in a deployment, prepare the workflow again, tag the new version, and move the deployment to that tag. A version prepared by an earlier release of Flow reads the current default instead. Change the default and that version's steps that don't state their own key mappings fail until you prepare again and move the deployment to the new version. The description in the spec is the one Flow prepares and runs. Automate websites and terminals covers those steps.
Save as Preset... in the same dialog stores the current values under a name. Load Preset fills the form from one: pick it and select Use. Presets are yours, kept per organization; saving one takes a role that can edit workflows.
Rate limit for an instance
The same dialog sets Rate Limit for [instance] (calls/hour). It caps each action of that instance per hour, counted across every run of the workflow. Left empty, the instance takes the first of these that is set: the connector's own published limit, the workflow's limit from the Settings tab, or 1,800 calls per hour. The field's placeholder shows the number it inherits.
Loops and review steps
A loop has no gear: how a loop handles failures and parallel work comes from the spec. A review step's gear opens its review settings, described in Human review.