Michael Neale | 1 Jun 2010 01:02
Picon
Gravatar

Re: [rules-dev] KnowledgeAgent on Drools 5.1

nice work. 

On Tue, Jun 1, 2010 at 12:15 AM, Esteban Aliverti <esteban.aliverti <at> gmail.com> wrote:
I think https://jira.jboss.org/browse/BRMS-320 is fixed now. I can't change the status of the issue because of lack of permissions, but I think I fixed it. Could you please try it out and confirm it?

Best,

On Fri, May 28, 2010 at 9:33 AM, Mohamed BEN AYED <mohamed.ensi <at> gmail.com> wrote:

Hi,

the JIRA issue is here
https://jira.jboss.org/browse/BRMS-320
https://jira.jboss.org/browse/BRMS-320


--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/KnowledgeAgent-on-Drools-5-1-tp847635p851564.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



--
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Esteban Aliverti

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev




--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Jervisliu | 1 Jun 2010 09:53
Picon
Favicon

Re: [rules-dev] Call for docs: How to run/deploy Guvnor on various servers. WAS: Re: Drools-Guvnor on Oracle AS (OC4J) 10.1.3

mamadou.ensi wrote:
> Hi Jervisliu,
>
> For Weblogic, I finished the documentation and I posted it this morning 
>
> http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-on-Weblogic-11g-AS-td831111.html#a831111
>
http://drools-java-rules-engine.46999.n3.nabble.com/Guvnor-on-Weblogic-11g-AS-td831111.html#a831111 
>
> I will try to deploy Guvnor on Glassfish 
> for Websphere, I never used it but I will try
>
> If you need help to write documents, I am here to help you
>
> Regards
>
>   
Hi Mamadou, I've created a wiki 
(https://community.jboss.org/wiki/DroolsGuvnor50Installation) to 
accommodate all Guvnor 5.0 related installation/configuration issues. 
Fortunately we may not need such pages anymore for Guvnor 5.1 as Guvnor 
5.1 works with JBoss As 5.1/Tomcat 6 out-of-box. Feel free to add/edit 
if there is anything. I will link this wiki to guvnor main page later.

Thanks,
Jervis
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

data data | 1 Jun 2010 21:34
Picon

Re: [rules-dev] guvnor - adding own operators in conditions for eligibility rules

Many thanks for your answer

Yes I am aware of the difference between identity and equality. However I don't like to discuss if a separate identity/equals operators are a good or bad idea. I took this only as an example. (We use this for instance in ILOG JRules to speed up the execution)

What me interests is how Guvnor maps the operators from the guided editor to the real rule language. How is this done ? And exists there any way to introduce my own operator ? I don't like to use DSL because I like the idea of the guided rule editor. Any hints how Guvnor maps the guided rules to the mvel language and how this can be changed are welcome e.g. Which are the basic classes from the API therefore ?

Many thanks in advance

regards
Mark


2010/5/31 Michael Neale <michael.neale <at> gmail.com>
It actually does equals() comparison when it can - that is drools not guvnor specific (there might be some exceptions I am not aware of to this). In rules, generally you are talking about values of things, the fact that there are pointers to things which may happen to point to the same thing in memory is an implementation detail which probably would confuse - hence it uses equals. 

So it depends if you are asking for identity == (ie same pointer) - which I guess would have to be a new operator (and it may be strange and possibly a bad idea). Many brighter minds than me rightfully think that it was a design mistake of java to have == only mean pointer equality (including all the designers of java itself that I have heard of) - so think carefully what you want. 

FYI javascript has === for identity only equality (ie either side of operator point to the same object), and == for real (value) equality. 

On Mon, May 31, 2010 at 2:55 AM, data data <data.deutrium <at> gmail.com> wrote:
I like to add or change the existing operators in the condition part for eligibility rules.
- equal to
- not equal to
- matches
- sounds like

For instance I like to distinguish between reference compare "==" and deep comparison with "object.equals()".  Any ideas how I can achieve that? Any hints where I can have a look in order to start with that? (links, class names etc.)

Thank you in advance

regards
Mark

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev




--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev


_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Michael Neale | 3 Jun 2010 03:46
Picon
Gravatar

Re: [rules-dev] guvnor - adding own operators in conditions for eligibility rules

Yes there are 2 packages in the Guvnor sourcecode that control this - but there isn't a way to plug that stuff in at the moment. 

One controls what operators are visible when, and the other controls how it is rendered to DRL (I can't remember the package names though !). 

On Wed, Jun 2, 2010 at 5:34 AM, data data <data.deutrium <at> gmail.com> wrote:
Many thanks for your answer

Yes I am aware of the difference between identity and equality. However I don't like to discuss if a separate identity/equals operators are a good or bad idea. I took this only as an example. (We use this for instance in ILOG JRules to speed up the execution)

What me interests is how Guvnor maps the operators from the guided editor to the real rule language. How is this done ? And exists there any way to introduce my own operator ? I don't like to use DSL because I like the idea of the guided rule editor. Any hints how Guvnor maps the guided rules to the mvel language and how this can be changed are welcome e.g. Which are the basic classes from the API therefore ?

Many thanks in advance

regards
Mark


2010/5/31 Michael Neale <michael.neale <at> gmail.com>

It actually does equals() comparison when it can - that is drools not guvnor specific (there might be some exceptions I am not aware of to this). In rules, generally you are talking about values of things, the fact that there are pointers to things which may happen to point to the same thing in memory is an implementation detail which probably would confuse - hence it uses equals. 

So it depends if you are asking for identity == (ie same pointer) - which I guess would have to be a new operator (and it may be strange and possibly a bad idea). Many brighter minds than me rightfully think that it was a design mistake of java to have == only mean pointer equality (including all the designers of java itself that I have heard of) - so think carefully what you want. 

FYI javascript has === for identity only equality (ie either side of operator point to the same object), and == for real (value) equality. 

On Mon, May 31, 2010 at 2:55 AM, data data <data.deutrium <at> gmail.com> wrote:
I like to add or change the existing operators in the condition part for eligibility rules.
- equal to
- not equal to
- matches
- sounds like

For instance I like to distinguish between reference compare "==" and deep comparison with "object.equals()".  Any ideas how I can achieve that? Any hints where I can have a look in order to start with that? (links, class names etc.)

Thank you in advance

regards
Mark

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev




--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev




--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Puchu | 9 Jun 2010 18:51
Favicon

[rules-dev] ClassCastException BTM - hibernate Configuring Persistence


Hi all!

I need to configure my system to save the state of a
StatefulKnowledgeSession.
I'm using tomcat 6, BTM 1.3.2, Hibernate 3.4 and Postgres 8.3.
I have configured my Tomcat 6 and my jee aplication as it is described in
this post http://docs.codehaus.org/display/BTM/Tomcat13

So I have published a DataSource called testDS1.

My persitence.xml file has the next configuration:
---------------------------------------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<persistence version="1.0"
	xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
    	 http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd
	 http://java.sun.com/xml/ns/persistence/orm 
	 http://java.sun.com/xml/ns/persistence/orm_1_0.xsd"
	xmlns:orm="http://java.sun.com/xml/ns/persistence/orm"   
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xmlns="http://java.sun.com/xml/ns/persistence">

<persistence-unit name="com.logister.brms.jpa"	transaction-type="JTA">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>java:comp/env/jdbc/testDS1</jta-data-source>
<class>org.drools.persistence.session.SessionInfo</class>
<properties>
       <property name="hibernate.dialect"
value="org.hibernate.dialect.PostgreSQLDialect" />
       <property name="hibernate.hbm2ddl.auto" value="create-drop" /> 		
       <property name="hibernate.max_fetch_depth" value="3" />
       <property name="hibernate.show_sql" value="true" />
       <property name="hibernate.transaction.factory_class"
value="org.hibernate.transaction.JTATransactionFactory" />   
       <property name="hibernate.transaction.manager_lookup_class"
value="org.hibernate.transaction.BTMTransactionManagerLookup" />   
</properties>
</persistence-unit>
</persistence>
---------------------------------------------------------------------------------------------

And my code for creating the StatefulKnowledgeSession is the next below:
(The same is shown in the Chapter 5 persitence in the web
http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-flow/html/ch05.html
).
---------------------------------------------------------------------------------------------
KnowledgeBase kbase = null;
StatefulKnowledgeSession ksession = null;
kbase = util.readKnowledgeBase(); // This method reads all the rf (flow)
files.
EntityManagerFactory emf =
Persistence.createEntityManagerFactory("com.logister.brms.jpa");
Environment env = KnowledgeBaseFactory.newEnvironment();
env.set(EnvironmentName.ENTITY_MANAGER_FACTORY, emf);
ksession = JPAKnowledgeService.newStatefulKnowledgeSession(kbase, null,
env);
int sessionId = ksession.getId();
---------------------------------------------------------------------------------------------

My problem is that I get the next Error, but the table sessioninfo is
automatically created.  

javax.persistence.PersistenceException: [PersistenceUnit:
com.logister.brms.jpa]
 Unable to build EntityManagerFactory
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:677)
        at
org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(Hib
ernatePersistence.java:126)
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:52)
        at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.
