Processes contain one
or more tasks that each represent a step or unit of work in the workflow
structure. Grouping elements together into a process can also help
organize and reuse business logic. A subprocess is a process contained
within a parent process that can be used to refactor a larger process
into smaller components. Using subprocesses improves readability of
the workflow definition and promotes consistent reuse of process logic
within the organization.
To create a subprocess,
follow these steps:
-
In the drawing panel,
right-click on the activity that you want to convert to a subprocess
and then select
Create Subprocess.
-
When prompted, select
one of the following options:
-
-
-
Open from workflow repository
-
Select
OK to
save the subprocess definition.
For each option, the
relevant diagram opens. For the
Create New selection,
the diagram is blank and untitled. For the other options, the diagram
is a copy of the designated existing template.
The original parent
process elements remain visible in the process tree.
After an element is
added to the new diagram, the relevant activity becomes denoted as
a process (
) in the process tree. The subprocess data objects,
statuses, policies, and participants are also visible in the process
tree hierarchy.
After adding a subprocess,
the activity symbol in the parent process becomes a stacked icon representing
a set of activities rather than a single step in the process. The
following figure shows an example of subprocess notation: