Business Rules for Asynchronous Translations

Asynchronous translations can be initiated via a business rule which can be triggered in different ways, for example, from within a STEP workflow.

This section assumes that users are familiar with business rules. Most of the information about setting up and managing business rules can be found in the Business Rules section of the online help here. However, this topic addresses the one business action that is required to initiate an asynchronous translation in a workflow.

Use the following steps to configure a business action that will start a translation job for asynchronous translation.

Prerequisites

Configuration

  1. Create a business action in System Setup, then right-click and select Edit Business Rule.
  2. In the Business Rule Editor, give the rule an ID and Name, then click Add new Business Action to open the Edit Operation dialog.
  3. In the Edit Operation dialog, select the Start Translation business operation, as shown in the image below.

  1. Supply the Start Translation operation parameters shown below as required:

Important: If a user selects LOVs or Attributes / Attribute Groups from the list of available nodes, the Filter Options (detailed below) will be inactive.

As shown in the following image, to use the Business Function feature for asynchronous translations, two input parameter types are required: List<? extends Node> and List<String>. The Return Type java.lang.String must also be used.

In the dialog, click the Specify radio button to enable the Browse and Search tabs for the Tree window. Select the relevant object type(s), then click the right-facing arrow () to add the object type(s) to the filter. To remove an object type from the filter, select it and click the left-facing arrow ().

Click OK to close the dialog.

  1. Click the Save button to close the Edit Operation dialog and add the operation to the business rule.

Note: Exported translation files can contain either data objects (products, classifications, assets, etc.) or system setup objects (attributes, LOV, etc.); they cannot contain a combination of the two.

Running the Start Translation Business Rule

After setup of the business action is complete, testing or running the business rule starts a background process that is displayed on the BG Processes tab under the Async Job Runner node. The job displays a status of 'suspended' until the translation job is complete.