...
...
...
...
...
...
...
...
...
...
...
...
Table of Contents | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Overview
A Comala Document Management workflow is created using JSON (Javascript Object Notation) code.
There are two places you
...
can create or customize
...
using the workflow code editor
adding a workflow trigger in workflow builder visual editor
...
a custom workflow template by editing the JSON code:
adding a workflow JSON trigger in the visual editor
using the code editor to edit the whole workflow JSON template
Excerpt | ||
---|---|---|
| ||
The JSON code editor includes
|
...
|
...
...
|
Accessing the code editor
Excerpt | ||
---|---|---|
| ||
You can access the code editor for a custom workflow in the space document management dashboard
|
Using the code editor
Anchor | ||||
---|---|---|---|---|
|
Excerpt | ||
---|---|---|
| ||
If you are familiar with JSON |
...
, you can use the Comala Document Management code editor to edit an existing workflow or create your own. |
...
There are also a variety of widely available JSON tools for editing reformatting, validating, and parsing JSON. These can then be copied and pasted into the Workflow schema dialog box in the Comala Document Management code editor.
The code editor can be accessed for the current workflow in the space document management dashboard
using the Use Code Editor option in the Edit workflow dropdown menu
...
directly from the workflow builder visual editor using the code icon button in the right-hand navigator panel.
...
A simpler way to customize a workflow is to add one or JSON triggers to an existing workflow using the trigger editor in workflow builder visual editor.
...
In the Content Expiry Workflow above, an included JSON trigger can be seen in workflow builder. The trigger listens for the expiry of the final state and sends emails to a number of users and sets a screen message.
The trigger listens for a specific workflow event to occur such as a change of state, and if any set conditions are met, will action a change.
A trigger can be used to action custom email notifications, set an on-screen message notification, transition the workflow to a different state, assign a reviewer, approve or reject an approval
...
Color coding is used to distinguish property names, values, and different data types in the workflow template JSON code:
Data is represented within data or name pairs of curly braces { } and square brackets [ ]. Highlight one of the braces or brackets, and the paired brace or bracket is highlighted. When editing in the code editor, adding
JSON schema is then displayed for the selected workflow object to help add further properties and values. For example, the value options for the event for a workflow trigger to listen for.
|
A workflow trigger has multiple parameters; a JSON schema is displayed to help you add these and complete the property definition.
...
The code editor validates any changes and displays a syntax error if a JSON code error is found.
...
The code editor does not allow you to save a template with a validation error, and when you toggle into the visual editor, the JSON template with a code error is not saved.
Examples
Child pages (Children Display) | ||
---|---|---|
|
Related pages
...
...