2012-12-11 4 views
3

Liferay 6.1.1 CE를 사용하고 있습니다. 필자는 xml 파일에 정의를 작성하고 서버에로드하여 다중 레벨 kaleo 워크 플로우를 작성했습니다. 그것은 잘 작동합니다.Liferay kaleo 워크 플로우가 작동하지 않습니다.

내 역할에 문제가 있습니다. 나는 2 명의 역할, 프로젝트 매니저 및 hos를 만들었고이 역할을 두 명의 사용자에게 할당했습니다.

하지만 워크 플로가 작동하지 않습니다. 이 사용자에게 포털 컨텐츠 검토 자 역할을 부여하면 작동합니다. 내 첫 번째 과제는 리뷰이고 두 번째 과제는 권장됩니다. advance.this에서

도움말 me..thanks는

<?xml version="1.0"?> 
<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>leave workflow</name> 
<description>A sample multilevel approver can approve a workflow 
content.</description> 
<version>1</version> 
<state> 
<name>created</name> 
<metadata> 
     <![CDATA[{"xy":[36,51]}]]> 
    </metadata> 
<initial>true</initial> 
<transitions> 
    <transition> 
    <name>review</name> 
    <target>review</target> 
    <default>true</default> 
    </transition> 
</transitions> 
</state> 
    <task> 
    <name>review</name> 
    <metadata> 
     <![CDATA[{"xy":[168,36]}]]> 
    </metadata> 
    <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> 
      <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>regular</role-type> 
       <name>Project Manager</name> 
      </role> 


     </roles> 
    </assignments> 
    <transitions> 
     <transition> 
      <name>approve</name> 
      <target>recommended</target> 
     </transition> 
     <transition> 
      <name>reject</name> 
      <target>update</target> 
      <default>false</default> 
     </transition> 
    </transitions> 
</task> 


<task> 
    <name>recommended</name> 
    <metadata> 
     <![CDATA[{"xy":[168,36]}]]> 
    </metadata> 
    <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> 
      <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>regular</role-type> 
       <name>Hos</name> 
      </role> 


     </roles> 
    </assignments> 
    <transitions> 
     <transition> 
      <name>approve</name> 
      <target>approved</target> 
     </transition> 
     <transition> 
      <name>reject</name> 
      <target>update</target> 
      <default>false</default> 
     </transition> 
    </transitions> 
</task> 


    <task> 
    <name>update</name> 
    <metadata> 
     <![CDATA[{"transitions":{"resubmit":{"bendpoints":[[303,140]]}},"xy":[328,199]}]]> 
    </metadata> 
    <actions> 
     <action> 
      <name>reject</name> 
      <script> 
       <![CDATA[Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus 

(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("denied"), workflowContext); 
        Packages.com.liferay.portal.kernel.workflow.WorkflowStatusManagerUtil.updateStatus 

(Packages.com.liferay.portal.kernel.workflow.WorkflowConstants.toStatus("pending"), workflowContext); 
       ]]> 
      </script> 
      <script-language>javascript</script-language> 
      <execution-type>onAssignment</execution-type> 
     </action> 
     <notification> 
      <name>Creator Modification Notification</name> 
      <template>Your submission was rejected by a reviewer, please modify and resubmit.</template> 
      <template-language>text</template-language> 
      <notification-type>email</notification-type> 
      <execution-type>onAssignment</execution-type> 
     </notification> 
    </actions> 
    <assignments> 
     <user /> 
    </assignments> 
    <transitions> 
     <transition> 
      <name>resubmit</name> 
      <target>review</target> 
     </transition> 
    </transitions> 
</task> 
<state> 
    <name>approved</name> 
    <metadata> 
     <![CDATA[ 
      {"xy":[380,51]} 
     ]]> 
    </metadata> 
    <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> 
</state> 
</workflow-definition> 
+0

안녕하세요 ...을 다운로드 권한을 확인하고 Kaleo 워크 플로를 배포하고 Pradip 밧를 사용 상태 1) Accpet 2) Reject 3) Re-Submit 직접 주시겠습니까? –

답변

1

이 같은 그룹의 모든 사용자를 추가 내 코드입니다. 워크 플로우에 아무런 문제가 없습니다. 그것은 수락 단 2 주 을 제공하고, 내가하지만 세와 같은이 하나의 승인 메커니즘을 제공해야 이제 거부 ​​:

또한

+0

예 ... 당신 말이 맞아요 ... 그룹 정책의 문제입니다. 감사합니다. –

+0

도와주세요 ... –

+0

검토 작업에서 "재 제출"이라는 전환 .create 작업을 추가 할 수 있습니다. 그러면 새 전환 대상이 다음과 같이 설정됩니다. 새 "재 제출"작업. – Sree

관련 문제