Import, export, and set timeouts
Export a step or a processing rule to copy it into another environment or hand it to a teammate. Import it there from the JSON file. You can also give a step a timeout, so a run that hangs is stopped.
Workflow graphs have no export, import, or timeout.
Before you begin
- Role: on the Workflows row of your role, Read to export, Create to import, and Update to set a timeout. See Manage roles and users.
Export a step or rule
- Go to Settings → Workflows. For a processing rule, select the Processing rules tab.
- Select the step or rule.
- Open its ⋮ menu and select one of these:
- Export (JSON) saves the definition as a JSON file. This is the only format you can import.
- Download saves the Python code as a
.pyfile, to read or run on your own machine.
Import from JSON
- Go to Settings → Workflows.
- Start the import:
- For a step, select + next to Steps, then Import JSON.
- For a processing rule, select the Processing rules tab, select New, then Import JSON.
- Select one or more JSON files.
Each file opens as a draft in the list. Nothing is created until you open a draft and select Save. If a file isn't valid JSON, the message An error occurred. Please, refresh and try again appears, and the other files still import.
Set a step timeout
- Go to Settings → Workflows and select a step under Steps.
- Open its ⋮ menu and select Workflow Settings.
- In Timeout (minutes), enter a whole number of 1 or more. Leave it empty to keep the default of 5 minutes per attempt.
- Optionally, clear Count runtime toward the tenant quota for maintenance or synchronization steps that shouldn't use up the monthly workflow minutes.
- Select Save.
The timeout applies to every later run of the step. A run that reaches it is stopped and tried again, up to three attempts in all. Processing rules have no timeout setting.