Top
Systemwalker Runbook Automation Studio User's Guide
Systemwalker

11.2.6 Evaluating a JavaScript

You can use JavaScript functionality within a Java Action. The Evaluate Script Java Action allows you to combine other Java Actions with JavaScript in an Action Set and control the order of JavaScript execution in relation to the other JavaScripts. Also, multiple JavaScripts can be evaluated in any order using a series of these actions in Action Sets.

This section only provides instructions on assigning the Java Action. It provides no information on writing the JavaScript for it. For more information on JavaScript, refer to appendix Appendix A Supported JavaScript Functions.

To evaluate a JavaScript:

  1. Click the empty space in the Process Definition editor or select the node to which you want to assign the Java Action, to display the Properties view for the process definition or the node respectively.

  2. Select the Action Set tab. Click Add corresponding to the position where you want to add the Java Action. The Action Type List dialog is displayed.

  3. Expand Server Actions and double click Evaluate Script.

  4. Type your JavaScript in the text area.

    Figure 11.13 Evaluating a JavaScript

  5. On the Details tab, type a descriptive name and your notes for the Java Action.

  6. Click OK.

Note

It is not necessary to compensate this action using a compensation action, because changes made by this action are in Systemwalker Runbook Automation only and they will be rolled back after the process instance goes into error state. For information on compensation actions, refer to section 11.1.7 Dealing With Errors in Java Actions.