On Tue, Mar 15, 2011 at 12:00 PM,
<rules-users-request@lists.jboss.org>
wrote:
Send rules-users mailing list submissions to
rules-users@lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request@lists.jboss.org
You can reach the person managing the list at
rules-users-owner@lists.jboss.org
When replying, please edit your Subject line so it is more
specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Importing existing .dslr + .dsl to Guvnor (wantastic)
2. Re: A question about using "lane" in Drools-flow
(Tihomir Surdilovic)
----------------------------------------------------------------------
Message: 1
Date: Tue, 15 Mar 2011 07:24:16 -0700 (PDT)
From: wantastic <wantastic@gmail.com>
Subject: [rules-users] Importing existing .dslr + .dsl to
Guvnor
To: rules-users@lists.jboss.org
Message-ID: <1300199055985-2681597.post@n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hello everyone,
I am a newbie to Guvnor. I have a set of .dslr files with
.dsl to translate
them.
I know I can just copy and paste .dslr file and .dsl file.
However, the
problem is that
I call external function within .dsl file and when I try to
validate the
dsl, it complains for not having the method.
ex)
[condition][Trade]xpathMatch "{xpath}"=trade : Trade( type ==
Trade.TRADE_TYPE ) and eval(
DslHelper.xmlContentMatches(trade, "{xpath}") )
This is my condition and it has all models like Trade.
However, it complains
about not having DslHelper function. This function has so many
dependencies
that I cannot upload through POJO jar.
Is there any elegant way to solve this problem?
Thanks in advance :)
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Importing-existing-dslr-dsl-to-Guvnor-tp2681597p2681597.html
Sent from the Drools - User mailing list archive at
Nabble.com.
------------------------------
Message: 2
Date: Tue, 15 Mar 2011 10:24:40 -0400
From: Tihomir Surdilovic <tsurdilo@redhat.com>
Subject: Re: [rules-users] A question about using "lane" in
Drools-flow
To: rules-users@lists.jboss.org
Message-ID: <4D7F76A8.5030108@redhat.com>
Content-Type: text/plain; charset="iso-8859-1"
On 3/14/11 9:27 PM, Wen Yao wrote:
> Hi,
>
> When I was working on a project using Drools-flow, I had
some problems
> with the "lane" and "laneset".
>
> 1. In eclipse, I used the Flow editor to create a process
and add some
> swimlanes. When I tried to run it, it always had this
error:
> org.xml.sax.SAXParseException: <lane> is after an
invalid element:
> org.drools.xml.Handler
> Then I looked into the XML file and changed the following
code:
>
> <laneSet>
> <lane name="Patient" >
> </lane>
> <lane name="Doctor" >
> </lane>
> </laneSet>
>
> to:
> <laneSet>
> <lane name="Patient" >
> </lane>
> </laneSet>
> <laneSet>
> <lane name="Doctor" >
> </lane>
> </laneSet>
> It worked. Could you explain why?
Are you using jbpm-5.0-Final? I am not able to reproduce the
mentioned
error. Upload your bpmn2 please.
>
> 2. I created a process in the web-based oryx designer
with a pool that
> contains several lanes. Then I imported this file in
Eclipse, which
> cannot open it correctly because of the lane issue, since
the format
> in oryx exported file is like this:
> <laneSet id="XXX">
> <lane name="Patient" >
> </lane>
> <lane name="Doctor" >
> </lane>
> </laneSet>
Oryx follows the bpmn2 schema correctly.
>
> 3. The bpmn file I created in Eclipse, although validated
to be
> correct, cannot be imported in Oryx. I am wondering
whether it can be
> done this way.
Is this after you made your custom xml changes?
>
> Could you kindly address my concerns?
>
> Thank you very much!
>
>
>
> Best regards,
> ----
> Wen
>
>
> _______________________________________________
> rules-users mailing list
> rules-users@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110315/9a11773c/attachment-0001.html
------------------------------
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
End of rules-users Digest, Vol 52, Issue 67
*******************************************