BPMN process diagrams are used to model business processes which can be directly executed. Aside from predefined BPMN processes, ad hoc processes can be started whenever they are needed.
Useful for the Following Tasks |
---|
|
Essential information about processes can be found in the user help:
Objective |
---|
The “Legal Services” department may only release contracts that are approved by the head of department. The “Sales” department should be informed about each approved contract. |
To achieve the objective, proceed as follows:
Processes can be started the following way:
Following expressions can be defined in the context of processes.
Note: Using the “Show Overview of app.ducx Expressions” context menu command, you get an overview of all app.ducx expressions defined in the process and, if applicable, in the subprocesses. This facilitates troubleshooting in particular.
The following expressions are available in the context of process elements.
Expression When Completing the Activity
Defines a Fabasoft app.ducx expression that is executed when the activity is completed (see also COOWF@1.1:wfcompleteexpression: new window).
To define the expression, double-click a task and switch to the “Extended” tab.
Example |
---|
// the object on which the process runs and the current activity are object.FSCFOLIO@1.1001:bostate = #FSCFOLIO@1.1001:StateToVerify; // another process will be started based on a // the previously started process can be conditionally terminated in a |
Execute Expression in Background
The Execute Expression in Background activity can be used to execute an expression in background instead of providing the activity to the user (see also FSCDIAGRAMEDITOR@1.1001:wfbackgroundexpression: new window). The process is not continued until the background task has been executed.
To define the expression, double-click a task and select “Execute Expression in Background” as Activity.
Example |
---|
// sends an e-mail to the responsible user coouser.SendBackgroundSecure(object.responsibleuser, null, null, "My Subject", "My Body Text"); |
Loop Condition
Defines a Fabasoft app.ducx expression that is used to evaluate the loop condition of an activity (see also COOWF@1.1:wfwexpression: new window).
To define the expression, select a task and define a Loop Type. Edit the Loop Condition of the task. You can either directly enter a Fabasoft app.ducx expression, or use the search-like editor.
Example |
---|
// the loop continues as long as the object has the wrong state |
Path Condition
Defines a Fabasoft app.ducx expression that is used to evaluate whether a gateway path should be followed (see also COOWF@1.1:pathcondition: new window).
To define the expression, select a sequence flow and edit the Condition property of the sequence flow. You can either directly enter a Fabasoft app.ducx expression, or use the search-like editor.
Example |
---|
// the sequence flow is followed if the process parameter "isprepared" |
Intermediate Conditional Event
Defines a Fabasoft app.ducx expression that stops further processing until the condition is fulfilled (see also FSCDIAGRAMEDITOR@1.1001:eventpropscondition: new window).
To define the expression, select an intermediate conditional event, then edit the Condition property of the intermediate conditional event.
Example |
---|
// the process stops until the property has a value |
The following expressions are available in the context of the process diagram.
Expression for Determining the Visibility
Defines a Fabasoft app.ducx expression that determines whether the process is offered for selection when a process is started (see also COOWF@1.1:wfvisibleexpression: new window).
To define the expression, select the pool and edit the Applicable for property of the pool.
Example |
---|
// the process is only visible for starting if the "Responsible User" |
Expression for Determining the Usability
Defines a Fabasoft app.ducx expression that determines whether the process can be started. This allows, for example, to check preconditions that must be fulfilled before the process can be started (see also COOWF@1.1:wfprecondexpression: new window). If the preconditions are not fulfilled, an error message is shown.
To define the expression, select the pool and edit the Applicable for property of the pool.
Example |
---|
// a customized error is shown if the process is started on an object |
Expression for Initializations
Defines a Fabasoft app.ducx expression that allows defining common initializations and global process parameters (see also COOWF@1.1:wfinitializationexpression: new window).
To define the expression, select the pool and edit the Initializations property of the pool.
Example |
---|
// initially defined process parameters can be read in other process |