掲示板
Using condition in Kaleo workflow designer
11年前 に Bart Simpson によって更新されました。
Using condition in Kaleo workflow designer
Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
Newbie question on workflow designer:
I am trying to understand how the "condition" works in Kaleo workflow in respect to the EE Studio designer plugin.
I created a condition and in the script wrote
and another branch from condition to another task "review".
Despite of using the return value as "unreview" it goes to review, but I expect it to go to "unreview" task instead.
What am I missing what am I doing wrong
I am trying to understand how the "condition" works in Kaleo workflow in respect to the EE Studio designer plugin.
I created a condition and in the script wrote
returnValue = "unreview"
and connected another task with a branch naming it "unreview"and another branch from condition to another task "review".
Despite of using the return value as "unreview" it goes to review, but I expect it to go to "unreview" task instead.
What am I missing what am I doing wrong
11年前 に Vishal Panchal によって更新されました。
RE: Using condition in Kaleo workflow designer
Expert 投稿: 289 参加年月日: 12/05/20 最新の投稿Bart Simpson:
Newbie question on workflow designer:
I am trying to understand how the "condition" works in Kaleo workflow in respect to the EE Studio designer plugin.
I created a condition and in the script wroteand connected another task with a branch naming it "unreview"returnValue = "unreview"
and another branch from condition to another task "review".
Despite of using the return value as "unreview" it goes to review, but I expect it to go to "unreview" task instead.
What am I missing what am I doing wrong
Hi Bart,
Kindly verify your xml definition file is it with the following things?
(1)
<condition>
<name>determine-something</name>
<script>
<![CDATA[
if(something to test){
returnValue = "unreview";
}else{
returnValue = "review";
}
]]>
</script>
<script-language>groovy</script-language>
<transitions>
<transition>
<name>unreview</name>
<target>unreview</target>
<default>false</default>
</transition>
<transition>
<name>review</name>
<target>review</target>
<default>false</default>
</transition>
</transitions>
</condition>
(2)
<!-- Task for unreview -->
<task>
<name>unreview</name>
<actions>
<notification>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>regular</role-type>
<name>unreviewer</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
</transition>
<transition>
<name>reject</name>
<target>update</target>
<default>false</default>
</transition>
</transitions>
</task>
(3)
<!-- Task for review -->
<task>
<name>review</name>
<actions>
<notification>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>regular</role-type>
<name>reviewer</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
</transition>
<transition>
<name>reject</name>
<target>update</target>
<default>false</default>
</transition>
</transitions>
</task>
Thanks & Regards,
Vishal R. Panchal
11年前 に Bart Simpson によって更新されました。
RE: Using condition in Kaleo workflow designer
Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
I have this in my xml
still it doesn't work
<script><![CDATA[returnValue = "unreview"]]></script>
still it doesn't work
11年前 に Vishal Panchal によって更新されました。
RE: Using condition in Kaleo workflow designer
Expert 投稿: 289 参加年月日: 12/05/20 最新の投稿Bart Simpson:
I have this in my xml<script><![CDATA[returnValue = "unreview"]]></script>
still it doesn't work
As you mentioned in your first post.
and another branch from condition to another task "review".
can you please share what it there in your xml for the same..?
Thanks&Regards,
Vishal R. Panchal
11年前 に Bart Simpson によって更新されました。
RE: Using condition in Kaleo workflow designer
Liferay Master 投稿: 522 参加年月日: 11/08/29 最新の投稿
I just attached it on my previous post
11年前 に Vishal Panchal によって更新されました。
RE: Using condition in Kaleo workflow designer
Expert 投稿: 289 参加年月日: 12/05/20 最新の投稿Bart Simpson:
I just attached it on my previous post
Hey Bart,
I checked your xml file.
1) you are forwarding to the task as per condition
2) both review/unreview finally points to approved
So that you thought even in condition you are returning unreview it goes to review.
It is going in unreview only but finally both review/unreview finally points to approved so there the confusion occurred.
Thanks & Regards,
Vishal R. Panchal
10年前 に vivek rathore によって更新されました。
RE: Using condition in Kaleo workflow designer
New Member 投稿: 11 参加年月日: 13/11/06 最新の投稿
but in my definition it is throwing exception at return value, Do I need to import any class??