java:34)
        at com.logister.BRMS.BrmsServlet.doPost(BrmsServlet.java:124)
        at com.logister.BRMS.BrmsServlet.doGet(BrmsServlet.java:59)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:233)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:191)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:128)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:293)
        at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcesso
r.java:859)
        at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.pr
ocess(Http11AprProtocol.java:574)
        at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:15
27)
        at java.lang.Thread.run(Thread.java:595)
Caused by: org.hibernate.HibernateException: Could not obtain BTM
transaction ma
nager instance
        at
org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionM
anager(BTMTransactionManagerLookup.java:50)
        at
org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:
357)
        at
org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.jav
a:1327)
        at
org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(Annotat
ionConfiguration.java:867)
        at
org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Con
figuration.java:669)
        ... 19 more
Caused by: java.lang.ClassCastException:
bitronix.tm.BitronixTransactionManager
        at
org.hibernate.transaction.BTMTransactionManagerLookup.getTransactionM
anager(BTMTransactionManagerLookup.java:47)
        ... 23 more

Any idea? I have looked for a solution and I have tried differents
configurations in my persistence.xml file but in fact I have always received
a java.lang.ClassCastException.

Thanks in advance.

--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/ClassCastException-BTM-hibernate-Configuring-Persistence-tp882820p882820.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Mark Proctor | 11 Jun 2010 13:07

