You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 12 Next »
Workflow is a tool that allows configuring complex processes across the solution. The Workflow Editor displays processes visually as a set of boxes and arrows representing transitions, conditions, and stages. Set the sequence of steps and stages your business needs by using various types of activities: utilities, conditions, approvals, subflow, and timer.
Workflow – a logical sequence of activities describing a process.
Activity – an action presented in the workflow.
Exit – an action outcome determining which transition needs to be activated.
Transitions – paths between the activities.
Workflow is a complex tool consisting of the following parts:
- Properties: general information and settings of a workflow such as its name, table on the basis of which the workflow runs, conditions to start executing the process, description of the workflow.
- Versions: workflow versions stored in the Workflow Versions table.
- Activities: a set of operations arranged in a particular order and performed by the workflow (for example, changing the value of a certain field).
- Activity Exits: conditions to be met to proceed to a particular transition.
- Transitions: the connection between the activity exit and the next activity.
- Contexts: information about every time a workflow was executed, stored in the Workflow Context table.
Workflow life cycle
The workflow starts running when conditions specified in the parameters are met. Usually, starting conditions are record insertion, field update, field with a particular value. For example, the Incident table has a workflow executed every time a new record is created.
After the starting event, the workflow executes activities one after another according to the defined transitions. As a rule, activities have more than one transition – the path taken depends on the activity outcome.
Within an activity, workflow performs the following steps:
- Operation defined by the activity is executed.
- Activity conditions are checked.
- Depending on the previous step's outcome, the workflow transitions to the defined activity.
Workflow states
Generally, the workflow can be in one of two states:
- Checked Out – for editing new or existing workflows.
- Published – for the finalized workflows ready to be run; finalized but unpublished workflows are inactive and non-functional.
Checked Out
When you start working on your workflow (whether a new or existing one), it is in the Checked Out state. Other users cannot edit this workflow along with you since the workflow is already checked out. Also, the workflow is inactive when checked out; it needs to be published to enable it.
To enable editing a published workflow, perform the following steps:
- Open the workflow you need in the Workflow Editor.
- Navigate to the burger menu
.
- Click Check Out.
Published
When the workflow configuration is completed, and the process is ready to run, you need to change the workflow state to Published. After that, users are not able to edit the workflow (until it is back to the Checked Out state).
To publish a workflow, perform the following steps:
- Open the workflow you need in the Workflow Editor.
- Navigate to the hamburger menu
.
- Click Publish.
How it works
- You are creating a new workflow (version 1, for example). It has the Checked Out state equal to 'true' and the Published state equal to 'false'.
- You have finished configuring this workflow and decided to publish it. You click Publish, and your workflow now has the Checked Out state equal to 'false' and the Published state equal to 'true'.
- In a while, you need to modify it, and you make a checkout, this has happened:
- A copy of the existing workflow has been created.
- The existing workflow was not affected.
- The copy created has the Checked Out state equal to 'true' and the Published state equal to 'false'.
- You have finished editing this copy and published it (it is now version 2), this has happened:
- The previous workflow (version 1) moves to workflow archive (now it has the Checked Out and Published states – both equal to 'false').
- The workflow you were working on (version 2) is now the active one.
Workflow Contexts
The process of execution of workflows is reflected in the table of Contexts. To view the list of active contexts, navigate to Workflow → Active Contexts. To view the list of all contexts, navigate to Workflow → All Contexts.
By viewing the contexts in the Workflow Context [wf_context] table you can obtain a more complete information on the execution of workflow blocks. The context form reflects the start time (Started at), start initiator (Started by), related record of the workflow version (Workflow Version) and a reference to the target record (Related Record):
The context form also features the Workflow Executing Activity related list. The order of execution of the context activities is reflected in the Execution Order column:
Workflow Viewer
The workflow execution context can be viewed in the Workflow Viewer. To open a context in the Workflow Viewer, open the form of the record for which the context was created and click Show Workflow:
The following window appears:
The status of the workflow and its start and end date and time are displayed in the bottom right corner.
Use the mousewheel or zoom controls in the bottom right corner to navigate around the workflow.
Double-click a block or an exit to open a side-panel with their properties and info.
Workflow Versions
Sometimes you may need to modify a workflow but leave the old versions accessible to complete business processes that already use this workflow. In such cases you need to create a new version of the workflow.
To create a new workflow version, complete the steps below:
- Navigate to Workflow → Workflow Versions.
- Click New and fill in the fields.
- Click Save or Save and Exit to apply changes.
Workflow version form fields
Field | Mandatory | Description |
---|---|---|
Name | N | Workflow version name. |
Description | N | Workflow version description. |
Workflow | Y | Specify the workflow, the version is created for. |
Table | N | Specify the table, the workflow version applies to. |
Published | N | Select this checkbox to publish the workflow version. |
Checked Out | N | Select this checkbox to make the workflow version checked out. |
Checked Out by | N | Specify a user to check out the workflow version. |
Create a workflow
Role required: admin, wf_admin.
To create a workflow, complete the steps below:
- Navigate to Workflow → Workflow Editor.
- Click New.
- Fill in the form fields and click Create.
A workflow is created and ready to configure. You can add activities, transitions, exits, define exit conditions, and so on.
To define additional workflow properties, complete the steps below.
- In the burger menu, select Properties.
- Fill in the fields.
- Click Save to apply changes.
- Add activities to configure the workflow process.
Workflow form fields
Field | Mandatory | Description |
---|---|---|
Name | Y | Workflow name. |
Active | N | Select this checkbox to make the workflow active or inactive. When a workflow is created, this checkbox is selected by default. |
Description | N | A brief process description. |
Table | Y | Choose the table to apply the workflow. |
Condition Type | N | Specify the type of event that triggers the workflow. Available options:
SimpleWorkflow.start new SimpleWorkflow('159491114038814558').start(current); // workflowID |
Condition | N | Specify a trigger condition for this workflow. Use the Condition Builder to build complex AND/OR filters. |
- No labels