Details
-
Bug
-
Status: Closed
-
Resolution: No Longer Reproducible
-
6.1.1 CE GA2
-
ubuntu 11.10, MySQL, Tomcat bundle with liferay-portal-6.1.0-ce-ga1
Description
I have created a new workflow please check into the code below and let me know if anything is missing.
<workflow-definition
xmlns="urn:liferay.com:liferay-workflow_6.1.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:liferay.com:liferay-workflow_6.1.0 http://www.liferay.com/dtd/liferay-workflow-definition_6_1_0.xsd"
>
<name>Approver</name>
<description>An approver can approve a workflow content </description>
<version>1.0</version>
<fork>
<name>created</name>
<transitions>
<transition>
<name>info review</name>
<target>info_review</target>
<default>true</default>
</transition>
<transition>
<name>labs review</name>
<target>labs_review</target>
<default>true</default>
</transition>
</transitions>
</fork>
<task>
<name>info_review</name>
<actions>
<notification>
<name>Review Notification</name>
<template>You have a new submission waiting for your review in the workflow.</template>
<template-language>text</template-language>
<notification-type>email</notification-type>
<recipients>
<user />
</recipients>
<execution-type>onAssignment</execution-type>
</notification>
<notification>
<name>Review Completion Notification</name>
<template>
Your submission has been reviewed and the reviewer has applied the following ${taskComments}.</template>
<template-language>freemarker</template-language>
<notification-type>email</notification-type>
<recipients>
<user />
</recipients>
<execution-type>onExit</execution-type>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>site</role-type>
<name>Info Manager</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
<name>result</name>
<target>join_approve</target>
<default>true</default>
</transition>
</transitions>
</task>
<task>
<name>labs_review</name>
<actions>
<notification>
<name>Review Notification</name>
<template>You have a new submission waiting for your review in the workflow.</template>
<template-language>text</template-language>
<notification-type>email</notification-type>
<recipients>
<user />
</recipients>
<execution-type>onAssignment</execution-type>
</notification>
<notification>
<name>Review Completion Notification</name>
<template>
Your submission has been reviewed and the reviewer has applied the following ${taskComments}.</template>
<template-language>freemarker</template-language>
<notification-type>email</notification-type>
<recipients>
<user />
</recipients>
<execution-type>onExit</execution-type>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>site</role-type>
<name>Labs Manager</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
<name>result</name>
<target>join_approve</target>
<default>true</default>
</transition>
</transitions>
</task>
<join>
<name>join_approve<name>
<actions></actions>
<transitions>
<transition>
<name>result</name>
<target>final_approval</target>
<default>true</default>
</transition>
</transitions>
</join>
<task>
<name>final_approval</name>
<actions></actions>
<assignments></assignments>
<transitions>
<transition>
<name>approve</name>
<target>approved</target>
<default>true</default>
</transition>
</transitions>
</task>
<task>
<name>approved</name>
<actions>
<action>
<name>approve</name>
<script>
<![CDATA[
Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("approved"), workflowContext);
]]>
</script>
<script-language>javascript</script-language>
<execution-type>onEntry</execution-type>
</action>
</actions>
</task>
</workflow-definition>