[rules-dev] Fwd: [drools-user] Write Drools Books - Packt Publishing.

-------- Original Message --------Kshipra Singh <kshipras <at> packtpub.com>

Hello Everybody,
 
I represent Packt Publishing, the publishers of computer related books.
 
We are planning to expand our range of Drools books and are currently inviting Drools experts interested in writing books for Packt.
We do not expect our authors to have any past writing experience. All that you need to write for Packt is an expert knowledge of your subject, a passion to share it with others and an ability to communicate clearly in English.
 
 So, if you love Drools and fancy writing a book, here's an opportunity for you! Send us your book ideas at author <at> packtpub.com. Even if you don't have a book idea and are simply interested in writing a book, we are keen to hear from you!
 
More details about this opportunity are available at : http://authors.packtpub.com/content/packt-invites-drools-book-ideas-authors
 
Thanks
Kshipra Singh
Author Relationship Manager
Packt Publishing
www.PacktPub.com
 
Skype: kshiprasingh15
Twitter: http://twitter.com/packtauthors

Interested in becoming an author? Visit http://authors.packtpub.com for all the information you need about writing for Packt.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Bill Hainaut | 14 Jun 2010 16:56
Picon

[rules-dev] Error building latest Drools from SVN


I'm trying to build the latest Drools Planner examples for SVN at:

