Hi all! As workflow for Liferay 6.1 sligtly changed from workflow in Liferay 6, I'll spent some time to provide ways to setup it and use it. My idea here is describe how fast you can setup and apply Liferay workflow to your business. I'll to write series of blogs with cases describing how to apply workflow in publishing, banking or city government.
Before I start hassle with problems you are realy interested in I'll describe how to configure and test basic modules neccessary to achieve the final one. Yes it is technical stuff, but we must "build crane to build a crane".
Setup Email Notification and test it with Web Content Management
- two users + administrator
- email accounts for both users (example is done with gmail accounts - I'm using my private and companys email)
- existing built in Liferay site,
- installed kaleo web plugin
STEP 1 - Create users
STEP 2 - setup email server to enable notifications
- Go to Control Panel
- In left menu go to Server section and click Server Administration
- Choose Mail tab
- Incoming POP Server set to pop.gmail.com and port to 995
- Check Use Secure Network Connection
- Username set to your email address (eg. clark.kent@gmail.com)
- Outgoing SMTP Server set to smtp.gmail.com and port to 465
- Check Use Secure Network Connection
- Username set to your email address (eg. clark.kent@gmail.com)
pop.server.notifications.enabled=true
pop.server.notifications.interval=1
STEP 3 - Kaleo workflow
- Go to Control Panel
- In left menu go to Portal section and click Workflow
- Choose Definitions tab
- Make sure you have listed Single Approver workflow model and if not add it
- Activate Single Approver workflow
- In Control Panels left menu make sure Liferay site is in the scope. In Liferay section click Workflow Configuration
- For Web Content from drop down at the right choose Single Approver (Version 1) and click Save
STEP 4 - setup Web Content Notifications
- Go to Control Panel
- Make sure that in left menu scoped site is Liferay
- In Liferays site section click Web Content
- In the right side of opened page click Options icon and choose Configuration to open Web Content Configuration pop-up
- Email From Tab - fill in Name (Workflow Liferay) and Email address (workflow@liferay.com) that will show up as notification email sender. Click Save.
- Web Content Granted Email Tab - Check Enabled checkbox and depending your needs adopt email template. Be careful with template variables that will be substituted with real values in runtime. Meaning of each variable is explained below template. Click Save
- Web Content Review Email Tab - Check Enabled checkbox and depending your needs adopt your email template with "Article url: [$ARTICLE_URL$]" at the end of the body. Click Save.
STEP 5 - Now we are ready to do some work
- Sign in as Clark Kent
- Go to Control Panel
- Make sure Liferay site is in the scope and click Web Content
- In Web Content tab click Add
- Enter Title enter Body click Submit for Publication
- Go to Control Panel
- Click My Workflow Tasks in the left menu
- Since administrator is not explicitly assigned for Review he will see pending request into "Assigned to My Roles" section.
- From Action menu select Assign To and in pop-up window chose user Loise Lane and write down comment (something like Please do review we are in hurry...)
- Sign in as Loise Lane
- Go to Control Panel
- Click My Workflow Tasks in the left menu
- You will se pending request - from Action menu choose Approve and in pop-up dialog write down comment "Clark you impress me each time" and click Approve

