The BPMN Explorer enables users to interact with deployed BPMN applications. It's a Jaggery-based, lightweight web application that you can deploy in a web server.
Note that the BPMN Explorer is a sample web application that is enabled in the Business Process profile by default (for demonstration purposes). It is not recommended for use in a production environment.
If required, you can develop your own web apps to replace the BPMN Explorer or you can use the BPMN REST API .
Basic structure of UI components
Each page of the web app is constructed by a set of Jaggery scripts as shown below.
It sends AdminServices requests to the back-end and retrieves data to render data in the HTML page.
The file structure of the BPMN Explorer is as follows:
|Contains resource files that are used for general purposes such as form generation and encoding.|
|Contains files to support internationalization of the web app.|
|Contains the controllers of the web app.|
|Contains CSS files of the web app. It includes the |
|The HTML file that is displayed when an HTTP 404 error occurs.|
|The HTML file that is displayed when an HTTP 500 error occurs.|
|Contains fonts and bootstrap-related resources.|
|Stores images of the web app.|
|Contains all the models of the web app.|
Contains Jaggery scripts that construct the HTML main body content. Also, this contains a subdirectory named
|Includes all Jaggery configurations.|
The architecture of the BPMN Explorer consists of the following main Model View Controller (MVC) components.
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/model directory contains the following model Jaggery scripts that use the BPMN REST API to retrieve data to display. The API sends AdminServices requests to the back-end and retrieves data to render the HTML page.
|Relates to all the models. It retrieves and updates data that is common to all the pages and all the actions performed by the back-end implementation of the BPMN Explorer.|
|Creates a login failure message if previous logging activity failed.|
|Retrieves all the tasks assigned to the logged-in user.|
|Retrieves details of a specific task using the task ID.|
|Generates the UI form for viewing claimable tasks.|
|Retrieves the list of tasks that the logged-in user can claim.|
|Retrieves information (including attachments) of a selected completed task instance.|
|Lists the completed tasks in the Completed Tasks tab.|
|Retrieves all deployed BPMN processes.|
|Retrieves necessary information (i.e., tasks list, users list, etc.) to generate reports.|
|Retrieves instances based on search queries.|
|Retrieves information on deployed BPMN tasks (e.g., attachments, metadata, etc.)|
|Generates statistical charts for reports.|
Views specify how to render the HTML body of the information retrieved in the associated Model. Views are configured via Jaggery files located in the
Controller Jaggery files are located in the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/controller directory. They are used to connect the Jaggery scripts that generate subparts of each page. When the server receives a request, it maps it to a particular controller via URL mappings as follows.
The following controllers are special purpose controllers that do not provide HTML pages. Instead, they perform actions on behalf of the user.
taskController- performs control actions related to tasks.
authenticator- performs authentication of the user by logging in to the server through the AuthenticationAdmin service.
logout- performs logging out from the back-end server on behalf of the user.
communication- performs control actions related to communication among components.
startProcessController- performs control actions related to the starting process of tasks.
statsController- performs control actions related to statistics.
|URL||Mapping||Corresponding HTML Page|
|Claimable task view|
|Completed task view|
Loading the process diagram
wsRequest.js file loads the BPMN process diagram for the corresponding process instance in the BPMN Explorer. This avoids the need to authenticate again when viewing the process diagram. It contains the following methods.
|Creates a SOAP request to the backend server.|
|Creates the SOAP payload to retrieve the process diagram.|
Deploying on an external server
You can deploy the BPMN Explorer on an external server separate from WSO2 EI. To do this, you need to configure the BPMN Explorer location in the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/config.json file. Also, you need to configure the tenant domain in this file if you use the tenant mode of the server.
Adding internationalization and localization
The following steps show an example of how to localize the BPMN Explorer.
Changing the Web Browser settings
- Set the language of your Web Browser to the preferred one. For example, in Google Chrome, click Settings -> Advanced -> Languages menu.
- Click Language, and then click Add Language.
- Search and select Bulgarian, and click ADD.
You view the Bulgarian language added to the list of lanuguages.
- If you have the
locale_en.jsonfile also in the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/localesdirectory, then click Bulgarian and then click Move to the top to give the highest priority to the Bulgarian language.
Set the encoding type of your Web Browser to UTF-8.
You might not want to do this based on your Web Browser and its version. For example, the Encoding menu has been removed from Google Chrome version 55 and above, and Chrome will do auto-encoding detection now.
Localizing strings in the resource files
The resource files in the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/locales directory store the localization strings defined in
.jag files according to the Web Browser locale (e.g.,
To localize the BPMN Explorer, you need to localize the strings defined in these resource files as follows.
Create a new file by the name
For example, if the language you set as the highest priority in the Browser is Bulgarian, the locale code is '
bg' and the file name should be
Create the key-value pairs in the
locale_bg.jsonfile, and change the values of the key-value pairs to match the language.
You can copy the required key-value pairs from the
locale_en.jsonfile, which is the defualt resource file for Jaggery, and change the values to match the Bulgarian language accordingly.
For example, a section of a sample
locale_bg.jsonfile is shown below.
- Start the Business Process profile of WSO2 EI and open the BPMN Explorer web application in your Browser (
https://<HOST-NAME>:9445/bpmn-explorer), and log in to it. You view the UI of the BPMN Explorer is now changed to Bulgarian.