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:
ActivityId: Id of the activity instance.
Activity Identifier Type. Mandatory.
NextHumanActivityId: Id of the following Human Activity instance. If, in the process flow, there's another Human Activity following the closed Human Activity and the end-user role allows opening it, then its identifier is returned in this output parameter. This is useful because it allows you to automatically open the next Human Activity when you close the current one. Learn more about the ActivityOpen Action.
Activity Identifier Type.
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.
About Processes | Process Activities Callback Actions | Overview of System Actions and Functions