Code Editor
...
name | code_editor |
---|
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
A space administrator can edit the workflow template using the code editor.
The code editor can also be used to import other workflows into the current space by copying and pasting the workflow template JSON code for the workflow from another space or site.
...
The workflow template is created using JSON code. Only use
...
the code editor if you are familiar with JSON
...
code
...
.
...
The workflow template JSON code is displayed in the workflow schema box and can be edited directly in the editor.
...
Insert excerpt | ||||
---|---|---|---|---|
|
...
Using the code editor
...
name | use_code_editor |
---|
Access the Code editor for a custom workflow using the </> icon in the Actions options in the space document management dashboard.
...
|
Excerpt | ||||
---|---|---|---|---|
| ||||
A space administrator can edit the workflow template using the code editor. The code editor can also be used to import other workflows into the current space by copying and pasting the workflow template JSON code for the workflow from another space or site. The workflow template is created using JSON code. Only use the code editor if you are familiar with JSON code. The workflow template JSON code is displayed in the workflow schema box and can be edited directly in the editor. The code editor validates any changes and displays an error if there is a JSON code syntax error found. The code editor does not allow the saving of a template with a validation error. When saving the template, the editor also validates any changes against the current workflow. For example, a state in the code for a workflow trigger must be in the workflow and named correctly.the workflow template with:
When editing in the code editor, JSON schema autocomplete options are displayed to help add workflow properties, values, and data |
Accessing the code editor
Insert excerpt | ||||||||
---|---|---|---|---|---|---|---|---|
|
Workflow builder lets you toggle between the visual and code editors
...
using the editor icon buttons in the right-hand navigator panel.
Info |
---|
Changes applied to the codein one editor are dynamically updated in the workflow builder visualother editor. The JSON code for a workflow trigger can be added to a workflow using the workflow builder visual editor rather than the code editor. |
If migrating from server to cloud, each server workflow can be translated to a cloud-compatible JSON code workflow template using the Workflow Translator for Cloud in the workflow builder in the data center and server apps. The cloud-compatible JSON for each workflow can be copied from the translator and pasted into the cloud app code editor, which can be accessed when choosing the Create New Workflow button option in the space document management dashboard.
If you have any queries on importing workflows
...
, please contact support.