Completing Activities

You can complete an already invoked activity in the Activities Execution view of the Workflow Execution perspective.

Completing an Activity

The Workflow Execution Perspective calls the completion method as defined in the application definition. To complete an activity, click the Complete icon Complete in the toolbar of the general worklist view.

After the activity is completed, the Process Portal tries to find a succeeding activity of the same process instance the currently logged-in user is allowed to work on. If such an activity is found, it is presented to the user immediately. If not, the standard view is returned.

Bulk Completion of Activities

You can complete more than one activity from the worklist, if the property flag Allow Bulk Completion from Worklists is enabled for these activities. For details on this property, please refer to chapter Specifying Activity Properties of the Business Process Modeling Handbook.

Note that the bulk completion feature is provided only for activities created in the Modeling perspective and activities created with checklist panels in the Model & Go! perspective.

To perform a bulk completion of several activities, select the activities in the table and click the Complete All button in the toolbar. This button is enabled if all requirements for bulk completion of the selected activities are fulfilled.

Bulk Complete Activities
Figure: Bulk Complete Activities

When the Complete All button is clicked in the toolbar and not all selected rows are homogeneous, a confirmation dialog opens to confirm if you want to bulk complete all the selected activities.

Bulk Complete Activities
Figure: Confirmation - Bulk Complete Activities

Note that the above message is also displayed if the Complete All button is clicked and all rows are homogeneous but at least one row has unsaved changes.

If the bulk completion has been performed successfully, a notification message appears with the number of completed activities.

Successful Bulk Completion
Figure: Successful Bulk Completion Notification

If the Complete All option is selected but one or more activities could not be completed, an error message is displayed.

Bulk Complete Activities
Figure: Error - Bulk Complete Activities

Modifying Data during Bulk Completion

In case you have data entries in the Data column of the activities you like to complete, you can modify it during the bulk completion. The modified values persist in the database on completion of the activities. The Data column contains entries in case an activity has the property Allow Bulk Completion from Worklists enabled and contains out data mappings for primitive data. For details about the Data column, please refer to section Data of chapter Viewing Worklist.

Modifying Data
Figure: Modifying Data during bulk completion

If the Complete All button is clicked in the toolbar and some of the selected rows have unsaved changes in the Data column, a confirmation dialog opens to confirm if you want to bulk complete all the selected activities.

Bulk Complete Activities
Figure: Confirmation - Bulk Complete Activities

In case you select the option to complete all selected activities and the data of these activities are homogeneous and no Data column of any of these activities has unsaved changes, a dialog opens where you can set data values for the data mappings of all selected activities at once.

Bulk Completion Data Dialog
Figure: Dialog for entering data during bulk completion

The default value is shown for each primitive data. The description of the activity is displayed and the table header shows the activity name. Enter the data values and click Complete to apply the changes.

Changing Data
Figure: Changing data for all selected activities
during bulk completion

If the checklist panel field is marked as Required then at the time of Bulk Completion, a validation is performed. The following error message is displayed in case of no value or wrong value in mandatory fields. Also, the Complete button is disabled in this case.

Validation
Figure: Bulk Completion - Validation

Also, mandatory fields in the Data column of the Worklist and in the Bulk Complete dialog are marked with asterisk. If the checklist panel field is marked as Required and if not filled or contains invalid data then those fields are highlighted with red color border.


Figure: Bulk Completion - Validation