Foren

Workflow

venka reddy, geändert vor 11 Jahren.

Workflow

Regular Member Beiträge: 231 Beitrittsdatum: 23.03.11 Neueste Beiträge
Hi,

I have to define workflow for my portlet upto 5 levels . What are the basic steps to flow? How we can define?
thumbnail
Dominique Ebert, geändert vor 11 Jahren.

RE: Workflow

Junior Member Beiträge: 29 Beitrittsdatum: 01.02.13 Neueste Beiträge
Hello Venka,

I recently developed a Workflow for my Portlet aswell and I was pretty new to the Workflow Environment of Liferay too.
First of all you should get a Workflow Plugin for your Portal (such as Kaleo which is free). Then it depends on wether you want to define a workflow on the built-in structures of liferay (such as posts, webcontent, users... ) or on your own asset.

Information on how to define a workflow XML: Worklow with Kaleo

For information on applying a workflow on any assets you can look up here

And last bot not least the workflow Documentation

If you got more specific questions feel free to ask eventho I won't be able to answer them all as I'm new to the materia as well.


Edit: forgot this link to a useful blog. It explains how to use custom assets in kaleo.
venka reddy, geändert vor 11 Jahren.

RE: Workflow

Regular Member Beiträge: 231 Beitrittsdatum: 23.03.11 Neueste Beiträge
Hi Dominique Ebert,

Thanks for reply. I have gone through the links you have provided.

As per my understand i have written xml file(double approver) find the attachment.

When i am trying to upload the file it throws an error as please enter valid file.

Is anything wrong with that file.? or content written in xml?
thumbnail
Dominique Ebert, geändert vor 11 Jahren.

RE: Workflow

Junior Member Beiträge: 29 Beitrittsdatum: 01.02.13 Neueste Beiträge
Hi Venka!
I checked your XML-File using my IDE and it marked some mistakes.

1. You are using:

<role-type>Regular</role-type>


Instead you should use

<role-type>regular</role-type>


Seems to be a minor mistake but still my IDE marked it as a mistake.

2. You are defining your fork inside of a state.
As far as I know that is not possible. You should define a state with a transition to the fork. Something like:


<state>
<name>created</name>
<initial>true</initial>
<transitions>
<transition>
<name>phase1</name>
<target>TestingFork</target>
<default>true</default>
</transition>
</transitions>
</state>


And then define your fork outside of a state! Like this:


<fork>
<name>TestingFork</name>
<transitions>
<transition>
<name>review</name>
<target>approval_one</target>
<default>true</default>
</transition>
<transition>
<name>reviewtwo</name>
<target>approval_two</target>
<default>true</default>
</transition>
</transitions>
</fork>


Concerning the use of forks and joins you can also read this thread
venka reddy, geändert vor 11 Jahren.

RE: Workflow

Regular Member Beiträge: 231 Beitrittsdatum: 23.03.11 Neueste Beiträge
Thanks Dominique Ebert,

Thanks for the suggestion. The link you have provided is very useful.

Using that link i have generated XML but still it is not accepting to upload. find the attachment above.