You are on page 1of 8

Gnaniyar Zubair

Internal
gnaniyar@gmail.com
1

Internal
Activity Workflow in Liferay

Workflow:

A workflow consists of a sequence of connected steps . A workflow requires one approval before an
asset can be published.
The workflow system in Liferay 6 allows the users to create and publish content / data in a step by
step way. Liferay by default comes with Kaleo Workflow and we can integrate Activity
Workflow which enables JBPM .
Basic Workflow Structure:

Here we can see basic workflow structure which enables the SINGLE APPROVAL flow.
Publish the Article by User
Reviewed by Admin.
If Rejected , Will go to User to Edit
If Approved , Will publish to all the users.
Each workflow definition is defined by a single XML file. The XML file has several parts which
define the workflow.
Gnaniyar Zubair

Internal
gnaniyar@gmail.com
2

Internal
Step I: Install Activity Plugin
1. Download latest version of activity-workflow from this Download page;
http://www.emforge.net/c/document_library/get_file?p_l_id=230996&folderId=453871&n
ame=DLFE-7102.war
2. Put it into Liferay auto-deploy folder: <Liferay-workspace>/deploy.
3. To Verify whether it is installed:
Login into liferay : test@liferay.com / test
Go to Control Panel
[ in the top dockbar click Manage -> Control Panel.]
If you see below portlets in Control Panel , then
Activiti Workflow Engine installed correctly.
"My Workflow Tasks",
My Submissions",
Workflow Configuration",
"Workflow"









Gnaniyar Zubair

Internal
gnaniyar@gmail.com
3

Internal
Step II: Deploy Workflow Definition file
To deploy workflow into Liferay , we need to create the workflow definition file (xml) based on
our portal requirement whether it is Single Approval or Multi Approval,.etc.
Login as Admin tes@liferay.com / test
Go to Manage -> Control Panel -> Workflow;
You need to add Workflow XML file by clicking "Add" link
Clicking Add allows you to enter a title for a New Workflow Definition and upload the
XML file. Once you add a file here, It will be added into System.
(Download sample Single Approver workflow xml file from here :
http://svn.emforge.net/svnroot/activiti-liferay/trunk/activiti-
web/samples/misc/resources/diagrams/SingleApprover.bpmn20.xml )

Gnaniyar Zubair

Internal
gnaniyar@gmail.com
4

Internal
Step III: Workflow Configuration
After you have uploaded Workflow Definitions, you need to Set the Configuration.
Select "Default Configuration" tab from Workflow [ Control Panel Portal ]
Choose for "Web Content" just deployed "Single Approver" process

The workflow is applied out-of-the-box to the following Liferay entities:
1. Page Revision
2. User
3. Blog Entry
4. Web Content
5. Comments
6. Message Boards Message
7. Wiki
8. Document Library Document

Gnaniyar Zubair

Internal
gnaniyar@gmail.com
5

Internal
Step IV: Publish Web Content for Approval
We have set the Single Approver workflow for Liferay Web Content Portlets. Now we can
publish the content through approval. Login as a user.
Add Web Content Portlet on your Liferay Page.


Click Add web content icon will go to New Web content Page.


Gnaniyar Zubair

Internal
gnaniyar@gmail.com
6

Internal
Submit Web Content (article) for publishing by clicking Submit for Publication

Now, you can see Not Approved Message. Article will not be published as you
have enabled workflow for web content.










Gnaniyar Zubair

Internal
gnaniyar@gmail.com
7

Internal
Step V: To Approve the Web Content

Go to "My Workflow Tasks" page ( Control Panel)

Assign to My Roles: You can see the article in the "Assigned to My Roles" list. Through
"Actions" button, you can click "Assign to My Me" link , task will be moved to "Assigned
to Me" list.


Assigned To Me: Click the Task (article) which will open in full page.

Gnaniyar Zubair

Internal
gnaniyar@gmail.com
8

Internal
Approve: Review and Edit the Article if any changes and Approve.

Now, ARTICLE approved through WORKFLOW. Users can see that ARTICLE
now.

You might also like