Understanding Action Types¶
Actions define custom operations triggered by object entry events. Liferay Objects provides four action types:
Action Type |
Description |
---|---|
Deliver a payload to a URL. |
|
Execute custom Groovy scripts. |
|
Send email notifications using a predefined template. |
|
Create entries in an active object. |
Important
Groovy script actions are only available for Liferay Experience Cloud Self-Managed and Liferay DXP Self-Hosted.
Webhook Actions¶
Available Liferay 7.4+
Webhook actions deliver a data payload to a set URL. You must enter the target URL. If applicable, enter a secret.
Groovy Script Actions¶
Available Liferay 7.4 U27+ and GA27+
Groovy Script actions execute Groovy scripts. Enter your script into the provided code window. For Liferay 7.4 U33+ and GA33+, Liferay uses the GroovyShell class to validate your Groovy script syntax when you click Save. If the script is invalid, Liferay displays an error message.
Notification Actions¶
Available Liferay 7.4 U32+ and GA32+
Use Notification actions to automate email notifications for Object events. Your instance requires a configured mail server and at least one notification template.
A notification template is required to determine the sender, recipient, and content for each email.
Add an Object Entry Actions¶
Available Liferay 7.4 U33+ and GA33+
Add an Object Entry actions create entries in the specified Object. You must choose an active Object. If the Object includes any required fields, you must set predefined values for the new entries. Enter these values directly or use the expression builder to set values dynamically. You can set values for non-mandatory fields if desired.