Activity
The Activity node is used to represent a task or action that needs to be performed in a process. It can be used to model any type of activity, such as a user task, service task, or script task.
Structure
Activities are the most common nodes in a process. They represent tasks or actions that need to be performed in a process. Activities can be manual user tasks or automatic scripted tasks. The ProcessFlow engine supports both types of activities. The engine will automatically execute the activity if it is a scripted task. If it is a manual user task, the engine will create a task in the worklist for the user to complete and wait for the task to be completed before continuing with the process. The activity node has one incoming connection and one outgoing connection.
ProcessFlow supports four kinds of manual activities out of the box, which are all user tasks and can be configured inside the Standard Activity Node.
For each of these activities, you can define a title and description that are displayed in the editor and later used for the tasks in the worklist. The activity type determines how the user interacts with the activity and what kind of input is expected. Lastly you can assign a role to the activity. This role is used to determine which users should be able to perform tge activity. Users with the role will automatically see the activity in their worklist when there are process instances waiting for them.
Activity Title
Text Input
The Text Input activity is a simple text input field. It allows the user to enter any text value. The text input can be used to collect information from the user, such as a name, email address, or any other text-based data.
Example Title
This is an example description. Please fill out the textfield.
The user input is saved in the variable defined in the Save input as field and can be used in subsequent nodes. The input is validated against the regex defined in the Input regex field. If the input does not match the regex, an error message is displayed and the user is prompted to enter a valid value.
Single Choice
The Single Choice activity allows the user to select one option from a list of predefined choices. The choices are displayed as radio buttons, and the user can select only one option.
Example Title
This is an example description. Please select one of the options.
Choice 1
Choice 2
The user input is saved in the variable defined in the Save input as field and can be used in subsequent nodes. The choices are defined in the Choices field and must be separated by commas. The user can select only one option from the list.
Multiple Choice
The Multiple Choice activity allows the user to select multiple options from a list of predefined choices. The choices are displayed as checkboxes, and the user can select one or more options.
Example Title
This is an example description. Please select one or more options.
Choice 1
Choice 2
The user input is saved in the variable defined in the Save input as field and can be used in subsequent nodes. The choices are defined in the Choices field and must be separated by commas. The user can select one or more options from the list.
Info
The Info activity is used to display information to the user. It does not require any input from the user other than acknowledging the information. The info activity can be used to display messages, instructions, or any other information that is relevant to the user.
Example Title
This is an example description. Please acknowledge the information below.
This is the actual information text fom the "Info text" field.
More Activities
It is possible to create custom manual or automatic activities or to use custom activities other users have created via the shop. For more information on how to create custom activities, please refer to the following documentation: Custom Activity Node