cx-composer--for=liferay

Workflow Action

Custom action available in Liferay Workflow definitions.

type: workflowAction·Microservice·Liferay docs →

# description

Registers an HTTP handler that Liferay's Kaleo workflow engine can call as a step in a workflow definition. Workflow authors reference your action from their definitions the same way they reference built-in actions. Use Workflow Action when a workflow step needs to trigger a side effect Liferay doesn't ship out of the box — sending SMS, calling a payment API, updating a CRM, running an approval external to Liferay. Like every microservice extension, it runs out-of-process behind a paired `oAuthApplicationUserAgent` so long-running work doesn't hold up Liferay's workflow engine.

Externalize business logic — actions, validation, workflow, notifications.

# when to use

  • You need workflow-driven side effects (emails, integrations, approvals) that Liferay doesn't ship out of the box.
  • You are building a workflow marketplace product.

# how to use

  1. 01Ship a paired oAuthApplicationUserAgent.
  2. 02Implement the handler at resourcePath; return workflow-compatible payloads.

# required fields

fieldtypedescription
resourcePathrequiredstringHandler path.
oAuth2ApplicationExternalReferenceCoderequiredstringRef code of the paired oAuthApplicationUserAgent.

# optional fields

fieldtypedescription
namestringDisplay name.

# example

client-extension.yaml
send-approval:
    type: workflowAction
    name: Send Approval
    resourcePath: /workflow/approval
    oAuth2ApplicationExternalReferenceCode: my-oauth-ua

# related types

Usually shipped alongside Workflow Action:

# more in microservice