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.
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:
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.
Install the designer.war into JBoss and make sure you can access it from localhost:8080/designer
Then, in the download drools-5.1.0.CR1-install.zip, you should see a Evaluation.bpmn Copy this file into your Guvnor repository through WebDAV into the defaultPackage (note : not any other package)
Once you have done this, you should see the process under the defaultPackage Processes in Guvnor.
And when you double click on it, you should have the bpm loaded in the designer.
A side note is that the designer will only load bpmn file, for obvious reason that the rf format is not supported by oryx.
So, you cannot create a process from Guvnor and load it in the designer because the default type is rf.
I tried Drools Guvnor 5.1.0.CR1, but there is nothing about this integration, one can only view the flow diagram.
Can any of you tell when the integration with Oryx will be available for testing? Someone commented to the blog entry, that it'll be for 5.1 version, but as I said, it is not on 5.1.0.CR1.