Activity forms
Activity forms are used in manual activities. They are available both in the Web Client and CM/Track. When the user clicks the activity, a form is opened and the user needs to fill out the form in order to proceed. Activity forms play an important role in the design of the workflow, as they allow to force the user to fill out certain fields in a certain step of the business process.
The forms are managed on the Activity forms page. In the workflow, they can be attached to elements which require user interaction.
Process logic with activity forms
Activity forms can be used for the following workflow elements:
- Manual activities
- Scope activities
- Reopen activities
- Manual jump-out nodes
- Manual end nodes
The process flow is as follows:
- The user clicks the element containing the activity form.
- The visibility script is executed.
-
If the visibility script returns
false:- The activity is executed without displaying the activity form.
-
If the visibility script returns
true:- The initialization script is executed to prefill the activity form.
- The user fills out the activity form. If the form contains fields which are already filled for the current case, the user can either leave the prefilled values or modify them.
- The activity is executed when the user saves the activity form.
If the user cancels the activity form, the activity is not executed and the case returns to the position after the previous activity.
-
Available settings for activity forms
The following settings are available for activity forms:
- Path: Read-only. The path to the activity form within the workflow. Used to reference the activity form in scripts.
- Technical name: Mandatory. Select one of the activity forms defined in on the Activity forms page.
- Required fields: Optional. Select the required fields, which the user needs to fill out to be able to save the form and continue in the process. By default, all the fields are optional. This setting is made directly in the activity form, see Required fields.
- Prefill script: Optional. Provide a script which is executed before the activity form is loaded. The script can be used to set default values in the activity form fields and modify the activity form description.
- Visibility script: Optional. Determines whether the activity form is displayed. If the script returns
true, the activity form is displayed when the user executes the activity. If it returnsfalse, the activity form is not displayed.
Add three dots (...) to the end of the label of activities with activity forms, so that the user knows which activities open activity forms.