Adding a Bind

Binds allow you to reference an object and/or value within the JavaScript code.

  1. Open the Edit Operation dialog for an existing JavaScript business rule.
  2. On the Binds parameter, click the Edit button () to display the Edit Binds dialog.

  1. Click the Add Bind button () and a new bind row is added to the list.

  1. Add the following information:

  1. Click the OK button to save the binds.
  2. Add JavaScript code that includes the variable name for the bind. This is demonstrated below where the 'Node' variable name (which returns the Current Object) is used to get an attribute value on the current object.

  1. Click the Save button to add the binds and JavaScript code to the business rule editor.