Fórumok
apply work flow on cretin roles and assign it to cretin rolles
hadi mans, módosítva 12 év-val korábban
apply work flow on cretin roles and assign it to cretin rolles
New Member Bejegyzések: 7 Csatlakozás dátuma: 2010.10.28. Legújabb bejegyzések
Hello
i have created tow roles
content add-edit
content-approve
i want to modify the single approve work flow on web content to just be applied on content add-edit except all the other roles on portal such administrator to power user ..etc
so they can publish there web content normally without the save for submission
and content-approve the only role that can approve the published web content and to be informed via email
my recent work flow script :
i have created tow roles
content add-edit
content-approve
i want to modify the single approve work flow on web content to just be applied on content add-edit except all the other roles on portal such administrator to power user ..etc
so they can publish there web content normally without the save for submission
and content-approve the only role that can approve the published web content and to be informed via email
my recent work flow script :
<!--?xml version="1.0" encoding="UTF-8"?-->
<workflow-definition xmlns="urn:liferay.com:liferay-workflow_6.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemalocation="urn:liferay.com:liferay-workflow_6.0.0 http://www.liferay.com/dtd/liferay-workflow-definition_6_0_0.xsd">
<name>Organisation Content Approval</name>
<description>A single approver can approve a workflow content of Organisation </description>
<version>1</version>
<state>
<name>created</name>
<initial>true</initial>
<transitions>
<transition>
<name>review</name>
<target>review</target>
<default>true</default>
</transition>
</transitions>
</state>
<task>
<name>update</name>
<actions>
<notification>
<name>Creator Modification Notification</name>
<execution-type>onAssignment</execution-type>
<template>Your submission was rejected by a reviewer, please modify and resubmit.</template>
<template-language>text</template-language>
<notification-type>email</notification-type>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>organization</role-type>
<name>content add-edit</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
<name>resubmit</name>
<target>review</target>
<default>true</default>
</transition>
</transitions>
</task>
<task>
<name>review</name>
<actions>
<notification>
<name>Review Notification</name>
<execution-type>onAssignment</execution-type>
<template>You have a new submission waiting for your review in the workflow.</template>
<template-language>text</template-language>
<notification-type>email</notification-type>
</notification>
</actions>
<assignments>
<roles>
<role>
<role-type>organization</role-type>
<name>content-approve</name>
</role>
</roles>
</assignments>
<transitions>
<transition>
<name>approve</name>
<target>approved</target>
<default>true</default>
</transition>
<transition>
<name>reject</name>
<target>update</target>
<default>false</default>
</transition>
</transitions>
</task>
<state>
<name>approved</name>
<actions>
<action>
<name>approve</name>
<execution-type>onEntry</execution-type>
<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>
</action>
</actions>
</state>
</workflow-definition>