Thanks for your answer. I followed the steps provided, but I ran into other issues. Below is a short summary of what I did and issues that I ran into.
I re-created Evaluation.bpmn using the designer (localhost:8080/designer/editor), and I configured the task assignments as well to match the Evaluation.bpmn entirely. I exported the process definition as BPMN 2.0 DI xml file, and imported into Drools Eclipse workflow designer. All worked fine so far.
But, when I updated the process definition using Drools Eclipse designer, the process definition was modified by the plugin, and I lost all the assignment configuration. The modification I made was to rename the process id to something more friendly than the autogenerated name by the designer.
Here is an example for the SelfEvaluation task: This is the structure created by the
designer:
Basically, Drools Eclipse plugin re-wrote all the BPMN 2.0 elements to match to what Drools engine supports, and I lost all my configuration as result of that.
Next step was to try both of these process definitions in Guvnor/Designer. I seems that Guvnor does not load the BPMN definition into the
designer unless its name is Evaluation. I uploaded my 2 Evaluation definitions: the one named EvaluationOryx.bpmn (as I created with the designer), and EvaluationEclipse.bpmn (the modified Evaluation by the Drools Eclipse plugin that removed the assignment configuration), but these 2 were not open using the designer, but instead displayed the option to download or upload a new version. I did try to open the original Evaluation.bpmn that comes in the sample package using the designer, but it opened the designer empty, as there are issues with opening that diagram. However, I tried to use the import button, to re-create it, but import does not work.
To sum up, the main issue I see here, is that there seem to be too many differences for the BPMN 2.0 implementation between Drools engine and the Oryx designer.
Thanks again for all the help, --Patricia
--- On Fri, 8/6/10, Han Ming Low <hanming73@gmail.com>
wrote:
From: Han Ming Low <hanming73@gmail.com> Subject: Re: [rules-users] Drools Gunvor and Oryx integration To: "Rules Users List" <rules-users@lists.jboss.org> Date: Friday, August 6, 2010, 4:59 AM
Hi,
The reason is that the Evaluation.bpmn is 2.0 while the version supported by oryx is 2.0 beta.
Thus, Drools is more advance compare to oryx.
But as for running the bpmn, drools engine can still do it.
In order to have a version that will open up both in drools and oryx, you can try the following
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.