cancel
Showing results for 
Search instead for 
Did you mean: 

Error when loading bpmn20.xml

lobnakh
Champ in-the-making
Champ in-the-making
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>
5 REPLIES 5

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi LobnaKh,

I do not see your process xml.

Regards
Martin

lobnakh
Champ in-the-making
Champ in-the-making
Hi Martin,
Thank you for your answer, I already resolved the problem.But now a new failure trace appears Smiley Sad when i run my project : NullPointerException
PS : this failure trace appears when i tried to add a second task to my process, a process with one task goes perfectly .How can i resolve it ??

martin_grofcik
Confirmed Champ
Confirmed Champ
Hi LobnaKh,

can you prepare complete jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test

Regards
Martin

jbarrez
Star Contributor
Star Contributor
task2 only exists after task1 is completed, hence why your query for task2 fails.

lobnakh
Champ in-the-making
Champ in-the-making
Thanks joram Smiley Very Happy tu m'as sauvé la vie ^^