Using formatting with language localization resources in a heritage coach (deprecated)
You can apply formatting to a heritage coach control that is bound to a localization resource as described in this procedure.
About this task
time, which contains two locales: Default Locale and Sweden.
The value of Default Locale is ##:##:##, which is the standard format used to
represent time in the majority of countries. The value of the Sweden locale is
##.##.##, which is the standard format for Swedish time.Procedure
- Open a service that includes several variables, and click the Variables tab.
- Click the Link Localization button and select the localization resource (in this example, Localized Formats) that you want to link to the service variables as a resource bundle.
-
Create a heritage coach that includes an input text control named Time. Then bind the
formatting of the control to the localization resource bundle and localization key by typing
<#= tw.resource.LocalizedFormats.time #>into the Format field. - Save your changes.
- Optional: You can test the binding. To test the binding, change the interface language to svenska in IBM® Process Portal preferences. Then run the BPD that contains the service and run the task fromProcess Portal. When a you enter a 6-digit value such as
182400into the Time field, the value should be formatted to18.24.00, which conforms to the formatting that you specified.