Business Process Management (BPM) tool provides the ability to model and automate business processes in EspoCRM. It's an engine executing business processes described in BPMN 2.0 standard. BPM tool is available in Advanced Pack extension.
Workflows tool is intended for automation of simple business rules, w/o sequential flow items, when there is no need to display the flow graphically.
BPM tool is intended for more complex business flows, where there can be diverging and converging flows, execution delays, user interactions. A flowchart view makes the business process more comprehensible for a human, a log allows to see how the process was held.
The link to process flowcharts is available from administration panel. It also can be added as a tab on the navigation panel.
Flowcharts are intended for business processes modeling. Administrator can create and edit flowcharts. Regular users can only view flowcharts.
Every flowchart has its specific entity type (Target Type field). The flowchart determines execution of future process instances. It comprises flowchart elements and connections between elements.
If process flowchart has the unchecked 'Is Active' field then it won't initiate process instances.
To show details and parameters of a certain flowchart element you need to click on it. In edit mode you will be able to edit parameters.
Processes are available from administration panel. The link also can be added as a tab on the navigation panel.
Process represents business process instance. When it's initiated, it gets the status 'Started'. When process is finished, it gets the status 'Ended'.
The process is executed according to the flowchart. Flowchart of process can't be changed after process is started.
The process obligatorily is related to single target record.
Processes can be started:
The execution of the process is visualized with colors highlighting flow nodes:
A process can be stopped manually by a user who has an 'edit' access to the process. You can do it from the dropdown menu next to the Edit button.
It's possible to manaully reject or interrupt pending and active flow nodes. You can do it from the Log panel on the process detail view in the dropdown menu of a specific flow node. Note, that after rejecting a flow node it's possible that the process will become suspended and won't ever end by itself. You will need either manally stop it or start a flow from any node to continue executing.
It's possible to manually start a flow from any element of an already started process. You need to click on a specific flowchart element on the process detail view and then click the button Start flow from here.
Represented as a solid arrow. Indicates the order in which process elements will be executed.
Conditional events, exclusive and inclusive diverging gateways have conditions that determine the flow of the process.
Through UI there is an ability to check conditions for the following records:
It's also possible to define conditions in Espo-formula language.
Conditions in BPM tool are the same as in Workflow feature. See more details about workflow's conditions.
Formula can be utilized in conditions, script tasks, various task actions.
Available since version 2.4.0.
bpm\targetEntity\attribute(ATTRIBUTE) Fetches an attribute value of a target record.
bpm\createdEntity\attribute(ALIAS_ID, ATTRIBUTE) Fetches an attribute value of a record created within a process. ALIAS_ID can be obtained from the detail view of Task, that has an action creating a record.
bpm\processEntity\attribute(ATTRIBUTE) Fetches an attribute value of a process record.