[rules-users] A question about using "lane" in Drools-flow (Tihomir Surdilovic)
Tihomir Surdilovic
tsurdilo at redhat.com
Wed Mar 16 10:39:50 EDT 2011
On 3/15/11 12:27 PM, Wen Yao wrote:
> Thanks Tihomir.
>
> Attached is my bpmn file which I haven't edited. I don't think I am
> using jBPM. I just new a ruleflow file which is supported by Drools
> 5.1. It's a bpmn file.
>
> For question 3, I created a bpmn file in eclipse and didn't edit it.
> Then try to import it into oryx. It didn't work.
>
> Thanks for your answer!
>
> Best regards,
> ----
> Wen
I am able to open your process without errors in both Eclipse as well as
in Oryx after importing it to Guvnor. Here is what I have tested your
process with:
Guvnor: latest from trunk (https://github.com/droolsjbpm/guvnor) as well
as the version that comes with jBPM5-Final (
http://sourceforge.net/projects/jbpm/files/jBPM%205/jbpm-5.0-Final/ )
and also the latest snapshot
(http://hudson.jboss.org/hudson/job/jBPM5/lastSuccessfulBuild/artifact/target/)
Oryx: Latest version
(http://people.redhat.com/tsurdilo/oryx/1.0.0.049-SNAPSHOT/), you should
download designer-1.0.0.049-SNAPSHOT-jboss.war
<http://people.redhat.com/tsurdilo/oryx/1.0.0.049-SNAPSHOT/designer-1.0.0.049-SNAPSHOT-jboss.war>
and rename it to designer.war before deploying.
You may be using some older versions, if you let me what what they are
then I can test with those as well.
Thanks.
Tihomir
>
>
> On Tue, Mar 15, 2011 at 12:00 PM, <rules-users-request at lists.jboss.org
> <mailto:rules-users-request at lists.jboss.org>> wrote:
>
> Send rules-users mailing list submissions to
> rules-users at lists.jboss.org <mailto:rules-users at 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 at lists.jboss.org
> <mailto:rules-users-request at lists.jboss.org>
>
> You can reach the person managing the list at
> rules-users-owner at lists.jboss.org
> <mailto:rules-users-owner at 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 at gmail.com <mailto:wantastic at gmail.com>>
> Subject: [rules-users] Importing existing .dslr + .dsl to Guvnor
> To: rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> Message-ID: <1300199055985-2681597.post at n3.nabble.com
> <mailto:1300199055985-2681597.post at 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 at redhat.com
> <mailto:tsurdilo at redhat.com>>
> Subject: Re: [rules-users] A question about using "lane" in
> Drools-flow
> To: rules-users at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> Message-ID: <4D7F76A8.5030108 at redhat.com
> <mailto:4D7F76A8.5030108 at 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 at lists.jboss.org <mailto:rules-users at 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 at lists.jboss.org <mailto:rules-users at lists.jboss.org>
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> End of rules-users Digest, Vol 52, Issue 67
> *******************************************
>
>
>
> _______________________________________________
> rules-users mailing list
> rules-users at 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/20110316/a44aa1fc/attachment.html
More information about the rules-users
mailing list