The ActivityClose action is a System Action that explicitly forces a Human Activity instance to be closed, that is, as if it was ended by the end-user in the Taskbox. Use this System action to automatically close a Human Activity task in the Taskbox when you know the end-user has finished the task in your application. Alternatively, you may skip Human Activity instances using the  ActivitySkip action.

If your Human Activity has output parameters and, at least, one of them is mandatory use the Close Human Activity extended action. Otherwise, you will get a runtime error stating that the mandatory parameters are missing.

To close a Human Activity in a screen action proceed as follows:

  1. Edit the web screen that is set as the Destination in the human activity, and add a new input parameter of Activity Identifier type;
  2. In the process flow, edit the human activity properties and below the Destination web screen set the newly added input parameter with the human activity identifier runtime property: ActivityId;
  3. Finally, in the screen action flow, add the ActivityClose System action and set its ActivityId input parameter with the activity identifier input parameter of the web screen.

Input parameters

Activity Identifier Type. Mandatory.

Output parameters

Activity Identifier Type.

Remarks

The On Close activity callback action is executed.

The On Close activity callback action is invoked using a different transaction and session from the transaction and session used when invoking the ActivityClose. Only the Session.UserId is transported.

You may also close Wait activities. However, this implies advanced knowledge about the Platform as it is not trivial to supply the Wait activity identifier to Web Screens and Screen Actions. You have to design an alternative way such as, for example, passing the Wait activity identifier through the database or through Web Services.

If your Wait activity has output parameters and, at least, one of them is mandatory use the Close Wait extended action. Otherwise, you will get a runtime error stating that the mandatory parameters are missing.

See Also

About Processes | Process Activities Callback Actions | Overview of System Actions and Functions