AnsweredAssumed Answered

Activiti SingleApprover Process

Question asked by cookie-exploit on Jul 23, 2012
Latest reply on Aug 23, 2012 by cookie-exploit
Hello Guy,

I tried to use the process definition of the "Activiti in Liferay"-Guide, but this process definition won't deployed.

source: http://www.emforge.net/web/activiti-liferay/wiki/-/wiki/Main/Model+BPMN+2.0+processes+in+Activiti+Designer


<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:activiti="http://activiti.org/bpmn"
   typeLanguage="http://www.w3.org/2001/XMLSchema" expressionLanguage="http://www.w3.org/1999/XPath"
   targetNamespace="http://www.activiti.org/test">
   <process id="SingleApprover" name="SingleApprover">
      <startEvent id="startevent2" name="Start"></startEvent>
      <userTask id="usertask2" name="Review Asset"
         activiti:candidateGroups="#{liferayGroups.getGroups(execution, &quot;Community Administrator, Community Content Reviewer, Organization Administrator, Organization Content Reviewer, Administrator, Portal Content Reviewer&quot;)}">
         <extensionElements>
            <activiti:formProperty id="outputTransition" type="enum" required="true">
               <activiti:value id="Approve" label="Approve"/>
               <activiti:value id="Reject" label="Reject"/>
            </activiti:formProperty>
         </extensionElements>
      </userTask>
      <serviceTask id="servicetask1" name="Change Status"
         activiti:expression="#{updateStatusHandler.updateStatus(execution, &quot;approved&quot;)}"></serviceTask>
      <sequenceFlow id="flow3" name="" sourceRef="startevent2"
         targetRef="usertask2"></sequenceFlow>
      <sequenceFlow id="flow5" name="" sourceRef="servicetask1"
         targetRef="endevent2"></sequenceFlow>
      <exclusiveGateway id="exclusivegateway1" name="Exclusive Gateway"></exclusiveGateway>
      <sequenceFlow id="flow6" name="" sourceRef="usertask2"
         targetRef="exclusivegateway1"></sequenceFlow>
      <sequenceFlow id="flow7" name="Approve" sourceRef="exclusivegateway1"
         targetRef="servicetask1">
         <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outputTransition == "Approve"}]]></conditionExpression>
      </sequenceFlow>
      <userTask id="usertask3" name="Rework Asset"
         activiti:candidateGroups="User"></userTask>
      <sequenceFlow id="flow8" name="Reject" sourceRef="exclusivegateway1"
         targetRef="usertask3">
         <conditionExpression xsi:type="tFormalExpression"><![CDATA[${outputTransition == "Reject"}]]></conditionExpression>
      </sequenceFlow>
      <sequenceFlow id="flow9" name="" sourceRef="usertask3"
         targetRef="usertask2"></sequenceFlow>
      <endEvent id="endevent2" name="Approved"></endEvent>
   </process>
</definitions>

I hope you can help me with this problem.


Greetz cookie-exploit

Outcomes