Skip to main content
Version: 5.1

Manage Workflows

The Integration Control Plane (ICP) is where you monitor and control your durable workflows. In WSO2 Integrator, workflows are built inside an integration. This page covers connecting a workflow to ICP and finding your way around the workflow views.

Connect a workflow runtime​

A durable workflow runs inside your integration. The Integration Control Plane (ICP) can list its executions, hand out its human tasks, and control running instances only after the integration is registered with an ICP server. There are two ways to do that: run the ICP that ships with WSO2 Integrator, which registers the integration for you, or register it yourself on an ICP server you installed.

Use the ICP bundled with WSO2 Integrator​

For development and evaluation, WSO2 Integrator ships its own ICP server and writes the runtime bridge configuration for you, so there is nothing to create in the console by hand.

  1. In WSO2 Integrator, open the overview of your integration and, under Integration Control Plane, check Enable ICP monitoring.
  2. Expand Publish to local ICP and click Start ICP Server.
  3. Run the workflow. It registers with the server as it boots.
Enabling ICP monitoring, expanding Publish to local ICP, and starting the bundled ICP server from the deployment options panelEnabling ICP monitoring, expanding Publish to local ICP, and starting the bundled ICP server from the deployment options panel

Start the ICP server before you run the workflow, so ICP is ready to receive the registration. ICP creates the project and the workflow in the console for you.

For more information, see Connect an Integration to ICP.

Register the integration on an installed ICP​

On an ICP server you installed yourself (Install ICP), create the project and the workflow in the console, then connect a runtime to it.

1. Create a workflow integration​

Setting the integration type to Workflow tells ICP that this integration contains workflows, so the console shows the workflow views for it.

  1. Go to Projects > your project, or click Create Project first.

  2. Click Create Integration and fill in the Create New Integration form:

    FieldValue
    Display NameA readable name, for example Order workflow
    NameThe URL-safe handle derived from the display name. Click the edit icon to override it.
    TechnologyWSO2 Integrator
    Integration Type (optional)Workflow, which orchestrates long-running processes with durable state and human tasks
  3. Click Create.

The Create New Integration form with Technology set to WSO2 Integrator and the Workflow integration type selectedThe Create New Integration form with Technology set to WSO2 Integrator and the Workflow integration type selected

2. Add a runtime​

Add a runtime to the new workflow the same way as for any other integration: generate a secret from Add Runtime on the environment card, add the snippet to the integration's Config.toml with a unique runtime name, enable remote management in Ballerina.toml, import the runtime bridge, and run the workflow.

The full procedure, with the field reference and troubleshooting, is in Connect an Integration to ICP.

info

The secret is displayed only once. Copy it before closing the dialog.

3. Verify​

Once the runtime's heartbeat reaches ICP:

  • Under Runtimes, the runtime appears with status RUNNING.
  • The integration's sidebar carries Workflows and Human Tasks.
  • The environment card lists the integration's workflows under Workflow Definitions, with View Workflows and Start New Workflow beside them.

Open an integration overview​

Once a workflow is registered, the Integration Control Plane provides workflow management views for it. From an integration overview, you can review the available workflows, open their executions, start a workflow, and view the connected runtimes.

Select Overview in the console navigation to open the integration overview.

Integration overview showing workflow definitions, workflow actions, and runtime statusIntegration overview showing workflow definitions, workflow actions, and runtime status

From the overview page you can take three actions:

ActionWhat it does
Select a workflow definitionThe Workflow Definitions dropdown lists the workflows inside the integration. Selecting one scopes the buttons and the counts below to that workflow.
View WorkflowsOpens the Workflow Executions page, filtered to the selected workflow in that environment.
Start New WorkflowOpens the Start Workflow dialog with the selected workflow chosen, where you enter its input values. Shown only to users who can start workflows. See Start a workflow.

Below the selector, the environment card counts the selected workflow's instances by status. Select a count to open the matching list:

StatusDescription
RunningWorkflow instances that are currently executing or waiting. Opens the execution list.
SuspendedWorkflow instances paused by an operator and waiting to resume.
Failed (24h)Workflow instances that failed within the last 24 hours.
Completed (24h)Workflow instances that completed successfully within the last 24 hours.
Pending ReviewsReview activities waiting for a decision: approval gates and failed-activity reviews. Opens Human Tasks.
Pending TasksHuman tasks waiting for anyone, in any role. Opens Human Tasks, which lists only the ones you can act on.

The counts need a workflow-execution permission, and Pending Tasks also needs a human-task permission. See Workflow permissions.

What's next​