Top
Systemwalker Runbook Automation Studio User's Guide
Systemwalker

11.2.2 Assigning Task to Performer of Completed Activity

You can assign tasks to users in the General tab of Properties view of the Process Definition or by using Java Actions. If you want to assign tasks to users after the Process Definition has been designed, you can do it by setting a Java Action.

Depending on the business requirements, an assignee of a completed activity might need to also complete another activity. For example, User 1 has completed Activity 1. The same user also needs to complete Activity 2. In this scenario, you can assign the Activity 2 to the User 1.

Note

You can assign a user of a completed activity to another activity only by using Role Java Actions.

Note

You can assign an activity only to the users within the Role to which the activity is currently assigned. If you want to reassign the activity to users from another Role, you must add this user to the current Role.

To assign a task to the performer of a completed activity:

  1. Select an activity in the Process Definition which needs to be assigned to a user.

    Note

    You can either select an Activity Node or a Voting Activity Node or a Compound Activity Node to set the Java Action on it in order to assign it to the performer of a completed activity.

  2. Click Action Set tab of the Properties view.

    Java Action Sets area is displayed in Action Set tab. By default, Role Actions tab is selected in Java Action Sets.

  3. Select Role Actions in the work area and click Add.

    Action Type List dialog is displayed.

  4. Double-click on the Server Actions action type.

  5. Select Assign Task To Performer Of Completed Activity in the Action Type List dialog and click Create.

    Figure 11.9 Assigning task to performer of completed activity

  6. Optional: Enter a name for the action in Action Name field and edit notes about the action in Notes field. By default, a note will be displayed in the Notes field.

  7. From the Activity Name drop-down list, select the activity that has been completed by a user to whom you intend to assign the selected activity.

    Note

    Only Activity Nodes are displayed in the Activity Name drop-down list.

  8. Click OK.

    The activity for which the Java Action has been defined is assigned to the user who has completed the activity selected in the Activity Name drop-down list.

Note

By defining the Role Java Action, the activity is assigned to a particular user. In this case, defining the Role of the user to whom you want to assign the activity is not required. You can assign a Voting Activity and a Compound Activity in the same manner.

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.