Show Table of Contents
11.3. Activities
An activity is an action performed inside a business process. Activities are classified based on the type of tasks they do:
- Task: Use this activity type in your business process to implement a single task which can not be further broken into subtasks.
- Subprocess: Use this activity type in your business process when you have a group of tasks to be processed in a sequential order in order to achieve a single result.
Each activity has one incoming and one outgoing connection.
11.3.1. Tasks
A task is an action that is executed inside a business process. Tasks can be of the following types:
Table 11.2. Types of Tasks in the Object Library
| Task | Icon | Description |
|---|---|---|
| User |
| Use the User task activity type in your business process when you require a human actor to execute your task.
|
| Send |
| Use the Send task to send a message.
|
| Receive |
| Use the Receive task in your process when your process is relying on a specific message to continue.
|
| Manual |
| Use the Manual task when you require a task to be executed by a human actor that need not be managed by your process.
|
| Service |
| Use the Service task in your business process for specifying the tasks use a service (such as a web service) that must execute outside the process engine.
|
| Business Rule |
| Use the Business Rule task when you want a set of rules to be executed as a task in your business process flow.
|
| Script |
| Use the Script task in your business process when you want a script to be executed within the task.
|
| None |
| A None task type is an abstract undefined task type. |
11.3.2. Subprocesses
A subprocess is a process within another process. When a parent process calls a child process (subprocess), the child process executes in a sequential manner and once complete, the execution control then transfers to the main parent process. Subprocess can be of the following types:
Table 11.3. Types of Subprocesses in the Object Library
| Subprocess | Icon | Description |
|---|---|---|
| Reusable |
| Use the Reusable subprocess to invoke another process from the parent process.
|
| Multiple Instances |
| Use the Multiple Instances subprocess when you want to execute the contained subprocess elements multiple number of times.
|
| Embedded |
| Use the Embedded subprocess if you want a decomposable activity inside your process flow that encapsulates a part of your main process.
|
| Ad-Hoc |
| Use an Ad-Hoc subprocess when you want to execute activities inside your process, for which the execution order is irrelevant. An Ad-Hoc subprocess is a group of activities that have no required sequence relationships.
|
| Event |
| Use the Event subprocess in your process flow when you want to handle events that occur within the boundary of a subprocess.
|














Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.