Using the Get Process Initiator Java Action, you can assign the name of the user who starts the process instance to a UDA.
Prerequisite:
The process definition has a User Defined Attribute (UDA) to which the process applicant can be assigned.
To assign the process initiator to 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 Get Process Initiator.
In the Get Process Initiator dialog, type a descriptive name and your notes for the Java Action.
In the Target UDA field, select the UDA to which the initiator's name is to be assigned.
Figure 11.15 Assigning the Initiator 's Name to 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 .