Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Excerpt
nameuse_code_editor

Access the Code editor for a custom workflow using the </> icon in the Actions options in the space document management dashboard.

cdmc_documentmanagmentdashboard_customworkflow_actionsoption_codeeditor_extract.png

The workflow template JSON code is edited directly in the editor.

cdmc_code_editor_schema_customworkflow.png

The code editor validates any changes

. Errors are displayed with details of the validation.

and displays an error if there is a JSON code syntax error found.

cdmc_code_editor_syntaxerror.pngImage Added

The code editor does not allow the

application

saving of

code

a template with a validation error.JSON markup for triggers can also be added to a workflow using the workflow builder visual editor rather than the code editor

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.

Workflow builder lets you toggle between the visual and code editors.

When editing a custom workflow in the workflow builder visual editor, the code editor is accessed using the code icon button in the right-hand navigator panel.

Info

Changes applied to the code editor are dynamically updated in the workflow builder visual editor.

Accessing the code editor using this option in the visual editor allows you to toggle between the visual and code editorsThe 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 cloud-compatible JSON code 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.

...