BPM v4 EN
BPM v4 EN
Copyright
The information contained in these documents, including any URLs and other references to
websites on the Internet, is subject to change without prior notice. Any companies, organisations,
products, persons and events used in the examples are purely fictitious. Any similarity to actual
companies, organisations, products, persons and events is coincidental. Any duplication or transfer
of these documents, in whole or in part, irrespective of the intended purpose or means employed,
be they electronic or mechanical, is prohibited without the prior explicit written approval of
Viamedici Software GmbH, 76275 Ettlingen, Germany.
©2021 Viamedici Software GmbH. All rights reserved.
viaCONTENT®, viaPUBLISH®, viaCONNECT®, Viamedici EPIM®, Viamedici ECOM®, Viamedici
ECAT® and Viamedici® are registered trademarks of Viamedici Software GmbH. Adobe,
FrameMaker and InDesign are registered trademarks of Adobe Systems Inc. Macintosh is a
trademark of Apple Inc., registered in the United States of America and other countries. Microsoft,
Windows and Windows NT are trademarks or registered trademarks of Microsoft Corp. in the
United States of America and other countries. Oracle is a registered trademark of Oracle Corp.,
Redwood City, USA. QuarkXPress is a registered trademark of Quark Inc., Denver, USA. Other
product and company names mentioned in this document may be protected company marks or
trademarks of their respective owners.
BPM - 2/32
Typographic Conventions
1 Typographic Conventions
BPM - 3/32
Table of Contents
2 Table of Contents
1 Typographic Conventions...................................................................................................... 3
BPM - 4/32
List of Images
3 List of Images
BPM - 5/32
About this Documentation
BPM - 6 / 32
5 Camunda BPM
Camunda BPM is a workflow management system with which business processes and workflows
can be modelled and documented.
Properties:
• Based on the BPMN 2.0 standard.
• Support of almost all BMPN functions.
• Support of open source editors.
• Based on the same technology stack as Viamedici EPIM.
• Operation via Web Service API.
• Integration of third-party software systems.
• LDAP integration.
BPM - 7/32
5.1 HTML-Snippets
Notes:
• The HTML snippets must be stored in the corresponding directory for tasks.
For example, for loan-app-0.0.1-SNAPSHOT, the form files are saved in \
\<SERVER-NAME>\d$\VMPROGRAMS\camunda-bpm-
tomcat-7.6.0\server\apache-tomcat-8.0.24\webapps\loan-app-0.0.1-
SNAPSHOT\forms.
• The following prototype can be used to quickly validate the HTML snippets
and visualize the possibilities: http://192.168.1.205/viaMEDICI/jsp/js/extjs/ext/
examples/protos/camundaForms/camundaForms.html.
The tasks in Viamedici EPIM are defined using HTML snippets. The basic structure is explained
below:
The HTML element <form> contains the HTML attributes class and id. For the HTML attribute
class the attribute value form-snippet must be used. For the HTML attribute id, the file name of
the HTML snippet must be used as the attribute value:
The first HTML element <div> contains the HTML attribute class. For the HTML attribute class,
the attribute value form-group must be used:
1 <div class="form-group">
The HTML element <label> contains the HTML attributes class and for. For the HTML attribute
class the attribute value form-control must be used. For the HTML attribute for the label name
must be used.
Instead of writing text in the HTML snippets, you can use label keys that can be defined as follows:
For example:
The key-value pairs must be entered in the language-dependent properties files, for example in
the viaResources_eng_ENG_custom.properties file, as follows:
Cam.form-name.label-name = label-value
For example:
Cam.simpledecision.publish = Publish
BPM - 8/32
The second HTML element <div> contains the HTML attribute class. For the HTML attribute
class, the attribute value form-control-body must be used:
1 <div class="form-control-body">
The HTML elements <input> oder <select> contain the following HTML attributes, which must be
defined accordingly:
• class
• id
• cam-variable-name
• cam-variable-type
BPM - 9/32
The complete example:
To add a custom class to an HTML element, use the
customClass="test-custom-class"
.
For a correct display of the image, the image must be placed in the source folder of the current
look (example for GRAPE look: /viaMEDICI/jsp/css/GRAPE/img/...).
To add custom local images use:
To add the Camunda variable custom image use:
BPM - 10/32
5.1.1 Example: User Names and Comments
The following example shows how to use input fields.
Input fields can be defined as required fields:
1 <input required="">
The minimum length and the maximum length of the text can be defined:
1 <input value="Nick">
BPM - 11/32
5.1.2 Example: User Selection
The following example shows different lists in which users can be selected.
The size of the lists can be defined. If the size is not defined, a drop-down list is automatically
used:
The selection of several list points can be allowed and defined as required:
With the HTML attribute boxselect the representation of the user selection can be changed. This
representation is commonly used for adding mail adresses or users with displaying deletable tags.
BPM - 12/32
The whole example:
BPM - 13/32
5.1.3 Examples: Decisions
The following example shows the use of checkboxes:
1 <input type="checkbox">
1 <select type="radio">
By default, checkboxes and radio buttons are sorted one above another. Radio buttons can also be
sorted next to one another:
1 <select horizontal="">
BPM - 14/32
The whole example:
BPM - 15/32
5.1.4 Example: Deadline
The following example shows how a date and time can be selected.
Date specifications can be predefined:
1 <input value="09.05.2017">
Step widths can be defined. A time of 30 minutes is defined for the time:
1 <input increment="30">
BPM - 16/32
5.1.5 Example: Prices and Numbers of Pieces
The following example shows how prices and numbers of pieces can be defined.
Values can be predefined:
1 <input value="50">
The minimum number of pieces and the maximum number of pieces can be defined:
1 <input step="1">
BPM - 17/32
5.2 Create Task
The form key must always be entered as follows: embedded: app: <folder-name>/<file-
name>.html. The embedded:app: prefix is used because it is an embedded HTML form. External
forms can also be used. For <folder-name>, the name of the folder where the HTML snippet is
stored must be used. Instead of <file-name>, the name of the HTML file must be used.
1. Download1 the Camunda Modeler.
2. Unzip the Camunda Modeler.
3. Run camunda-modeler.exe.
1 https://camunda.org/download/modeler/
BPM - 18/32
4. Open a BPMN diagram.
5. Select a task
6. Click Change Type.
BPM - 19/32
7. Select User Task.
8. Click Properties Panel.
9. Click the Forms tab.
10. Enter the form key, for example embedded:app:forms/simple-decision.html.
BPM - 20/32
5.3 Delete Processes
1. Download the file DeploymentPackage.7z from ../Productrelease/tools/BPMN/
Camunda/Task/DeleteDeployments/runnable.
2. Unpack the file DeleteDeployments.war into the Camunda root directory under ..
\server\apache-tomcat-x.x.xx\webapps.
3. Run the file start-cmunda.bat in the Camunda directory to start the server.
4. In the Camunda overview, click Process for delete deployments to create a task
called Do Delete.
BPM - 21/32
5. Click Claim to take over the task.
6. Select a process to delete all versions of the process and all associated files from
the Tomcat server.
7. Select All processes to delete all processes except the process Process for delete
deployments process.
BPM - 22/32
5.4 Email Notifications
You can define two different email notifications:
• An automatic reminder by email after a certain period of time to the user who is
editing the task.
• An automatic escalation by email after a certain period of time to the user
responsible for the process.
Further information on timer events can also be found in the Camunda documentation: https://
docs.camunda.org/manual/7.7/reference/bpmn20/events/timer-events/#defining-a-timer.
BPM - 23/32
5.4.1 Language-dependent Email Notifications
You can use properties files to create language-dependent email notifications. By default, the files
email_de_DE.properties and email_en_GB.properties are available. You can define additional
language-dependent properties files. Each listener uses its own email format and keys and values.
The values from the email. properties file are used if no language-dependent email notifications
can be used. You can add Camunda variables and the listener will replace the Camunda values
accordingly.
The following table shows the keys and example values of the file email_en_GB.properties.
Key Value
BPM - 24/32
5.4.2 Configuration Email Server and LDAP Server
The settings for the email server configuration and LDAP server configuration can be found in the
file viamediciConfig.properties under ../webapps/VMConfig.
The following table shows the keys and example values of the file viamediciConfig.properties
for the email server configuration.
Key Value
host 192.168.100.11
port 25
from [email protected]
The following table shows the keys and example values of the file viamediciConfig.properties
for the LDAP server configuration.
Key Value
LDAPServer 192.168.1.205
LDAPPort 10389
LDAPBaseDN dc=viamedici,dc=com
LDAPBindDN uid=admin,ou=system
LDAPBindPW secret
LDAPSsl 0
LDAPAccountOC person
LDAPAccountUA displayName
LDAPAccountLocale preferredLanguage
2 mailto:[email protected]
BPM - 25/32
The language is adopted from the LDAP settings and used for the selection of language-
dependent properties files. In the base DN, the attribute description preferredLanguage must be a
language shortcut in the format <language>-<country>, for example en-gb.
BPM - 26/32
5.4.3 Defining Reminder by Email
3 https://docs.camunda.org/get-started/bpmn20/project-setup/
BPM - 27/32
10. Add a timer boundary event to the task.
11. Click the General tab, type Duration, and type PT3S.
BPM - 28/32
12. Select a task and add an execution listener.
13. Enter end, enter Java Class and enter
com.viaMEDICI.bpmn.camunda.task.ReminderEmailNotifierListener.
BPM - 29/32
5.4.4 Define Escalation by Email
4 https://docs.camunda.org/get-started/bpmn20/project-setup/
BPM - 30/32
10. Add a timer boundary event to the task.
11. Click the General tab, type Duration, and type PT5S.
BPM - 31/32
12. Select a task and add an execution listener.
13. Enter end, enter Java Class and enter
com.viaMEDICI.bpmn.camunda.task.ReminderEmailNotifierListener.
BPM - 32/32