You can set the value of a UDA using the UDA Assignment Java Action. You can set it, for example, to the value of another UDA.
Prerequisite:
You have added User Defined Attributes (UDAs) to the process definition.
To set the value of a UDA:
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.
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.
Expand Server Actions and double click UDA Assignment.
In the Action Editor - UDA Assignment dialog, type a descriptive name and your notes for the Java Action.
From the Target UDA list, select the UDA whose value you want to set.
Specify a JavaScript expression for the value in the Value field.
There are different ways to set the value. You can type a constant (that is, the value itself), set it to the value of another UDA, or build a complex JavaScript expression. For details, refer to section 11.14 Defining JavaScript Expressions.
In the following example, the value of the UDA Input is assigned to the UDA Output.
Figure 11.20 Setting a UDA
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.