BPMN Explorer enables is a Jaggery-based lightweight web application, which provides the user interface for the end users to interact with deployed BPMN applications. It's a Jaggery-based, lightweight web application that you can customize and deploy in a web server.
Table of Contents | ||
---|---|---|
|
...
You can deploy the BPMN Explorer in an external server other than WSO2 EI. Herein, you need to configure the WSO2 EI server location in the config.json file located 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.json
file also in the<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/locales
directory, 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.
Tip 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., locale_en.json
).
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
locale_{lolcaleCode}.json
inside the<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/locales
directory.Tip 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 belocale_bg.json
.Create the key-value pairs in the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/locales/
locale_bg.json
file, and change the values of the key-value pairs to match the language.Tip You can copy the required key-value pairs from the
<EI_HOME>/wso2/business-process/repository/deployment/server/jaggeryapps/bpmn-explorer/config/locales/
locale_en.json
file, 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.json
file is shown below.Code Block language text title locale_bg.json { ... "dashboard":"Табло", "my.tasks.title":"Моите задачи", "tasks":"Задачи", "welcome.msg":"Добре дошли в статистическия изглед на BPMN Explorer. Моля, инсталирайте процесите от администраторския изглед и създайте задачи, за да генерирате статистически данни.", "processes":"процеси", "monitoring":"мониторинг", "reports":"доклади", "search":"Търсене", "logout":"излез от профила си", ... }
- 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.