Workflow Models and Instances

Workflow models in AEM are the representation and implementation of business processes:

  • Typically they act on pages or assets to achieve a specific result.
  • These pages and/or assets are called the workflow payload.
  • Workflow models consist of a series of steps that perform a specific task.
  • The payload is passed from step to step as the workflow progresses.

When a workflow model is started (executed), a workflow instance is created. A workflow model can be started multiple times, each time generating a distinct workflow instance. For each instance, the steps that the workflow model defines are executed.

CAUTION
The steps performed are those defined by the workflow model at the time the instance is generated. See Developing Workflows for further details.

Workflow instances progress through the following lifecycle:

  1. The workflow model is started and a workflow instance is created and running.

    1. The payload of the workflow instance is identified when the model is started.
    2. The instance is effectively a copy of the model (as at the time of creation).
    3. AEM authors, administrators, or services can start workflow models.
  2. The first step of the workflow model is executed.

  3. The step is completed and the workflow engine uses the model to determine the next step to execute.

  4. The subsequent steps in the workflow model are executed and completed.

  5. When the final step is completed, the workflow instance is completed and therefore archived.

Many useful workflow models are provided with AEM. In addition, the developers in your organization can create custom workflow models, tailored to the specific needs of your business processes.