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:

  1. Assumptions
  2. Building simple dictionary.
  3. Binding dictionary to widgets.
  4. Generated xml example

Assumptions

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

Building simple dictionary

  1. Open your Aperte Process Editor, and dictionary tab.
  2. Assign dictionary name and language by clicking on buttons.
  3. Select the default language, it is necesarry when dictionary don't contains, in definition, currently using language in liferay.
  4. Fill the dictionary definition part.
  5. Lets get to dictionary elements, click add:
  6. Set name of attribute:
  7. Add one value:
  8. Set it:
  9. As we can see I added 2 attributes: minor and major:

Binding dictionary to widgets.

  1. 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.
  2. In "dictionary provider" write dictionary name(The name you give, in our case: "states" ).
  3. In element provider write "db"
  4. Now it should look like this:

Generated xml example:

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>
⚠️ **GitHub.com Fallback** ⚠️