> #### 5.4.10 Define scripts

> Note: Scripts execute before actions, so if there is a prologue script and a prologue action on an activity, the prologue script executes first.

> 1. Create or edit a process definition or edit a process instance.

> 2. Right-click a node and select Scripts from the popup menu. For a process script, click the Properties button (with the process definition displayed), then the Script tab.

> 3. Depending on what you selected, you might browse to select a script or type the actual JavaScript into a script field. For details on writing JavaScript, see the PDF file ecma-262.pdf that is included on the Interstage BPM CD in the docs directory.

> Interstage BPM provides an additional set of JavaScript commands for retrieving information from the Server or sending information to it. (See Appendix A).

> 4. Click OK, and then save your work.

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