> #### 6.3.4 Evaluate Script Java Action

> The Evaluate Script Java Action provides you with JavaScript functionality in a Java Action. It allows you to combine other JavaActions with script in a particular JavaAction set and control the order of script execution in relation to the other JavaScripts. Also, multiple scripts can be evaluated in any order using a series of these actions in action sets.

> This section only provides instructions on using the action editor. It provides no information on writing the JavaScript for it. For more information on writing the JavaScript, see "Define scripts".

> To create an Evaluate Script Java Action:

> 1. Follow the instructions in the Assigning Java Actions section. Following these instructions will guide you to the Action List dialog box from which you can select an Action. Double-click Evaluate Script in the Action List dialog box. First, you must expand the Server Actions folder.

> The Evaluate Script action editor appears.

> 2. Type your script in the Script text area or click Browse and navigate to an existing script if you have one already defined that you want to use. You can import the script into the Script text area then edit it.

> Figure 66: The Evaluate Script Action Editor Script Area

> 3. Click the Details tab and enter a name for your Evaluate Script action in the Action Name field. Note that the name setName is displayed as the Action Name in Figure 72.

> Figure 67: The Evaluate Script Action Editor Details Area

> 4. Click OK.

> Your Java Action appears in the Action frame of the properties dialog where you clicked the Add button. In the example, setName is set as the process initialization Java Action. At process initialization, this Java Action executes the JavaScript contained in this Java Action.

> Figure 68: The Action Set pane

> 5. Click OK to close the properties dialog box.

> Your Evaluate Script Java Action is now assigned to the process definition.

Business Process Manager Help-Fujitsu Computer Systems Corporation Interstage Website Voice: (888) 248-9273 Interstage BPM Information