cancel
Showing results for 
Search instead for 
Did you mean: 

Activiti SingleApprover Process

cookie-exploit
Champ in-the-making
Champ in-the-making
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+De...

<?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
2 REPLIES 2

trademak
Star Contributor
Star Contributor
Hi,

Can you also include the error message?
I was able to deploy this process model, but I first had to remove some white spaces.

Best regards,

cookie-exploit
Champ in-the-making
Champ in-the-making
It was a problem with activiti 5.9 and the spring deployment.

Now, after i updated to activiti 5.10, it works perfekt! Smiley Happy