http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk

I am running into this error:

[INFO] Copying classes to
C:\Users\bhainaut\Documents\Drools\jbossrules\osgi-bundles\plugins\classes
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error copying artifact from
C:\Users\bhainaut\Documents\Drools\jbossrules\osgi-bundles\jxls\org.drools.osgi.wrapp
er.jxls-reader\target\classes to
C:\Users\bhainaut\Documents\Drools\jbossrules\osgi-bundles\plugins\classes

Embedded error:
C:\Users\bhainaut\Documents\Drools\jbossrules\osgi-bundles\jxls\org.drools.osgi.wrapper.jxls-reader\targ
et\classes (Access is denied)

Any clues on how this might be fixed would be greatly appreciated.
--

-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Error-building-latest-Drools-from-SVN-tp894622p894622.html
Sent from the Drools - Dev mailing list archive at Nabble.com.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Hitoshi Ozawa | 16 Jun 2010 11:57
Picon

[rules-dev] Japanese Drools example

Hi,

The company I work for put me on a hold while some paper works were being done.

That said, I have a Japanese version of Drools examples and will be
working on I18N/ L10N Drools IDE.
The examples aren't I18N so strings are directly written in Japanese.
Will drools team be interested
in having it? or should I just upload it to my site (the one below
with all the other software).

While waiting, decided to port some other software: :-)
http://sourceforge.jp/projects/oss-ja-jpn/releases/

Cheers,
H.Ozawa
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Michael Neale | 17 Jun 2010 01:22
Picon
Gravatar

Re: [rules-dev] Japanese Drools example

I think there may be interest - if you are able to maintain it, and lavel it as such (obviously other people probably won't be able to read it to fix it) but that would be good. So is the drl itself in japanese? I would like to see that. 

On Wed, Jun 16, 2010 at 7:57 PM, Hitoshi Ozawa <htshozawa <at> gmail.com> wrote:
Hi,

The company I work for put me on a hold while some paper works were being done.

That said, I have a Japanese version of Drools examples and will be
working on I18N/ L10N Drools IDE.
The examples aren't I18N so strings are directly written in Japanese.
Will drools team be interested
in having it? or should I just upload it to my site (the one below
with all the other software).

While waiting, decided to port some other software: :-)
http://sourceforge.jp/projects/oss-ja-jpn/releases/

Cheers,
H.Ozawa
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Salaboy | 17 Jun 2010 01:25
Picon
Gravatar

Re: [rules-dev] Japanese Drools example

Yes that's cool! Have examples in differnt languages always help! 

- Co-Founder <at> http://www.jbug.com.ar
- Mauricio "Salaboy" Salatino -

On Jun 16, 2010, at 20:22, Michael Neale <michael.neale <at> gmail.com> wrote:

I think there may be interest - if you are able to maintain it, and lavel it as suc h (obviously other people probably won't be able to read it to fix it) but that would be good. So is the drl itself in japanese? I would like to see that. 

On Wed, Jun 16, 2010 at 7:57 PM, Hitoshi Ozawa <htshozawa <at> gmail.com> wrote:
Hi,

The company I work for put me on a hold while some paper works were being done.

That said, I have a Japanese version of Drools examples and will be
working on I18N/ L10N Drools IDE.
The examples aren't I18N so strings are directly written in Japanese.
Will drools team be interested
in having it? or should I just upload it to my site (the one below
with all the other software).

While waiting, decided to port some other software: :-)
http://sourceforge.jp/projects/oss-ja-jpn/releases/

Cheers,
H.Ozawa
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev



--
Michael D Neale
home: www.michaelneale.net
blog: michaelneale.blogspot.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Gmane