Hi, I followed the steps provided but the Evaluation.bpmn file does not load correctly into the Oryx editor. Looking into the logs, it seems like Oryx complains because the BPMN schema namespace is different from what it expects. While Drools is using this: http://www.omg.org/spec/BPMN/20100524, Oryx editor is expecting this: http://schema.omg.org/spec/BPMN/2.0. Stack trace snippet: ERROR [STDERR] javax.xml.bind.UnmarshalException: unexpected element (uri:"http://www.omg.org/spec/BPMN/20100524/MODEL", local:"definitions"). Expected elements are <{http://schema.omg.org/spec/BPMN/2.0}activityResource>,<{http://bpmndi.org}activityShape>,<{http://schema.omg.org/spec/BPMN/2.0}adHocSubProcess> …… I changed the BPMN 2.0 schema for Evaluation.bpmn to match the one the designer expects, and imported the file manually into the designer (localhost:8080/designer/editor), to check if that fixed the problem. And it seems that fixed it, although, now I got a different error: 2010-08-06 02:29:55,482 ERROR [STDERR] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 2010-08-06 02:29:55,482 ERROR [STDERR] at java.util.ArrayList.RangeCheck(ArrayList.java:547) 2010-08-06 02:29:55,482 ERROR [STDERR] at java.util.ArrayList.get(ArrayList.java:322) 2010-08-06 02:29:55,482 ERROR [STDERR] at org.oryxeditor.server.BPMN2_0Importer.getJsonFromBpmn20Xml(BPMN2_0Importer.java:99) 2010-08-06 02:29:55,482 ERROR [STDERR] at org.oryxeditor.server.BPMN2_0Importer.doPost(BPMN2_0Importer.java:66) …… What I changed to Evaluation.bpmn was the root element which is now: <definitions id="Definition" targetNamespace="http://www.jboss.org/drools" typeLanguage="http://www.java.com/javaTypes" expressionLanguage="http://www.mvel.org/2.0" xmlns="http://schema.omg.org/spec/BPMN/2.0" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance" xs:schemaLocation="http://schema.omg.org/spec/BPMN/2.0 BPMN20.xsd" xmlns:g="http://www.jboss.org/drools/flow/gpd" xmlns:tns="http://www.jboss.org/drools"> I will download the source code for the designer, and try to debug this issue, but I wonder if any of you know what this problem is about and can advise on what to do next. Thanks, Patricia --- On Wed, 7/28/10, Mark Proctor <mproctor@codehaus.org> wrote:
|