Table of Contents

Search

  1. Preface
  2. Part 1: Using Process Developer
  3. Part 2: Creating and Modifying Processes
  4. Part 3: Functions, Events, Errors, and Correlation
  5. Part 4: Testing and Deployment
  6. Part 5: Process Central and Process Server (On-Premises)

Process Developer

Process Developer

I18N Functions

I18N Functions

getLocalizedMessage(key, locationHint, locale, [arg1, argN]
Returns the value of a key for an externalized string in a specified locale. The key is from a message properties file, created for Process Central process request forms. Use this function in a REST-based process to send localized data back to the output message of a process request form. In a REST process, the browser locale is available, allowing you to localize returned data.
Parameters:
  • key
    : required string - the key name from the message properties file created in Process Developer. The value for the key is returned by the function.
  • locationHint
    : required string - The catalog location URL for the default properties file. The location is a hint.
  • locale
    : required string - the locale for the message, such as
    en_US
    or
    fr_CA
    or
    fr
    . Empty string for the default locale. The locale is based on the browser locale.
  • arg1
    : optional string or object - Argument to replace text within the key value string
  • argN
    : optional string or object - Same as
    arg1
    , the number of args will vary depending on how many placeholders are in the key value
Example:
abx:getLocalizedMessage('loan.description','project:/myLoanApprovalProject/deploy/messages.properties', 'fr', $loanAmount)
Note that the
arg1
,
argN
object syntax is based on Java
messageformat
.

0 COMMENTS

We’d like to hear from you!