Workflow Action
Custom action available in Liferay Workflow definitions.
# 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
- 01Ship a paired
oAuthApplicationUserAgent. - 02Implement the handler at
resourcePath; return workflow-compatible payloads.
# required fields
| field | type | description |
|---|---|---|
resourcePathrequired | string | Handler path. |
oAuth2ApplicationExternalReferenceCoderequired | string | Ref code of the paired oAuthApplicationUserAgent. |
# optional fields
| field | type | description |
|---|---|---|
name | string | Display name. |
# example
send-approval:
type: workflowAction
name: Send Approval
resourcePath: /workflow/approval
oAuth2ApplicationExternalReferenceCode: my-oauth-ua# related types
Usually shipped alongside Workflow Action: