Business Action: Execute JavaScript

In addition to the standard business rule operations, more complex functions can be carried out using JavaScript and the Scripting API. This action enables you to use the same STEP Public Java API methods that are available in the Evaluate JavaScript business condition operation.

Using JavaScript in business rules can include:

Important: Although the same JavaScript binds are available for both actions and conditions, changing STEP data via an Evaluate JavaScript business condition is not supported.

Prerequisites

Before using this action:

Configuration

  1. On the Edit Operation dialog, select the Execute JavaScript option from the dropdown.
  2. For the Binds parameter, create binds needed for the JavaScript code as described in the Adding a Bind topic in the Resource Materials online help here.
  1. For the Messages parameter, create messages needed for the JavaScript code as follows:

  1. For the JavaScript parameter, add the JavaScript code.
  1. Close the dialog using the appropriate method.