掲示板

Workflow

11年前 に venka reddy によって更新されました。

Workflow

Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
Hi,

I have to define workflow for my portlet upto 5 levels . What are the basic steps to flow? How we can define?
thumbnail
11年前 に Dominique Ebert によって更新されました。

RE: Workflow

Junior Member 投稿: 29 参加年月日: 13/02/01 最新の投稿
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.
11年前 に venka reddy によって更新されました。

RE: Workflow

Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
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
11年前 に Dominique Ebert によって更新されました。

RE: Workflow

Junior Member 投稿: 29 参加年月日: 13/02/01 最新の投稿
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
11年前 に venka reddy によって更新されました。

RE: Workflow

Regular Member 投稿: 231 参加年月日: 11/03/23 最新の投稿
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.