Creating process dictionary with process editor - bluesoft-rnd/aperte-workflow-core GitHub Wiki
In this tutorial, you will learn how to build i18n dictionaries, for dynamic lists.
Table of contents:
- Assumptions
- Building simple dictionary.
- Binding dictionary to widgets.
- Generated xml example
We assume that you have previously installed Aperte Workflow 2.0 or higher with Aperte Modeler, and know how to construct simple process described in: Creating user interfaces with step editor and have deployed those bundles:
- base-widgets
- Open your Aperte Process Editor, and dictionary tab.
- Assign dictionary name and language by clicking on buttons.
- Select the default language, it is necesarry when dictionary don't contains, in definition, currently using language in liferay.
- Fill the dictionary definition part.
- Lets get to dictionary elements, click add:
- Set name of attribute:
- Add one value:
- Set it:
- As we can see I added 2 attributes: minor and major:
- Now its time to bind dictionary to element in ProcessDataBlock. First add and select combobox or radioButton, or any kind of element witch needs children.
- In "dictionary provider" write dictionary name(The name you give, in our case: "states" ).
- In element provider write "db"
- Now it should look like this:
Example of generated xml build in dictionary editor:
<process-dictionaries processBpmDefinitionKey="Complaint" overwrite="true" defaultLanguage="pl_PL">
<dict dictionaryId="states" dictionaryName="states" languageCode="pl_PL" description="">
<entry key="Major" description="">
<val value="Ważne"/>
</entry>
<entry key="Minor" description="">
<val value="Drobny"/>
</entry>
</dict>
<dict dictionaryId="states" dictionaryName="states" languageCode="en_EN">
<entry key="Major" description="">
<val value="Major"/>
</entry>
<entry key="Minor" description="">
<val value="Minor"/>
</entry>
</dict>
</process-dictionaries>