Blogs

List Of Blogs > Integrating Liferay Workflow with Custom Table

Integrating Liferay Workflow with Custom Table

Umer Farooq


Integrating Liferay Workflow with Custom Table

 

Here's a simplified example of how you might programmatically integrate Liferay Workflow with a custom table in Liferay DXP.

 

Steps to Integrate a Custom Table Workflow:

  1. Open services.xml file of your project and then into the entity add uuid=”true”, with your custom columns add one column named status and add two reference tag as shown below.

 

 

  1. Build the service and then add following script into the yourLocalServiceImpl.java file.

 

 

  1. Into the module add package name as handler(com.yourPackageName.handler).

 

 

  1. Create a java class inside handler package named as yourClassNameWorkflowHandler.

 

 

  1. Add following script into your handler class as shown below in the image

 

 

  1. Open your custom portlet.

 

 

  1. Add the following script as shown below into your processAction.

 

And deploy your module.

 

  1. In your portal, open the side bar control panel and then click on,

Configuration->workflow

 

 

  1. You will find your table name with the name you have given in the getType (Local local) method of your handler class.

 

 

Conclusion:

The integration of a custom table's workflow will start from the above Step 7 (once if the  processAction method is triggered then your workflow will start executing with the custom table).

 

Related Posts:

Liferay Kaleo Workflow

A workflow is a series of interconnected steps, task, or actions th...Read More 

 

 



Categories


Archive