About Workflows

Learn about workflows, including workflow and activity states, participants, and the workflow console.

The workflow component in APEX allows APEX developers to design, implement, and automate business processes, in whole or part, during which documents, information, records, or tasks are passed from one participant to another for action according to a set of procedural rules.

The structure of a workflow is determined by the Workflow Definition , which is established by an application developer. Every time a workflow starts, APEX creates a Workflow Instance , which is a specific runtime from a workflow definition. To learn about designing workflows for an application, see About the Workflow Designer in Oracle APEX App Builder User’s Guide.

A workflow instance may include Workflow Variables and Workflow Parameters. Workflow Parameters are inputs provided when starting a new workflow instance. For example, in a laptop requisition workflow, parameters could include:

Workflow Variables are additional data that may be used by one or more workflow activities. For example, if one activity in a workflow generates a laptop order, the order ID from that activity can be saved as a workflow variable. The order ID could then be used by a later activity in the workflow instance, such as an activity that sends a confirmation email.

Workflow parameters are read-only. Workflow variables can be updated by a workflow administrator.

Workflows may involve Tasks. For more information on tasks, see Using Tasks.

About Workflow States

A workflow instance can be active, suspended, completed, terminated, or faulted.

Workflow States

A workflow state is the current state of a workflow instance. There are five separate workflow states, and a workflow may only be in one state at a time:

About Activity States

An activity in a workflow instance can be active, waiting, faulted, or completed.

Activity States - An activity state is the current state of an activity in a workflow instance. There are five separate activity states, and an activity may only be in one state at a time:

Tip: If an activity in a branch of a parallel flow activity transitions to the faulted state, the parallel flow activity also transitions to faulted. Retrying the workflow retries all faulted activities in all branches of the parallel flow activity. It may be necessary to retry the workflow multiple times until all faults in all branches are fixed.

About Workflow Participants

Workflow participants can take action on workflows, including starting or terminating workflow, retrying faulted workflows, and updating workflow variables.

Workflow Participants are APEX users with operational privileges over a workflow.

There are three types of workflow participants:

About the Workflow Console, Workflow Details, and Workflow Dashboard

The workflow console is a summary of workflows for an application. Select a workflow from the workflow console to view details about that specific workflow. If configured, use the workflow dashboard to view analytics for workflows.

Every application that uses workflows has two pages used for monitoring those workflows: the Workflow Console page, which summarizes workflows in the current application, and the Workflow Details page, which contains details about a specific workflow instance. Applications may also have a Workflow Dashboard page that shows analytics for workflows.

The Workflow Console Page

The Workflow Console allows you to see a summary of your workflows. Although the name and exact configuration of a workflow console is specific to the application you’re using, there are different report contexts available:

The Workflow Details Page

Clicking on a workflow in the workflow console page opens the Workflow Details page. The workflow details page shows:

Depending on the workflow context and your role, you can perform certain operations on active workflows:

Description of the illustration workflow_diagram_example.png

The Workflow Dashboard Page

The workflow dashboard page provides charts to monitor the progress of workflow instances and compare the performance of activities and workflows. The workflow dashboard includes the following tabs:

Description of the illustration workflow_dashboard_example.png