Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Deepak Poyilil
Assign workflow to different webcontent
March 21, 2011 3:45 AM
Answer

Deepak Poyilil

Rank: New Member

Posts: 20

Join Date: December 23, 2010

Recent Posts

I have multiple web contents and I want to assign different type of workflow for each.How to achieve it.
Thiago Leão Moreira
RE: Assign workflow to different webcontent
March 21, 2011 7:34 AM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1433

Join Date: October 10, 2007

Recent Posts

Hi Deepak,

You can do that using different communities/organizations to have different workflows for the same type of asset (web content).

Community A - Workflow A - Web Content A
Community B - Workflow B - Web Content B
Deepak Poyilil
RE: Assign workflow to different webcontent
March 21, 2011 10:35 PM
Answer

Deepak Poyilil

Rank: New Member

Posts: 20

Join Date: December 23, 2010

Recent Posts

Thanks Thiago for your reply, But my requirement is quiet different.We are behalf of a feasibility study, to migrate a website to liferay which contain mulitple webcontent with different level of workflow and stuck with this issue.Is there any other practical solution
Thiago Leão Moreira
RE: Assign workflow to different webcontent
March 22, 2011 7:54 AM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1433

Join Date: October 10, 2007

Recent Posts

Got it! OOTB Liferay does not provide such solution you gonna have to customize it.
Nguyễn Cường
RE: Assign workflow to different webcontent
May 9, 2012 9:12 PM
Answer

Nguyễn Cường

Rank: New Member

Posts: 11

Join Date: February 5, 2012

Recent Posts

Hi Thiago emoticon
I have a similar question with Deepak's.
In Liferay, is it impossible to combine difference web contents ( web content A & web content B & .... ) within a single workflow definition (workflow X) ?
Thanks in advance!
Jonas Yuan
RE: Assign workflow to different webcontent
May 10, 2012 11:21 AM
Answer

Jonas Yuan

Rank: Liferay Master

Posts: 993

Join Date: April 26, 2007

Recent Posts

OOTB Liferay does not provide such solution, but you can define your custom asset (for example called Wish-List) wich bundle a list of web content (Journal Article) first, and then apply workflow on the custom asset.
Hitoshi Ozawa
RE: Assign workflow to different webcontent
May 10, 2012 3:47 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

You'll have to put a condition in your workflow definition on which path to take depending on the portlet id.
Nguyễn Cường
RE: Assign workflow to different webcontent
May 11, 2012 5:50 PM
Answer

Nguyễn Cường

Rank: New Member

Posts: 11

Join Date: February 5, 2012

Recent Posts

Hi Jonas & Hitoshi.
Thanks for response.
But I am a new comer, I don't understand clearly:
1. How can bundle many portlets into one asset ?
2. How to put a condition in my workflow definition ?
Are there any document or tutorial that I can learn more detail. Would you like suggest for me emoticon
Thanks a lot
Hitoshi Ozawa
RE: Assign workflow to different webcontent
May 15, 2012 2:14 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

2. How to put a condition in my workflow definition ?


A simple approve/reject example is included in the Kaleo documentation:
http://www.liferay.com/documentation/liferay-portal/6.0/administration/-/ai/workflow-with-kal-2


1. How can bundle many portlets into one asset ?


This question has been answered often enough in this forum. If you can't find it, please create a new thread because it's not concerned with the topic of this thread.
Nguyễn Cường
RE: Assign workflow to different webcontent
May 16, 2012 8:57 AM
Answer

Nguyễn Cường

Rank: New Member

Posts: 11

Join Date: February 5, 2012

Recent Posts

Oh, thank Hitoshi again emoticon Sorry, I have read that document but I can't apply in my case.
I am developing a recruitment project.
Assume that I have many portlets ( CV, the result of Review CV round, interview round ...) operating follow by a recruitment process.
I made a workflow definition from the recruitment process.
And I don't know by Kaleo workflow engine in Liferay, is it impossible to apply the recruitment workflow to all of the portlets ?
In my case, how do you think about others workflow engine like jBPM, Activiti or Aperte ?
Hitoshi Ozawa
RE: Assign workflow to different webcontent
May 16, 2012 4:55 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7949

Join Date: March 23, 2010

Recent Posts

We don't use Kaleo because it's not a standard workflow engine across the entire enterprise. We and our customer just want 1 workflow engine to use for all applications to keep learning and maintenance low. Unfortunately, Kaleo is just limited to use in liferay alone.

I am using jBPM and more recently Activiti because they can and is already being used in other applications.

That said, I have to say that Kaleo's integration with liferay is nice. It's may seem like it'll be a good fit for a small organization without any other application requiring workflow, but small organization usually don't require workflow in the first place.

This is another of my best practices: Don't use Kaleo, use a workflow engine that can be used in other applications as well.
Chun Wei Ho
RE: Assign workflow to different webcontent
June 28, 2013 8:30 PM
Answer

Chun Wei Ho

Rank: New Member

Posts: 8

Join Date: December 20, 2011

Recent Posts

If you are using Liferay 6.1 GA2, there is now an application to allow workflow selection by Web Content Structure Type.

So you can have in a single community:
Web Content Structure A - Workflow A
Web Content Structure B - Workflow A

If you are running an older Liferay version, you can click through to the source code of that app, which can be rebuilt verbatim for 6.1 GA1, and backported for 6.0.

I hope this helps with your scenario.