...
- Create a table storing settings for the newly created activity;
- Create an activity type that will store parameters and bear the functionality of your newly created activity;
- Create activity exit types that will specify the exit condition from this activity.
Creating a table
...
In fact, every activity stores its settings in a table child for the Workflow Activity (wf_activity) table.
...
Tip | ||||||
---|---|---|---|---|---|---|
When filling in the Name and Title field, it is recommended to keep them synchronized semantically, like this:
When naming your activity, please keep in mind the following naming rule: your activity system name should be added after the wf_activity constant. In the example above, it looks like 'wf_activity_run_script' |
Creating an activity type
...
Activity type is an entity intended for the categorization of the newly created or updated activities. It allows defining properties and behaviour behavior for an activity.
To create an activity type, please complete the steps below:
- Navigate to {your_instance_url}/list/wf_activity_typeWorkflow → Activity Type
- Create New, fill in the fields, and click Save.
Activity type form fields
Field | Description | ||
---|---|---|---|
Name | Specify the activity type name (for example, "Begin"). | ||
Description | Specify the activity type description. | ||
Active | Select this checkbox to activate or deactivate this activity type.
| ||
Script | In this field, you can specify a JS-script implementing the logic of the activity. You are free to use SimpleOne Server-Side API there. | ||
Image | Specify the favicon that will be displayed in the workflow editor for this activity. | ||
Activity type category | Specify a category for the activity creating. | ||
Activity table | This is a reference field where you can specify a table for this activity type created before. |
Create an activity type exit
To create an activity type exit, please complete the steps below:
...