LocaleCapture widget - bluesoft-rnd/aperte-workflow-core GitHub Wiki

This widget allows to capture current system locale and store it inside specific process instance attribute. The locale is obtained as a simple String where language is always lower case, and country is always upper case. If the language is missing, the string will begin with an underbar e.g. "ru", "de_DE", "_GB".

This widget is part of Base Widgets plugin.

Attributes

Attribute name Type Required Default value Description
localeKey String False java.util.Locale Name of the process instance attribute where obtained value object should be stored

Permissions

This widget does not support permissions.

Examples

This example demonstrates usage of LocaleCapture widget. Due to its role, this widget renders as an empty area and is not visible to the user.

<config.ProcessStateWidget className="LocaleCapture" priority="10">
    <attributes>
        <config.ProcessStateWidgetAttribute name="localeKey" value="locale" />
    </attributes>
</config.ProcessStateWidget>
⚠️ **GitHub.com Fallback** ⚠️