AnsweredAssumed Answered

Error when loading bpmn20.xml

Question asked by lobnakh on Jun 23, 2016
Latest reply on Jun 30, 2016 by lobnakh
Hello Everbody,
Im a beginner with activiti, i tried to create a simple process, but there is an error that i didn't come to solve it. Can You help me to surpass it.
The error is : org.activiti.bpmn.exceptions.XMLException: cvc-id.1 : Aucune liaison ID/IDREF pour l'IDREF 'LastFlow'.
Here my xml code BPMN20.xml :

<?xml version="1.0" encoding="UTF-8"?>
<definitions
        xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
        xmlns:activiti="http://activiti.org/bpmn"
        targetNamespace="Examples">

    <process id="simpleProcess" name="The One Task Process">
        <startEvent id="theStart" /> 
        <sequenceFlow id="flow1" sourceRef="theStart" targetRef="theTask" />
        <userTask id="theTask" name="my task" />
        <sequenceFlow id="flow2" sourceRef="theTask" targetRef="flow2" />
         <userTask id="thetask2" name="task 2"/>
        <sequenceFlow id="flow3" sourceRef="thetask2" targetRef="flow3"/>
        <userTask id="thetask3" name="task 3"/>
        <sequenceFlow id="flow4" sourceRef="LastFlow" targetRef="theEnd"/>  
         <endEvent id="theEnd" />
    </process>
</definitions>

Outcomes