Hello,
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:
<ns2:userTask implementation="webService" completionQuantity="1"
startQuantity="1" isForCompensation="false"
name="SelfEvaluation"
id="oryx_81B45AAD-8D6E-4876-BC8D-EE3E6FD2C587">
<ns2:humanPerformer resourceRef="employee">
<ns2:resourceAssignmentExpression>
<ns2:formalExpression>krisv</ns2:formalExpression>
</ns2:resourceAssignmentExpression>
</ns2:humanPerformer>
</ns2:userTask>
This is how it looks after the Drools Eclipse plugin modifies it:
<userTask id="oryx_81B45AAD-8D6E-4876-BC8D-EE3E6FD2C587"
name="SelfEvaluation" implementation="humanTaskWebService" >
<ioSpecification>
<inputSet>
</inputSet>
<outputSet>
</outputSet>
</ioSpecification>
</userTask>
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(a)gmail.com> wrote:
From: Han Ming Low <hanming73(a)gmail.com>
Subject: Re: [rules-users] Drools Gunvor and Oryx integration
To: "Rules Users List" <rules-users(a)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
1) goto
http://localhost:8080/designer/editor
2) create your own process
3) use the export button to either show or download a BPMN 2.0 DI XML
4) now you have a bpmn file that can be used by drools and oryx in drools which you can
upload as the Evaluation.bpmn
Hope this helps.
Han Ming
2010/8/6 Patricia Bogoevici <patriciabogoevici(a)yahoo.com>
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(a)codehaus.org> wrote:
From: Mark Proctor <mproctor(a)codehaus.org>
Subject: Re: [rules-users] Drools Gunvor and Oryx integration
To: rules-users(a)lists.jboss.org
Date: Wednesday, July 28, 2010, 11:26 PM
On 29/07/2010 04:05, Han Ming Low wrote:
Hi,
Just for information.
In order for the Oryx integration to work, you need to install the oryx designer available
from
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/designer/I would add that the
.war is provided by the Antoine Toulme, who maintains a branch at github, with the aim of
merging changes back into the main oryx tree, and you can get the latest version there:
http://github.com/atoulme
http://github.com/intalio/process-designer/
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.
Hope this helps.
Han Ming
2010/7/28 Patricia Bogoevici <patriciabogoevici(a)yahoo.com>
Hi all,
I found a preview of the Guvnor /Oryx integration here
(
http://blog.athico.com/2010/06/browser-based-bpmn2-authoring-in-drools.html).
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.
Thanks,
Patricia
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-----Inline Attachment Follows-----
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-----Inline Attachment Follows-----
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users