Questions about Drools, Eclipse, Guvnor
by Bruno Freudensprung
Hi,
I've taken an look at the Roadmap in JIRA but, as I haven't found what
I'm looking for, here I am :-).
Today I read a message of Michael Anstis telling that BRL editor support
has been dropped since 5.2, and I have a question: how do you see the
future concerning rule authoring within Eclipse? Would you say that, in
a near future, there will be only one authoring environment left -
Guvnor? Or does Eclipse support has a chance to last and to be kept in
sync with Guvnor?
One last question: when working with Drools Eclipse plugin, I realized
that it is not possible to declare custom operators, accumulator
functions... so they appear in the drop down lists of the UI (or in the
DRL suggestion engine). Is it the same in Guvnor?
Thanks in advance for your insights,
Cheers,
Bruno.
14 years, 5 months
Thoughts about rule authoring
by Bruno Freudensprung
Hi,
I have a remark, maybe its just out of scope... however as it is in the
perspective of enabling end users to deal with their business domain,
leaving appart the technical aspects (which is one of strong points of
Drools), here it is.
Drools is great because it enables to express things simply. For
instance, in my company, we are annotating text. So our rules look like:
when
jim: Annotation (name = "/Person/Jim")
boston: Annotation (name = "/City/Boston")
...
However, in the end, it turns out that what is inside Strings is part as
well of our business domain. Maybe it is probably stored into a database
or whatever.
So, in my dreams (and, surprisingly, so said the customer I saw
yesterday and that didn't know anything about Drools!!), when I
Ctrl-space at the beginning of the String (after "/P), the rule
authoring environment suggests "/Person", juste because it knows,
somehow, that annotations can be one of those (maybe in absolute, or in
that particular context).
Would you say that I completely lost my mind? :-) Or more prosaically
that there is a design flaw in my data model?
Personnally I have the impression to be somewhere in the middle...
Best regards,
Bruno.
14 years, 5 months
Guvnor test scenarios for rules that use globals
by Lisa Horton
In Guvnor 5.1 I have several rules that invoke services defined as globals. Rules that invoke methods on these globals run OK when deployed, but a test scenario that triggers such a rule gets an exception.
For example, with a global named "logger" a rule that has in its THEN clause:
logger.debug("customer was added to session");
Test Scenario that triggers this rule gets the error:
[Error: unable to access property (null parent): debug]
Thanks for your help.
14 years, 5 months
caused the error org.drools.runtime.rule.ConsequenceException:
by AZZAZ mohamed
Hi,
I use a simple rule in the drl file but when i run the programe i have this
exception i dont now the origine
org.drools.runtime.rule.ConsequenceException: rule: Test
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:39)
at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:916)
at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:845)
at org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1056)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:733)
at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:699)
at
org.drools.impl.StatefulKnowledgeSessionImpl.fireAllRules(StatefulKnowledgeSessionImpl.java:218)
please you can investigate the issue. thanks
14 years, 5 months
request for help in TwitterCBR
by madhusoodan shanbhag
Hi,
I am having following problem in TwitterCBR example application.
Exception in thread "Thread-0" java.lang.IllegalStateException:
Authentication credentials are missing. See
http://twitter4j.org/configuration.html for the detail.
at
twitter4j.TwitterBaseImpl.ensureAuthorizationEnabled(TwitterBaseImpl.java:205)
at twitter4j.TwitterStreamImpl.sample(TwitterStreamImpl.java:147)
at org.drools.examples.twittercbr.TwitterCBR$1.run(TwitterCBR.java:80)
at java.lang.Thread.run(Unknown Source)
I have configured twitter4j.properties file as following.
debug=true
oauth.consumerKey=BpOiuGBcoZnbHsueuwM0w
oauth.consumerSecret=hQdpWR2Nu6m8vG35ggu1LdAoVfBgKiBsDxq7RDQVA
oauth.accessToken=257812222-aqqkXHdKIcVv0JfGu4oftAmb5uRNNQ9r2i9pzlzj
oauth.accessTokenSecret=1HqzEKEiL6EbzP8SDW6ox5vnc5qxSn1JxQTIsOFujE
Where I am going wrong?
Regards
Madhusoodan
14 years, 5 months
(no subject)
by AZZAZ mohamed
Hi,
I want to convert my file. brl to file. drl. I have this exception. does
anyone has an idea (solution)
thank you in advance
Caused by: com.thoughtworks.xstream.converters.ConversionException:
metadataList : metadataList : metadataList : metadataList
---- Debugging information ----
message : metadataList : metadataList
cause-exception :
com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : metadataList : metadataList
class : org.drools.brms.client.modeldriven.brl.RuleModel
required-type : org.drools.brms.client.modeldriven.brl.RuleModel
path : /rule/metadataList
-------------------------------
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:89)
at
com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:63)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:76)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:60)
at
com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:137)
at
com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:33)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:923)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:909)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:853)
at com.thoughtworks.xstream.XStream.fromXML(XStream.java:845)
at
org.drools.brms.server.util.BRXMLPersistence.unmarshal(BRXMLPersistence.java:91)
at fr.dto.RulesEngine.<init>(RulesEngine.java:42)
... 2 more
Caused by: com.thoughtworks.xstream.mapper.CannotResolveClassException:
metadataList : metadataList
at
com.thoughtworks.xstream.mapper.DefaultMapper.realClass(DefaultMapper.java:68)
at
com.thoughtworks.xstream.mapper.MapperWrapper.realClass(MapperWrapper.java:38)
at
com.thoughtworks.xstream.mapper.DynamicProxyMapper.realClass(DynamicProxyMapper.java:71)
14 years, 6 months
drools rasing error while testing in maven environment but same works fine in eclispe test environment
by Kumar, Ravendra
Hi,
I have a rule that is working fine in eclipse junit4 test environment.
Running through maven test environment. It is throwing error.
the description is as below.
rule "insert LNACrossTXPONSatConfig into memory"
when
$TXP: Transponder($ULNK_CHNL_LIST: uplinkChannelConfigurations )
$ULNK_CHNL: ArrayList() from $ULNK_CHNL_LIST
then
insert( new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id, $ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id) );
**********************************************************************************
infrastructure:
eclipse-ide: indigo
drools lib: drools 5.2.final
eclipse plugin: drools plugin 5.2.final
jdk 6
**********************************************************************************
error:
Unable to Analyse Expression drools.insert(new LNACrossTXPOnSatConfig($TXP.satelliteConfigurationUUIDRef.id, $TXP.id,
$ULNK_CHNL.uplinkLnaUUIDRef.id, $ULNK_CHNL.uplinkFreqConverterUUIDRef.id));:
[Error: unable to resolve method using strict-mode: java.lang.Object.id()]
[Near : {... drools.insert(new LNACrossTXPO ....}]
^
[Line: 3, Column: 98] : [Rule name='insert LNACrossTXPONSatConfig into memory']
**********************************************************************************
Any help would be highly appreciated.
Thanks,
Rav
Think green - keep it on the screen.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
14 years, 6 months
Log4j in the rules?
by granz@MIT.EDU
Hi,
Is it possible to use Log4j inside the rules (RHS)?? (drl file)
Thanks,
Fabrice
14 years, 6 months
Guvnor 5.2.0 (Final) under Geronimo 2.1.4
by john@oa
Guvnor 5.2.0 (Final)
Hello
I need to get Guvnor 5.2.0 (Final) up and running under Geronimo 2.1.4
(Tomcat6 variant).
Have started looking at this and have already found that there are class
loading/conflict issues as the container utilises xstream 1.2.2 and the
Guvnor requires 1.3.1.
There are probably a whole host of other issues. Has anyone used the Guvnor
under Geronimo? Any tips on getting this working much appreciated.
Cheers
John
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-2-0-Final-under-Geronimo-2-1-4...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 6 months