You can assign the name of the user completing an activity to a UDA using the Get Performer Java Action. You can use this Java Action as an Epilogue Action of an Activity Node or Voting Activity Node or Compound Activity Node.
Prerequisite:
The process definition has a User Defined Attribute (UDA) to which the performer can be assigned.
To assign the performer to a UDA:
Select the Activity Node or Voting Activity Node or Compound Activity Node to which you want to assign the Java Action, to display the Properties view.
Select the Action Set tab and then the Epilogue Actions tab and click Add. The Action Type List dialog is displayed.
Expand Server Actions and double click Get Performer.
In the Get Performer dialog, type a descriptive name and your notes for the Java Action.
In the Target UDA field, select the UDA to which the performer's name is to be assigned.
Figure 11.14 Assigning the Performer'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.