A collapsed sub-process is a sub-process whose internal activities are hidden from the process diagram.
Although the internal workflow is not visible, the sub-process executes as part of the parent process and shares the same process variables and execution context. It represents a group of activities as a single element.
The sub-process requires its own start and end events and can have boundary events attached to it.
The collapsed sub-process is displayed as a thin rectangle with a plus icon:
Use a collapsed sub-process when:
- Internal process details do not need to be visible.
- The process diagram has become difficult to read.
- Business users need a simplified process view.
- The sub-process represents a well-defined business capability.
For example, a customer onboarding workflow contains multiple validation and setup activities. Displaying all activities may make the process difficult to read. A collapsed sub-process can hide the implementation details while keeping the overall workflow understandable.