> #### 5.8.2 Example: Changing a JavaScript in an Active Process instance

> This section provides a simple example of changing a JavaScript in an active process instance. Some of the results of these changes can be seen while the process instance is running. You can also save any changes made to a running process instance. Instructions for doing so are provided in the "Creating a Draft Process Definition from a Private Process Definition (Process Instance)" section.

> The techniques shown in this example also apply to changing JavaActions in an active process instance.

> 1. Started a process instance from the process definition UDAChangeDemo.

> The UDAChangeDemo process instance displays in the Target Area.

> 2. Started an edit session on the UDAChangeDemo process instance.

> 3. Right-clicked the ChangeUDA_a activity and selected Scripts.

> The Scripts pane of the Activity Properties dialog box appeared.

> 4. Changed the Epilogue script to set the UDA named a to Activity a completed because there was a spelling error in the value (a was originally set to Activity a completd).

> Figure 53: Active Process instance with Changed Script

> 5. Clicked OK, then saved the changes just made to the process instance.

> 6. Clicked the Activity tab in the Organizer and acted on the activity (work item) by clicking the Action_2 button.

> 7. Examined UDA a and observe that its value is changed to Activity a completed.

> Note If my script had already run, I would not have been able to see the results of my script change in this instance of the process. I must copy my process changes to a new process definition and create a process instance from that process definition to see the results of my process change. For instructions, see the "Creating a Draft Process Definition from a Private Process Definition (Process Instance)" section.

> Changes to the process instance are saved in a private process definition. A private process definition is created for every process instance. Changes made to a process instance can be saved for future use by copying the private process definition associated with the changed process instance and generating a new draft process definition from it. For instructions, see the "Creating a Draft Process Definition from a Private Process Definition (Process Instance)" section.

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