<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br><br>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.<br><br>Stack trace snippet:<br>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><br>……<br><br><br>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: <br><br>2010-08-06 02:29:55,482 ERROR [STDERR] java.lang.IndexOutOfBoundsException: Index: 0, Size: 0<br>2010-08-06 02:29:55,482 ERROR [STDERR] at java.util.ArrayList.RangeCheck(ArrayList.java:547)<br>2010-08-06 02:29:55,482 ERROR [STDERR] at java.util.ArrayList.get(ArrayList.java:322)<br>2010-08-06 02:29:55,482 ERROR [STDERR] at org.oryxeditor.server.BPMN2_0Importer.getJsonFromBpmn20Xml(BPMN2_0Importer.java:99)<br>2010-08-06 02:29:55,482 ERROR [STDERR] at org.oryxeditor.server.BPMN2_0Importer.doPost(BPMN2_0Importer.java:66)<br>……<br><br><br>What I changed to Evaluation.bpmn was the root element which is now:<br><br><definitions
id="Definition"<br> targetNamespace="http://www.jboss.org/drools"<br> typeLanguage="http://www.java.com/javaTypes"<br> expressionLanguage="http://www.mvel.org/2.0"<br> xmlns="http://schema.omg.org/spec/BPMN/2.0"<br> xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"<br> xs:schemaLocation="http://schema.omg.org/spec/BPMN/2.0 BPMN20.xsd"<br>
xmlns:g="http://www.jboss.org/drools/flow/gpd"<br> xmlns:tns="http://www.jboss.org/drools"><br><br><br>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.<br><br>Thanks,<br>Patricia<br><br><br><br><br>--- On <b>Wed, 7/28/10, Mark Proctor <i><mproctor@codehaus.org></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Mark Proctor <mproctor@codehaus.org><br>Subject: Re: [rules-users] Drools Gunvor and Oryx integration<br>To: rules-users@lists.jboss.org<br>Date: Wednesday, July 28, 2010, 11:26 PM<br><br><div id="yiv501840597">
On 29/07/2010 04:05, Han Ming Low wrote:
<blockquote type="cite">
<div>Hi,</div>
<div> </div>
<div>Just for information.</div>
<div> </div>
<div>In order for the Oryx integration to work, you need to
install the oryx designer available from</div>
<div><a rel="nofollow" target="_blank" href="http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/designer/">http://anonsvn.jboss.org/repos/labs/labs/jbossrules/contrib/designer/</a></div>
</blockquote>
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:<br>
<a rel="nofollow" class="yiv501840597moz-txt-link-freetext" target="_blank" href="http://github.com/atoulme">http://github.com/atoulme</a><br>
<a rel="nofollow" class="yiv501840597moz-txt-link-freetext" target="_blank" href="http://github.com/intalio/process-designer/">http://github.com/intalio/process-designer/</a><br>
<br>
<br>
<blockquote type="cite">
<div> </div>
<div>Install the designer.war into JBoss and make sure you can
access it from localhost:8080/designer</div>
<div> </div>
<div>Then, in the download drools-5.1.0.CR1-install.zip, you
should see a Evaluation.bpmn<br>
Copy this file into your Guvnor repository through WebDAV into
the defaultPackage (note : not any other package)</div>
<div>Once you have done this, you should see the process under the
defaultPackage Processes in Guvnor.</div>
<div>And when you double click on it, you should have the bpm
loaded in the designer.</div>
<div> </div>
<div>A side note is that the designer will only load bpmn file,
for obvious reason that the rf format is not supported by oryx.</div>
<div>So, you cannot create a process from Guvnor and load it in
the designer because the default type is rf.</div>
<div> </div>
<div>Hope this helps.</div>
<div> </div>
<div> </div>
<div>Han Ming</div>
<div> </div>
<div class="yiv501840597gmail_quote">2010/7/28 Patricia Bogoevici <span dir="ltr"><<a rel="nofollow" ymailto="mailto:patriciabogoevici@yahoo.com" target="_blank" href="/mc/compose?to=patriciabogoevici@yahoo.com">patriciabogoevici@yahoo.com</a>></span><br>
<blockquote style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;" class="yiv501840597gmail_quote">
<table border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td valign="top">Hi all,<br>
<br>
I found a preview of the Guvnor /Oryx integration here
(<a rel="nofollow" target="_blank" href="http://blog.athico.com/2010/06/browser-based-bpmn2-authoring-in-drools.html">http://blog.athico.com/2010/06/browser-based-bpmn2-authoring-in-drools.html</a>).<br>
<br>
I tried Drools Guvnor 5.1.0.CR1, but there is nothing
about this integration, one can only view the flow
diagram. <br>
<br>
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. <br>
<br>
Thanks,<br>
Patricia<br>
<br>
</td>
</tr>
</tbody>
</table>
<br>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a rel="nofollow" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a rel="nofollow" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</blockquote>
</div>
<br>
<pre><fieldset class="yiv501840597mimeAttachmentHeader"></fieldset><br>_______________________________________________<br>rules-users mailing list<br><a rel="nofollow" class="yiv501840597moz-txt-link-abbreviated" ymailto="mailto:rules-users@lists.jboss.org" target="_blank" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a rel="nofollow" class="yiv501840597moz-txt-link-freetext" target="_blank" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></pre>
</blockquote>
<br>
</div><br>-----Inline Attachment Follows-----<br><br><div class="plainMail">_______________________________________________<br>rules-users mailing list<br><a ymailto="mailto:rules-users@lists.jboss.org" href="/mc/compose?to=rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></td></tr></table><br>