Never mind - [rules-dev] 3.1-M1 - Can't get rules to build
by Tom Gonzalez
Oops... never mind I got it.
Now using antlr-3.0ea8.jar
> ______________________________________________
> From: Gonzalez, Tom (NCRTP:3798)
> Sent: Monday, February 19, 2007 5:46 PM
> To: 'rules-dev(a)lists.jboss.org'
> Subject: [rules-dev] 3.1-M1 - Can't get rules to build
>
> I am attempting to convert our application to use drools 3.1.M from
> current use of 3.0.4.
>
> I downloaded the binaries posted and am getting this very basic
> exception when building our rules.
>
> [java] Feb 19, 2007 5:21:25 PM
> com.nortel.connect.rbuilder.RulePackage addR
> ulesFromDrlFile
> [java] INFO: adding Rules from: CBMRules.drl (with
> associated DSL)
> [java] Exception in thread "main" java.lang.NoSuchFieldError:
> recognizer
> [java] at
> org.drools.lang.DRLLexer$DFA18.<init>(DRLLexer.java:3914)
> [java] at org.drools.lang.DRLLexer.<init>(DRLLexer.java:3565)
> [java] at
> org.drools.compiler.DrlParser.getParser(DrlParser.java:78)
> [java] at
> org.drools.compiler.DrlParser.parse(DrlParser.java:110)
> [java] at
> org.drools.compiler.DrlParser.parse(DrlParser.java:96)
> [java] at
> com.nortel.connect.rbuilder.RulePackage.addRulesFromDrlFile(R
> ulePackage.java:219)
>
> Any suggestions for getting past this?
>
> Thanks,
>
> Tom G
17 years, 10 months
WebDav and rules repository
by Michael Neale
For anyone who knows anything about JCR/JSR-170, there is a "node type"
called nt:file, which represents a file type resource.
We have a "asset" type node at the moment, which is kind of analagous to a
file (and it is stored in folders).
As the repository is kind of like a filesystem (ine one sense, in another
its queryable like a database and presented like one) it is possible, if we
choose, to expose things via WebDAV for applications like Excel to save
into. This opens up a lot of possibilities.
I wanted to get peoples thoughts on making our "asset" node be an "nt:file"
type - from an API point of view most of this can and will be hidden, more
of a small structural change to allow future flexability. At the moment the
asset type just stored content as a string or byte[] as needed - with an
nt:file it would be slightly more formally defined to be closer to a file.
Is it worth the effort? Is this something that excites or interests people:
FYI, if one was to browser the repo as a (virtual) file system, it would
look something like:
/root
/packages
/package name
/assets
/Rule1.drl
/Rule2.drl....
/Something.xls
/another package ....
/categories ...
/statuses
/configuration ...
17 years, 10 months
Build work
by Mark Proctor
We can build with both ant (using embedded maven for dependencies) and
maven itself. However just being able to build software is a far cry
from a build that can do full distribution build releases.
What I'm struggling with at the moment is a way to emulate the ant
process for javadocs - you'll notice that we check for a ydoc directory
and produce ydoc projects if thats present. I was experimental with
profiles to try and get this workign, but ran out of time, part of the
issue also seems to be you have to "install" the ydoc libraries, which
seems a bit OTT.
Then there is the dist-all targets, where we build the various binary
and src jars.
We also use ant for all our documentation building with docbook.
Finally I'm looking to integrate the Eclipse plugin build process, not
yet done, into ANT - that work will also need to be migrated to maven.
While you are at it, it would be good to get things like cobetura and
unit test reports :)
Good Luck.
Mark
Manuel Alejandro de Brito Fontes wrote:
> Hi, I want to help with the Maven migration. Just one question, the
> svn contains many pom.xml, so, what's the problem with the migration?
>
> Manuel Alejandro de Brito Fontes
> alejandro.debrito(a)bluesoft.cl
>
>
> On 05-02-2007, at 9:41, Mark Proctor wrote:
>
>> The code for M1 is ready, I'm fighting maven at the moment and losing
>> :( Btw anyone from the community that wants to work on our build
>> system would be very much appreciated and will help us put out
>> releases faster. Currently we use ant with embedded maven, we want to
>> go to 100% maven but keep hitting bugs :( The latest one is profiles
>> for ydoc. Anyway if your a maven wiz and want help, please do contact
>> us.
>>
>> Mark
>> Anstis, Michael (M.) wrote:
>>> Hi,
>>> Is there any update as to the availability of ruleflow in 3.2 as
>>> it's become pivotal to our use of JBoss Rules?
>>> Thanks,
>>> Mike
>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>> *From:* Mark Proctor [mailto:mproctor@codehaus.org]
>>> *Sent:* 23 January 2007 16:50
>>> *To:* Anstis, Michael (M.)
>>> *Subject:* Re: [rules-users] BRMS: Evaluation: JBoss Rules 3.2?
>>>
>>> as soon as MVEL is ready we'll do an M1, but the ruleflow part is
>>> not exposed to thte drl language yet, that will take a few more
>>> weeks.
>>>
>>> Mark
>>> Anstis, Michael (M.) wrote:
>>>> I might have a play around just to see how I get on, but think
>>>> I'll wait for 3.1 before I get "serious" - can I get the latest
>>>> (unstable) code (is it CVS or somewhere)?
>>>> - and I won't be using this private address ongoing (I didn't
>>>> want to hit the rules list with news of your latest code).
>>>>
>>>>
>>>> ------------------------------------------------------------------------
>>>>
>>>> *From:* rules-users-bounces(a)lists.jboss.org
>>>> [mailto:rules-users-bounces@lists.jboss.org] *On Behalf Of
>>>> *Mark Proctor
>>>> *Sent:* 23 January 2007 16:13
>>>> *To:* Rules Users List
>>>> *Subject:* Re: [rules-users] BRMS: Evaluation: JBoss Rules
>>>> 3.2?
>>>>
>>>> not sure its that simple as the stack concept is built into
>>>> the engine. but good luck.
>>>>
>>>> Mark
>>>> Anstis, Michael (M.) wrote:
>>>>> Thanks Mark,
>>>>> I think I've got the hang of AgendaGroups!!
>>>>> Presumably if I sub-class DefaultAgenda and override
>>>>> setFocus(AgendaGroup ag) and getNextfocus() I can implement
>>>>> my own flow-like mechanism instead of the standard stack.
>>>>> I'd need to add a way in which to override the DefaultAgenda
>>>>> created in ReteooWorkingMemory's constructor too but this
>>>>> again should be a simple sub-class (together with a subclass
>>>>> of ReteooRulebase with override of newWorkingMemory and a
>>>>> new RuleBaseFactory to allow me to construct these new
>>>>> objects). Anything major I've missed - my experience with
>>>>> rules engines now totals a couple of weeks and it's possible
>>>>> I'm missing the point!!
>>>>> With kind regards,
>>>>> Mike
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------
>>>>>
>>>>> *From:* rules-users-bounces(a)lists.jboss.org
>>>>> [mailto:rules-users-bounces@lists.jboss.org] *On Behalf
>>>>> Of *Mark Proctor
>>>>> *Sent:* 22 January 2007 16:33
>>>>> *To:* Rules Users List
>>>>> *Subject:* Re: [rules-users] BRMS: Evaluation: JBoss
>>>>> Rules 3.2?
>>>>>
>>>>> Anstis,
>>>>>
>>>>> We don't have ruleflow, but we do have AgendaGroups
>>>>> which can provide a form of rule flow, just that its
>>>>> actually stack based. I'm working on a more general
>>>>> ruleflow idea at the moment, it may make it into the end
>>>>> of Q1 release, but its not defnite yet.
>>>>>
>>>>> Normally you cache the rulebase in a singleton and then
>>>>> just creating working memory instances as and when you
>>>>> need to - creating a working memory is light.
>>>>>
>>>>> The guided gui builder is for 3.2, it's web only based
>>>>> on GWT, I believe that it will also do DSLs (Mic will
>>>>> have to confirm that).
>>>>>
>>>>> Mark
>>>>> Anstis, Michael (M.) wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I'm evaluating BRMS's for a new project at work.
>>>>>>
>>>>>> JBoss Rules today swung into pole position however I am
>>>>>> unclear on a number of features. I wonder whether this
>>>>>> user-group can help?
>>>>>>
>>>>>> I list a number of aspects I "think" are currently
>>>>>> missing in JBoss Rules together with my thoughts: If
>>>>>> anybody can clarify the position, provide alternatives
>>>>>> or help push JBoss Rules I'd be pleased to hear!
>>>>>>
>>>>>> * We require ruleflow (where rules run
>>>>>> sequentially; like "identify all machines X" then
>>>>>> "calculate prices" - not perhaps a good
>>>>>> illustration as this could be written as one rule
>>>>>> "calculate all prices using machine XXX"!!!).
>>>>>> Ideally "dynamic" ruleflow is required too -
>>>>>> where the next rule in a sequence is determined
>>>>>> by the outcome of a preceding rule (I have seen
>>>>>> dynamic achieved with "trigger" Facts asserted as
>>>>>> the RHS of rules however our "Business Users"
>>>>>> cannot be expected to author rules following this
>>>>>> design pattern. I have also seen static
>>>>>> implemented with salience). Is ruleflow (static
>>>>>> or dynamic) part of 3.2 - otherwise we'll need to
>>>>>> categorise rules having different types fired
>>>>>> throughout a "coded" process in Java.
>>>>>> * A J2EE runtime to provide scalability of the RETE
>>>>>> engine. We need to have the engine being shared
>>>>>> across sessions on a web-server. What experiences
>>>>>> have others had? Do you simply provide a working
>>>>>> memory instance per session (how does this scale
>>>>>> horizontally?). I also read that an Application
>>>>>> Server runtime would be part of 3.2, is this true?
>>>>>> * A rule authoring environment for end-users. I
>>>>>> read on Mark Proctor's blogg that this is in
>>>>>> development but is it set for inclusion in 3.2
>>>>>> and does it handle DSL too; otherwise we'd have
>>>>>> to write out own?
>>>>>>
>>>>>> With kind regards,
>>>>>>
>>>>>> Michael Anstis
>>>>>> -------------------------------------------
>>>>>> *Next Generation Estimating System*
>>>>>> ( Trafford House (Int) 8 718 2239
>>>>>> ( Trafford House (Ext) +44 (0)1268 702239
>>>>>> * <_mailto:manstis1@ford.com_>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------------------------------------------------
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>
>>>
>>> ------------------------------------------------------------------------
>>>
>>>
>>> _______________________________________________
>>> 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
>
>
17 years, 10 months
JBossRules 3.05 & Axis2 1.1.1
by Matthias Benesch
Hello,
I tried to set up my first example, using a rule engine. The example works fine, but when I move the rule engine into a WebService using Axis2, my imports in the rule can no more be found. I already found some posts, dealing with the same Problem, but no solution. I think it should be something wrong with the classpath. But is it Axis? Or JBossRules? Or me? Any hind?
best Regards,
Matthias
_____________________________________________________________________
Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066
17 years, 10 months
checkin and save
by Mark Proctor
Mic,
My current code in the svn to jcr sync is failing because
repository.save() is not setting version numbers. The checkin() method
seems the only way to have something increas the version number, also
does a save and a checkin at the same time, but its at an asset level,
not a repository level:
this.node.setProperty( VERSION_NUMBER_PROPERTY_NAME,
nextVersion );
this.node.getSession().save();
this.node.checkin();
However I need a unit of work to be atomic. So save() is done at the end
of the session, when all actions have been applied, when I call "save" I
want version numbers increased.
Mark
17 years, 10 months
plz send one rule invocation in java
by sanjeev
Dear sir,
Iam sanjeev,iam working in software company,but there nobody is there to help
me,so iam requesting you to write down one java code that iam sending you the
rule in drools-2.0,sir plz iam requesting once again to you,plz send me one
java code for this rule.
the rule look like this
/*PRODUCTION DEMAND TEST */
<?xml version="1.0" encoding="UTF-8"?>
<rule-set
name="JavaRules.org Test Agent Drools Port"
description="AIS Rule"
xmlns="http://drools.org/rules"
xmlns:java="http://drools.org/semantics/java"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/rules rules.xsd
http://drools.org/semantics/java java.xsd">
<rule name="pdTest">
<parameter identifier="AreaAdded">
<class>java.lang.Integer</class>
</parameter>
<parameter identifier="Prop_Area">
<class>java.lang.Integer</class>
</parameter>
<java:condition>
AreaAdded <= Prop_Area
</java:condition>
<java:consequence>
drools.assertObject("PASS");
</java:consequence>
</rule>
</rule-set>
Waiting for your reply as early as possible,it's good for me within two days
Thanks and regards
sanjeev
17 years, 10 months