Error when loading bpmn20.xml

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 10:12 AM
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>
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>
Labels:
- Labels:
-
Archive
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 02:40 AM
Hi LobnaKh,
I do not see your process xml.
Regards
Martin
I do not see your process xml.
Regards
Martin

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 01:47 PM
Hi Martin,
Thank you for your answer, I already resolved the problem.But now a new failure trace appears
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 ??
Thank you for your answer, I already resolved the problem.But now a new failure trace appears

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 ??
bpmn20.txt.zip
1 KB
MyJavaCode.txt.zip
1 KB
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2016 04:41 AM
Hi LobnaKh,
can you prepare complete jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test
Regards
Martin
can you prepare complete jUnit test?
https://forums.activiti.org/content/sticky-how-write-unit-test
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-27-2016 04:54 AM
task2 only exists after task1 is completed, hence why your query for task2 fails.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-30-2016 05:50 AM
Thanks joram
tu m'as sauvé la vie ^^

