petru simion | 1 May 18:08
Picon
Favicon

[rules-dev] Re: rules-dev Digest, Vol 28, Issue 13

I was wondering if anyone knows about any initiative to allow any kind of technology to access rules using drools.

I red an article by Mark Proctor, that snows how one can expose the rules via web services.
This in turn would allow any application, no matter if it is java or not, to access rules via the web service but some more layers should be added, in order to allow the sender to express what rule base needs to be used, and what facts to be collected from the working memory.
I have already a mechanism in place to allow this, but was wondering if maybe there is already something out there that started this kind of initiative.



--- On Thu, 4/30/09, rules-dev-request <at> lists.jboss.org <rules-dev-request <at> lists.jboss.org> wrote:

From: rules-dev-request <at> lists.jboss.org <rules-dev-request <at> lists.jboss.org>
Subject: rules-dev Digest, Vol 28, Issue 13
To: rules-dev <at> lists.jboss.org
Date: Thursday, April 30, 2009, 7:09 PM

Send rules-dev mailing list submissions to
    rules-dev <at> lists.jboss.org

To subscribe or unsubscribe via the World Wide Web, visit
    https://lists.jboss.org/mailman/listinfo/rules-dev
or, via email, send a message with subject or body 'help' to
    rules-dev-request <at> lists.jboss.org

You can reach the person managing the list at
    rules-dev-owner <at> lists.jboss.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-dev digest..."


Today's Topics:

   1. array property evaluation (Cosimo Birtolo)
   2. Problem while using RuleFlow Groups in drools (Harsh Jetly)
   3. Can drools continue testing even if one of the    conditions
      fail ? (DroolUser)
   4. Can drools comtinue testing even if one of the    conditions
      fail ? (DroolUser)
   5. Re: M2 Guvnor Tomcat Deployment Issues and Resolutions (richarda)
   6. Rule Dependency Generator (Sangrish)
   7. Re: M2 Guvnor Tomcat Deployment Issues and Resolutions (mellster)


----------------------------------------------------------------------

Message: 1
Date: Tue, 8 Jul 2008 09:36:09 +0000 (GMT)
From: Cosimo Birtolo <birtlet <at> yahoo.it>
Subject: [rules-dev] array property evaluation
To: rules-dev <at> lists.jboss.org
Message-ID: <630164.90965.qm <at> web26105.mail.ukl.yahoo.com>
Content-Type: text/plain; charset="utf-8"

Hi all,
I'm using drools rule with axis2 and tomcat 6.0.13 and i get this error

org.drools.RuntimeDroolsException: Exception executing predicate eval( stereotypeID[1] == "D1" )
    at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:216)
    at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:137)
    at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:22)
    at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:145)
    at org.drools.reteoo.SingleObjectSinkAdapter.propagateAssertObject(SingleObjectSinkAdapter.java:22)
    at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:162)
    at org.drools.reteoo.Rete.assertObject(Rete.java:175)
    at org.drools.reteoo.ReteooRuleBase.assertObject(ReteooRuleBase.java:192)
    at org.drools.reteoo.ReteooWorkingMemory.doInsert(ReteooWorkingMemory.java:71)
    at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:911)
    at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:883)
    at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:684)
    at sapi.adapter.ws.AdapterManager.getAdaptedEntity(AdapterManager.java:29)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:194)
    at org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:98)
    at org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
    at org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
    at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
    at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
    at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
    at java.lang.Thread.run(Unknown Source)
Caused by: org.mvel.PropertyAccessException: unable to resolve property: stereotypeID[1]
    at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:286)
    at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.optimizeAccessor(ReflectiveAccessorOptimizer.java:110)
    at org.mvel.ASTNode.getReducedValueAccelerated(ASTNode.java:186)
    at org.mvel.ast.BinaryOperation.getReducedValueAccelerated(BinaryOperation.java:21)
    at org.mvel.MVELRuntime.execute(MVELRuntime.java:90)
    at org.mvel.CompiledExpression.getValue(CompiledExpression.java:111)
    at org.mvel.MVEL.executeExpression(MVEL.java:235)
    at org.drools.base.mvel.MVELPredicateExpression.evaluate(MVELPredicateExpression.java:45)
    at org.drools.rule.PredicateConstraint.isAllowed(PredicateConstraint.java:209)
    ... 37 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
    at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.getCollectionProperty(ReflectiveAccessorOptimizer.java:459)
    at org.mvel.optimizers.impl.refl.ReflectiveAccessorOptimizer.compileGetChain(ReflectiveAccessorOptimizer.java:264)
    ... 45 more

import sapi.adapter.ws.EntityAdapter;
import sapi.KnowledgeManager.bean.Entity;
import sapi.KnowledgeManager.bean.UserContextStereotype;


rule "all_1.1"
    salience 10
    no-loop true
    when
        $ent : Entity();
        $ucs : UserContextStereotype(
               magnifier==true &&
               stereotypeID[1]=="D1");
    then
        $ent = EntityAdapter.resize($ent,90);
       end

I don't understand why when I start this rule under eclipse it work just fine.
If I use this application as webService I get this error.
Can anyone help me?


Thanks


      Posta, news, sport, oroscopo: tutto in una sola pagina.
Crea l'home page che piace a te!
www.yahoo.it/latuapagina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-dev/attachments/20080708/82ef6920/attachment-0001.html

------------------------------

Message: 2
Date: Tue, 5 Aug 2008 19:47:42 -0700 (PDT)
From: Harsh Jetly <harsh.jetly <at> lntinfotech.com>
Subject: [rules-dev] Problem while using RuleFlow Groups in drools
To: rules-dev <at> lists.jboss.org
Message-ID: <18843391.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi ,
The version of Drools that I have used is 4.0.4

I have used ruleflow groups to create my rule file.
It has a split node (XOR) in which I specify a constraint on which a
ruleflow-group is to be selected .

Insert arraylists as facts in the working memory one by one.

The problem I face is that when I insert these arraylists in the same
session , it doesn't evaluate every constraint in the split node .


The work around I am using , it that I create a new session for every
arraylist , this works just fine . But creating a new session always is an
overhead .

Can you please assist me with this situation .

Thank You

Harsh Jetly
--
View this message in context: http://www.nabble.com/Problem-while-using-RuleFlow-Groups-in-drools-tp18843391p18843391.html
Sent from the drools - dev mailing list archive at Nabble.com.



------------------------------

Message: 3
Date: Mon, 11 Aug 2008 04:38:15 -0700 (PDT)
From: DroolUser <jyotu.p <at> gmail.com>
Subject: [rules-dev] Can drools continue testing even if one of the
    conditions fail ?
To: rules-dev <at> lists.jboss.org
Message-ID: <18923764.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi,
I'm using drools for testing if the few attributes of my MO are not null.

I construct the rule in the .drl file in following way :

rule "name"
when
        condition1
        condition2
        condition3
        condition4
then
        consequence
end

I have observed that the drool engine verifies the conditions line by line
(in the sequence they have written). The moment condition fails, control
comes back to the calling method.

I don't want this. I want the control to execute each and every condition
whether true or false and maintain a record of passed/failed conditions.
Something like this  :
rule "name"
when
        condition1
                log the test result  --- This statement should get executed
even if condition 1 fails and      control should go to condition 2
        condition2
                log the test result
        condition3
                log the test result
        condition4
                log the test result
then
        consequence
end

Is this possible in Drools ?

--
View this message in context: http://www.nabble.com/Can-drools-continue-testing-even-if-one-of-the-conditions-fail---tp18923764p18923764.html
Sent from the drools - dev mailing list archive at Nabble.com.



------------------------------

Message: 4
Date: Mon, 11 Aug 2008 04:22:49 -0700 (PDT)
From: DroolUser <jyotu.p <at> gmail.com>
Subject: [rules-dev] Can drools comtinue testing even if one of the
    conditions fail ?
To: rules-dev <at> lists.jboss.org
Message-ID: <18923764.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi,
I'm using drools for testing if the few attributes of my MO are not null.

I construct the rule in the .drl file in following way :

rule "name"
when
        condition1
        condition2
        condition3
        condition4
then
        consequence
end

I have observed that the drool engine verifies the conditions line by line
(in the sequence they have written). The moment condition fails, control
comes back to the calling method.

I don't want this. I want the control to execute each and every condition
whether true or false and maintain a record of passed/failed conditions.
Something like this  :
rule "name"
when
        condition1
                log the test result  --- This statement should get executed
even if condition 1 fails and      control should go to condition 2
        condition2
                log the test result
        condition3
                log the test result
        condition4
                log the test result
then
        consequence
end

Is this possible in Drools ?

--
View this message in context: http://www.nabble.com/Can-drools-comtinue-testing-even-if-one-of-the-conditions-fail---tp18923764p18923764.html
Sent from the drools - dev mailing list archive at Nabble.com.



------------------------------

Message: 5
Date: Wed, 1 Oct 2008 06:46:07 -0700 (PDT)
From: richarda <richard.ambridge <at> gmail.com>
Subject: Re: [rules-dev] M2 Guvnor Tomcat Deployment Issues and
    Resolutions
To: rules-dev <at> lists.jboss.org
Message-ID: <19760807.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


David,
Thanks for the information..  but I get a different error when deploying to
glassfish:

WebModule[/drools-guvnor]PWC1275: Exception sending context initialized
event to listener instance of class org.jboss.seam.servlet.SeamListener
java.lang.IllegalStateException: Cannot load
WEB-INF/classes/net/sf/webdav/WebDavServletBean.class from WebappClassLoader
  delegate: true
  repositories:
    /WEB-INF/classes/
----------> Parent Classloader:
EJBClassLoader :
urlSet = []
doneCalled = false
Parent -> java.net.URLClassLoader <at> 15b8520
(using getResourceAsStream() returned null)
        at
org.jboss.seam.deployment.AbstractDeploymentHandler.getClassFile(AbstractDeploymentHandler.java:41)
        at
org.jboss.seam.deployment.ComponentDeploymentHandler.handle(ComponentDeploymentHandler.java:57)
        at
org.jboss.seam.deployment.DeploymentStrategy.handle(DeploymentStrategy.java:177)
        at
org.jboss.seam.deployment.AbstractScanner.handleItem(AbstractScanner.java:30)
        at
org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:141)
        at
org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)

Any ideas for that one?

Thanks
--
View this message in context: http://www.nabble.com/M2-Guvnor-Tomcat-Deployment-Issues-and-Resolutions-tp19750352p19760807.html
Sent from the drools - dev mailing list archive at Nabble.com.



------------------------------

Message: 6
Date: Sun, 5 Oct 2008 00:29:47 -0700 (PDT)
From: Sangrish <sidangrish <at> gmail.com>
Subject: [rules-dev] Rule Dependency Generator
To: rules-dev <at> lists.jboss.org
Message-ID: <19821365.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


Hi

      I have been using Drools Rules Engine in our application for past
couple of weeks.
One of the requirements in our project was to let a user (anyone who is
writing/analysing the rules) find out
what other rules a given rule depends upon. There were a few kinds of
dependencies:
1) Object Attribute dependency: The attributes of an object being used in
the conditional part of a rule
   might be getting modified in the consequence part of another rule. We
wanted all such rules with each rule having its own dependency list.
2) Rule Salience based dependency. A rule having lower salience should be
executed only after a higher (if any) salience rule has already been
executed.
3) Dependency caused by a specific Rule flow. Rules in a ruleflow group
should be executed only if (if any) Split condition gets satisfied.
4) Agenda flow dependency (i.e., one agenda following another)

   We could not find much support for this in the Drools API. Hence we
decided to write our own dependency generator.  The tool we are writing
caters to first 3 dependencies. We might even handle the 4th one. 
  Since Drools is open source, we thought of contributing our bit towards
its development. If the drools team wants I can happily work with them on
getting this functionality plugged in the Drools system.


Thanks
Siddharth
--
View this message in context: http://www.nabble.com/Rule-Dependency-Generator-tp19821365p19821365.html
Sent from the drools - dev mailing list archive at Nabble.com.



------------------------------

Message: 7
Date: Tue, 4 Nov 2008 13:24:48 -0800 (PST)
From: mellster <mellster2000 <at> yahoo.com>
Subject: Re: [rules-dev] M2 Guvnor Tomcat Deployment Issues and
    Resolutions
To: rules-dev <at> lists.jboss.org
Message-ID: <20331483.post <at> talk.nabble.com>
Content-Type: text/plain; charset=us-ascii


FYI, here are a few more hacks I had to make (after checking out the latest
from trunk) to get guvnor started on tomcat6 and j2se1.5 on WinXP

1) java.lang.NoClassDefFoundError: org/drools/ObjectFilter

It looks like this one moved to the org.drools.runtime package - duplicated
the source file into org/drools and rebuilt.

2) javax.jcr.NamespaceException: http://www.jboss.org/drools-repository/1.0
is not a registered namespace uri

Added the line

drools=http\://www.jboss.org/drools-repository/1.0

to bin/repository/repository/namespaces/ns_reg

3) jsf not found (if you're not running with J2SE instead of J2EE)

Added jsf-api and jsf-impl to the pom (runtime scope should do it)

'<dependency>
    <groupId>javax.faces</groupId>
    <artifactId>jsf-api</artifactId>
    <version>1.2_02</version>
</dependency>

<dependency>
    <groupId>javax.faces</groupId>
    <artifactId>jsf-impl</artifactId
    <version>1.2-b19</version>
</dependency>

cheers

Marco


dave sinclair wrote:
>
> Just a heads up for everyone out there. I needed to make the following
> changes to guvnor's POM in order to get the webapp to work properly on
> Tomcat. I would imagine some of these issues would appear on JBoss also
> but
> have not tried.
>
> 1. Changed seam from 2.1.0.BETA1 to 2.1.0-SNAPSHOT to prevent classloader
> problem
>
> POM Changes
>      <dependency>
>         <groupId>org.jboss.seam</groupId>
>         <artifactId>jboss-seam-remoting</artifactId>
>         <version>2.1.0-SNAPSHOT</version>
>     </dependency>
>     <dependency>
>         <groupId>org.jboss.seam</groupId>
>         <artifactId>jboss-seam</artifactId>
>         <version>2.1.0-SNAPSHOT</version>
>     </dependency>
>
> EXCEPTION without change
>
> SEVERE: Exception sending context initialized event to listener instance
> of
> class org.jboss.seam.servlet.SeamListener
> java.lang.IllegalStateException: Cannot load
> WEB-INF/classes/net/sf/webdav/exceptions/AccessDeniedException.class from
> WebappClassLoader
>   delegate: false
>   repositories:
>     /WEB-INF/classes/
> ----------> Parent Classloader:
> org.apache.catalina.loader.StandardClassLoader <at> c4fe76
>  (using getResourceAsStream() returned null)
>         at
> org.jboss.seam.deployment.AbstractDeploymentHandler.getClassFile(AbstractDeploymentHandler.java:41)
>         at
> org.jboss.seam.deployment.ComponentDeploymentHandler.handle(ComponentDeploymentHandler.java:57)
>         at
> org.jboss.seam.deployment.DeploymentStrategy.handle(DeploymentStrategy.java:177)
>         at
> org.jboss.seam.deployment.AbstractScanner.handleItem(AbstractScanner.java:30)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:141)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.handleDirectory(URLScanner.java:137)
>         at
> org.jboss.seam.deployment.URLScanner.scanDirectories(URLScanner.java:40)
>         at
> org.jboss.seam.deployment.StandardDeploymentStrategy.scan(StandardDeploymentStrategy.java:107)
>         at
> org.jboss.seam.init.Initialization.create(Initialization.java:113)
>         at
> org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>
> 2. Added javax.persistence to prevent ClassNotFoundException
>
> POM Changes
>
>         <dependency>
>             <groupId>javax.persistence</groupId>
>             <artifactId>persistence-api</artifactId>
>             <version>1.0</version>
>         </dependency>
>
> EXCEPTION without change
>
> SEVERE: Exception sending context initialized event to listener instance
> of
> class org.jboss.seam.servlet.SeamListener
> java.lang.RuntimeException: Could not create Component:
> org.jboss.seam.core.init
>         at
> org.jboss.seam.init.Initialization.addComponent(Initialization.java:1068)
>         at
> org.jboss.seam.init.Initialization.init(Initialization.java:614)
>         at
> org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.lang.NoClassDefFoundError: javax/persistence/Entity
>         at org.jboss.seam.Seam.getComponentType(Seam.java:109)
>         at org.jboss.seam.Component.<init>(Component.java:210)
>         at org.jboss.seam.Component.<init>(Component.java:199)
>         at
> org.jboss.seam.init.Initialization.addComponent(Initialization.java:1052)
>         ... 26 more
> Caused by: java.lang.ClassNotFoundException: javax.persistence.Entity
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         ... 30 more
>
> 3. Added hibernate-validator to prevent ClassNotFoundException
>
> POM Changes
>
>          <dependency>
>             <groupId>org.hibernate</groupId>
>             <artifactId>hibernate-validator</artifactId>
>             <version>3.0.0.GA</version>
>         </dependency>
>
> EXCEPTION without change
>
> SEVERE: Exception sending context initialized event to listener instance
> of
> class org.jboss.seam.servlet.SeamListener
> java.lang.RuntimeException: Could not create Component:
> org.jboss.seam.international.statusMessages
>         at
> org.jboss.seam.init.Initialization.addComponent(Initialization.java:1068)
>         at
> org.jboss.seam.init.Initialization.installComponents(Initialization.java:984)
>         at
> org.jboss.seam.init.Initialization.init(Initialization.java:646)
>         at
> org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
>         at
> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
>         at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
>         at
> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
>         at
> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>         at
> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>         at
> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>         at
> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>         at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>         at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>         at
> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>         at
> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:597)
>         at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>         at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
> Caused by: java.lang.NoClassDefFoundError:
> [Lorg/hibernate/validator/InvalidValue;
>         at java.lang.Class.getDeclaredMethods0(Native Method)
>         at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
>         at java.lang.Class.privateGetPublicMethods(Class.java:2547)
>         at java.lang.Class.privateGetPublicMethods(Class.java:2563)
>         at java.lang.Class.getMethods(Class.java:1410)
>         at org.jboss.seam.Component.hasAnnotation(Component.java:1078)
>         at org.jboss.seam.Component.<init>(Component.java:212)
>         at org.jboss.seam.Component.<init>(Component.java:199)
>         at
> org.jboss.seam.init.Initialization.addComponent(Initialization.java:1052)
>         ... 27 more
> Caused by: java.lang.ClassNotFoundException:
> org.hibernate.validator.InvalidValue
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
>         at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         ... 36 more
>
> 4. Seam's version of the Java Expression Language was clashing with
> Tomcat's
>
> POM Changes
>
> - exclude from seam
> <dependency>
>             <groupId>org.jboss.seam</groupId>
>             <artifactId>jboss-seam</artifactId>
>             <version>2.1.0-SNAPSHOT</version>
>             <exclusions>
>                 <exclusion>
>                     <groupId>javax.el</groupId>
>                     <artifactId>el-api</artifactId>
>                 </exclusion>
>             </exclusions>
>         </dependency>
> - comment out from POM
> <!--<dependency>-->
>             <!--<groupId>javax.el</groupId>-->
>             <!--<artifactId>el-api</artifactId>-->
>             <!--<version>1.2</version>-->
>             <!--<scope>runtime</scope>-->
>         <!--</dependency>-->
>
>
> Exception without change
>
> java.lang.LinkageError: loader constraint violation: when resolving
> interface method
> "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Lj
> avax/el/ExpressionFactory;" the class loader (instance of
> org/apache/jasper/servlet/JasperLoader) of the current class,
> org/apache/jsp/index_jsp, and
> the class loader (instance of
> org/apache/catalina/loader/StandardClassLoader) for resolved class,
> javax/servlet/jsp/JspApplicationContext, have differ
> ent Class objects for the type javax/el/ExpressionFactory used in the
> signature
>         at org.apache.jsp.index_jsp._jspInit(index_jsp.java:22)
>         at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:52)
>         at
> org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:159)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:329)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:337)
>         at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
>         at
> org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
>         at
> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:619)
>
> let me know if we should use different versions then the ones I have
> listed.
>
> thanks
>
> dave sinclair
>
> _______________________________________________
> rules-dev mailing list
> rules-dev <at> lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>

--
View this message in context: http://www.nabble.com/M2-Guvnor-Tomcat-Deployment-Issues-and-Resolutions-tp19750352p20331483.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


End of rules-dev Digest, Vol 28, Issue 13
*****************************************
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
David Sinclair | 1 May 17:29
Favicon
Gravatar

Re: [rules-dev] Can drools comtinue testing even if one of the conditions fail ?

The short and sweet answer is no.

On Mon, Aug 11, 2008 at 7:22 AM, DroolUser <jyotu.p <at> gmail.com> wrote:

Hi,
I'm using drools for testing if the few attributes of my MO are not null.

I construct the rule in the .drl file in following way :

rule "name"
when
       condition1
       condition2
       condition3
       condition4
then
       consequence
end

I have observed that the drool engine verifies the conditions line by line
(in the sequence they have written). The moment condition fails, control
comes back to the calling method.

I don't want this. I want the control to execute each and every condition
whether true or false and maintain a record of passed/failed conditions.
Something like this  :
rule "name"
when
       condition1
               log the test result  --- This statement should get executed
even if condition 1 fails and      control should go to condition 2
       condition2
               log the test result
       condition3
               log the test result
       condition4
               log the test result
then
       consequence
end

Is this possible in Drools ?

--
View this message in context: http://www.nabble.com/Can-drools-comtinue-testing-even-if-one-of-the-conditions-fail---tp18923764p18923764.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

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
tellkb | 4 May 19:54
Picon

[rules-dev] setGlobal issue in StatefulSession


Hi there,

I want to set setGlobal in working memory at run time based on derived
class, e.g. DerivedOne or DerivedTwo. But it throws following error:

       Illegal class for global. Expected [org.comp.app.bean.Base], found
[org.comp.app.bean.DerivedOne].

It should automatically resolve the derived class. Please let me know if I'm
doing something wrong. I'd appreciate your help.

Thanks,
-KB

Here are the classed I'm using in my test project:

class abstract Base () {

       public void init( StatefulSession workingMemory ) {
               this.workingMemory = workingMemory;
               workingMemory.setGlobal("app", this);
       }
       public void logMe() {
               System.out.println("From Derived BASE...");
       }
}

class DerivedOne() extends Base{
       public void runRules( Object obj) {
               ObjOne obj1 = (ObjOne)obj
               workingMemory.insert(obj1);
               workingMemory.fireAllRules();
               workingMemory.dispose();
       }
       public void logMe() {
               System.out.println("From Derived ONE...");
       }
}

class DerivedTwo() extends Base{
       public void runRules( Object obj) {
               ObjTwo obj2 = (ObjTwo)obj
               workingMemory.insert(obj2);
               workingMemory.fireAllRules();
               workingMemory.dispose();
       }
       public void logMe() {
               System.out.println("From Derived ONE...");
       }
}

class Caller() {

       RuleBase ruleBase = ruleBaseFactory.open(docRules);
       workingMemory = ruleBase.newStatefulSession();

       if (sub==1) {
               der1 = new DerivedOne();
               der1.init(workingMemory);
               der1.runRules();
       }
       else if (sub==1) {
               der2 = new DerivedTwo();
               der2.init(workingMemory);
               der2.runRules();
       }
}

//********DRL FILE*****
package com.sample

import com.sample.app.RuleCaller.Message;

global com.sample.app.Base app;

rule "using a static function"
when
   eval( true )
then
   System.out.println( "Message from Rule." );
   app.logMe();
end
//********DRL FILE*****
--

-- 
View this message in context: http://www.nabble.com/setGlobal-issue-in-StatefulSession-tp23373329p23373329.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

[jira] Created: (DROOLS-495) How to creat rules in Drools using java..

How to creat rules in Drools  using java.. 
-------------------------------------------

                 Key: DROOLS-495
                 URL: http://jira.codehaus.org/browse/DROOLS-495
             Project: drools-legacy
          Issue Type: Task
          Components: Examples
         Environment: Windows XP2, java 5.0, drools 5
            Reporter: samadhan shimpi
            Assignee: bob mcwhirter
         Attachments: AddRule.java

can anyone please provide the java code to create rule in Drools,
I have the sample java code as follows : 

SecurityServiceServlet ssi = new SecurityServiceServlet();
ssi.login("","");

RepositoryServiceServlet si = new RepositoryServiceServlet();
String uuid= si.getService().createNewRule(ruleName,description,initialCategory,initialPackage,format);
System.out.println("uuid"+uuid);

but as soon as i run the above program "invalid path exception occurs ... " 

Kindly help me.

--

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Emilian Pascalau | 11 May 16:33
Picon
Favicon

[rules-dev] CFP - 3rd East European Workshop on Rule-Based Applications - RuleApps 2009

  -----------------------------------------------------------------------
         Our apologies if you receive duplicates of this posting.
    Please feel free to distribute it to those who might be interested.
  -----------------------------------------------------------------------

  
*****************************************************************************
  *                               CALL FOR 
PAPERS                             *

*                                                                           
*
  *                                 RuleApps 
2009                             *

*                                                                           
*
  *            3rd East European Workshop on Rule-Based 
Applications          *
  *                  Cottbus, Germany, September 21, 
2009                     *
  *   
http://hydrogen.informatik.tu-cottbus.de/wiki/index.php/RuleApps2009    *

*                                                                           
*

*                                                                           
*
  *               Paper submission deadline:  June 30, 
2009                   *

*****************************************************************************

Aims and  Audience
==================
The workshop aims to to be a common space where those with experience or 
interest
in rule modeling, rule languages and rule engines  meet researchers with 
expertise
in other areas such as:  Artificial Intelligence, Business Process 
Modeling,
Cloud Computing, Intelligent Agents, Model-Driven Architecture, and 
Semantic Web.

Attending this workshop will give researchers the possibility to 
identify new
trends and challenges in rule-based applications, and it will provide a 
forum for
potential users of innovative AI techniques.

Topics of Interest
==================
The workshop seeks contributions addressing,
but not limited to, the following topics:
  * Artificial Intelligence Rules and Rule Systems
  * Best Practices in Business Rules
  * Combining rules and ontologies
  * Rules in Enterprise Modeling
  * Implemented tools and systems
  * Rules and Web Services Integration
  * Rules Modeling and Business Processes (including Production Rules 
and ECA Rules)
  * Rule base Visualization, Verbalization, Validation, Verification and 
Exception Handling.
  * Rule-based agents modeling and simulation
  * Rule-based modeling of mechanisms, policies, strategies and contracts.
  * Rule Engines Architectures
  * Rules in Web 2.0 and Enterprise 2.0

Past Events
===========
  * 2nd East European Workshop on Rule-Based Applications RuleApps'2008
    Collocated with the 18th biennial European Conference on Artificial 
Intelligence
    ECAI'2008, July 21-25, 2008, Patras, Greece
  * 1st East European Workshop on Rule-Based Applications RuleApps'2007
    Collocated with the 9th International Symposium on Symbolic and 
Numeric Algorithms
    for Scientific Computing SYNASC'2007 September 26-29, 2007, 
Timisoara, Romania

Submission Details
==================
RuleApps2009 looks for three categories of submissions:
regular, short, and application papers:
  * Regular papers - max. 12 pages (including figures) LNCS format
    describing completed research.
  * Short papers and application papers - max. 6 pages (including 
figures) LNCS format
    describing early results and novel ideas. Software described in 
application papers
    should be available online during the review process.

The submission web site is:
http://www.easychair.org/conferences/?conf=ruleapp2009

For any additional questions regarding the submission of papers ask
organizers by email(please include /RuleApps'2009/ in the subject).

Publication
===========
The accepted papers will be published as CEUR-WS Proceedings.

The copyright for the individual items (subsuming any type of
computer-represented files containing articles, software demos,
videos, etc.) within the proceedings volume is owned by default by
their respective authors. Copying of items, in particular papers, and
proceedings volumes is permitted only for private and academic
purposes. Copying or use for commercial purposes is forbidden unless
an explicit permission is acquired from the copyright owners (i.e. authors).

Extended versions of the best regular papers of the workshop will be
invited for publication in an indexed scientific journal.

Important dates
===============
Submissions due:                   June 30, 2009
Notification of acceptance:        July 30, 2009
Camera ready copy due:         September 1, 2009
Workshop date:                 September 21, 2009

Organization
============

Workshop Organizers
  * Adrian Giurca, Brandenburg University of Technology, Germany
  * Grzegorz J. Nalepa, AGH University of Science and Technology, Poland
  * Gerd Wagner, Brandenburg University of Technology, Germany

Program Committee (tentative)
  * Grigoris Antoniou, FORTH, Greece
  * Costin Badica, University of Craiova, Romania
  * Nick Bassiliades, Aristotle University of Thessaloniki, Greece
  * Aicha-Nabila Benharkat, Institut National des Sciences Appliquees de 
Lyon, France
  * Jens Dietrich, Massey University, New Zealand
  * Dragan Gasevic, Athabasca University, Canada
  * Adrian Giurca, Brandenburg University of Technology, Germany
  * Isambo Karali, University of Athens, Greece
  * Ion Iancu, University of Craiova, Romania
  * Antoni Ligeza, AGH University of Science and Technology, Poland
  * Grzegorz J. Nalepa, AGH University of Science and Technology, Poland
  * Viorel Negru, West University of Timisoara, Romania  
  * Paula Lavinia Patranjan, SKYTEC AG, Germany
  * Mark Proctor, Drools, Redhat   
  * Dave Reynolds, Hewlett-Packard Semantic Web Research, England
  * Kuldar Taveter, Tallinn University of Technology, Estonia
  * Gerd Wagner, Brandenburg University of Technology, Germany
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Lasse.Wallentin | 11 May 22:01

[rules-dev] Lasse Wallentin is out of the office.


I will be out of the office starting  05-05-2009 and will not return until
20-05-2009.

I will respond to your message when I return.

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

Mark Proctor (JIRA | 12 May 00:56

[jira] Commented: (DROOLS-495) How to creat rules in Drools using java..


    [
http://jira.codehaus.org/browse/DROOLS-495?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=176023#action_176023
] 

Mark Proctor commented on DROOLS-495:
-------------------------------------

do you have Doubtz?

> How to creat rules in Drools  using java.. 
> -------------------------------------------
>
>                 Key: DROOLS-495
>                 URL: http://jira.codehaus.org/browse/DROOLS-495
>             Project: drools-legacy
>          Issue Type: Task
>          Components: Examples
>         Environment: Windows XP2, java 5.0, drools 5
>            Reporter: samadhan shimpi
>            Assignee: bob mcwhirter
>         Attachments: AddRule.java
>
>
> can anyone please provide the java code to create rule in Drools,
> I have the sample java code as follows : 
> SecurityServiceServlet ssi = new SecurityServiceServlet();
> ssi.login("","");
> RepositoryServiceServlet si = new RepositoryServiceServlet();
> String uuid= si.getService().createNewRule(ruleName,description,initialCategory,initialPackage,format);
> System.out.println("uuid"+uuid);
> but as soon as i run the above program "invalid path exception occurs ... " 
> Kindly help me.

--

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Adrian Paschke | 12 May 22:25
Picon
Picon

[rules-dev] 2nd CFP RuleML-2009 - 3rd International Symposium on Rules, Applications and Interoperability

  -----------------------------------------------------------------------

         Our apologies if you receive duplicates of this posting.

    Please feel free to distribute it to those who might be interested.

  -----------------------------------------------------------------------

 

 

                               Call for Papers

                                      

                                 RuleML 2009

                                 

   3rd International Symposium on Rules, Applications and Interoperability

                  November 5-7 2009, Las Vegas, Nevada, USA

                 

                           http://2009.ruleml.org/

 

 

****************************************************************************

*Latest news                                                               *

*Student grants of the value of up to $1000 plus free registration         *

*Keynote by Sandro Hawke, W3C RIF Contact -  The Future of Rule Interchange*

*Prestigious prizes and new categories in the RuleML Challenge             *

****************************************************************************

 

 

Sponsored by

============================================================================

Franz Inc

NICTA (National ICT Australia) Ltd

Corporate Semantic Web

Logic Programming Associated Ltd

Modelsystems Ltd

ruleCore

============================================================================

 

Overview and Aim

============================================================================

The International Symposium on Rules, Applications and Interoperability has

evolved from an annual series of international workshops since 2002,

international conferences in 2005 and 2006, and international symposia since

2007. This year, the 3rd International Symposium on Rules, Applications and

Interoperability (RuleML-2009) takes place in Las Vegas, Nevada, USA,

collocated with the 12th Business Rules Forum, the world's largest Business

Rules event. RuleML-2009 is devoted to practical distributed rule

Technologies and rule-based applications which need language standards for

Rules (inter)operating in, e.g., the Semantic Web, Multi-Agent Systems,

Event-Driven Architectures, and Service-Oriented Applications.

 

The main goal of RuleML-2009 is to stimulate the cooperation and

interoperability between business and research, by bringing together rule

system providers, participants in rule standardization efforts, open source

communities, practitioners, and researchers. The concept of the symposium

has also advanced continuously in the face of extremely rapid progress in

practical rule and event processing technologies. As a result, RuleML-2009

will feature hands-on demonstrations and challenges alongside a wide range

of thematic tracks, and thus will be an exciting venue to exchange new

ideas and experiences on all issues related to the engineering, management,

integration, interoperation and interchange of rules in open distributed

environments such as the Web.

 

Conference Theme

============================================================================

This year, we particularly welcome submissions that address applications of

Web rule technologies for business and information systems. We invite you to

share your ideas, results, and experiences: as an industry practitioner,

rule system provider, technical expert and developer, rule user or

researcher, exploring foundations, developing systems and applications,

or using rule-based systems. We invite high-quality submissions related to

(but not limited to) one or more of the following topics:

 

Track Topics

----------------------------------------------------------------------------

 

Rule Transformation and Extraction

  - Transformation and extraction with rule standards, such as SBVR, RIF and

    OCL

  - Extraction of rules from code

  - Transformation and extraction in the context of frameworks such as KDM

    (Knowledge Discovery meta-model)

  - Extraction of rules from natural language

  - Transformation or rules from one dialect into another

 

Rules and Uncertainty

  - Languages for the formalization of uncertainty rules

  - Probabilistic, fuzzy and other rule frameworks for reasoning with

    uncertain or incomplete information

  - Handling inconsistent or disparate rules using uncertainty

  - Uncertainty extensions of event processing rules, business rules,

    reactive rules, causal rules, derivation rules, association rules,

    or transformation rules

 

Rules and Norms

  - Methodologies for modeling regulations using both ontologies and rules

  - Defeasibility: modeling rule exceptions and priority relations among

    rules

  - The relationship between rules and legal argumentation schemes

  - Rule language requirements for the "isomorphic" modeling of legislation

  - Rule based inference mechanism for legal reasoning

  - E-contracting and automated negotiations with rule-based declarative

    strategies

 

Rule-based Game AI

  - Rule-based movement, decision making, strategies, behavior design

  - Rule-based environmental programming, virtual reality

  - Rules for multi-agent/character games

  - Rules for serious games

  - Rule-based agent design

 

Rule-based Event Processing and Reaction Rules

  - Reaction rule languages and engines (production rules, ECA rules, logic

    event action formalisms, vocabularies/ontologies)

  - State management approaches and frameworks

  - Concurrency control and scalability

  - Event and action definition, detection, consumption, termination,

    lifecycle management

  - Dynamic rule-based workflows and intelligent event processing

    (rule-based CEP)

  - Non-functional requirements, use of annotations, metadata to capture

    those

  - Design time and execution time aspects of rule-based (Semantic) Business

    Processes Modeling and Management

  - Practical and business aspects of rule-based (Semantic) Business Process

    Management (business scenarios, case studies, use cases etc.)

 

Rules and Cross Industry Standards

  - Rules in Current Industry Standards, including:

    - XBRL: Extensible Business Reporting Language

    - MISMO: Mortgage Industry Standards Maintenance Org

    - FIXatdl: FIX Algorithmic Trading Definition Language

    - FpML: Financial products Markup Language

    - HL7: Health Level 7

    - Acord: Association for Cooperative Operations Research and Development

      (Insurance Industry)

  - Rules for Governance, Risk, & Compliance (GRC), e.g., rules for internal

    audit, SOX compliance, enterprise risk management (ERM), operational

    risk, etc

  - Rules and Corporate Actions

   

General Rule Topics

  - Rules and ontologies

  - Execution models, rule engines, and environments

  - From rules to FOL to modal logics

  - Rule-based reasoning with non-monotonic negation, modalities, deontic,

    temporal, priority, scoped or other rule qualification

  - Rule-based default reasoning with default logic, defeasible logic, and

    answer set programming

  - Graphical processing, modelling and rendering of rules

  - Rules in Semantic Web Technologies(SW), Artificial Intelligence (AI),

             Business Process  Modeling (BPM), Cloud Computing (CC),

             Intelligent Agents, Model-Driven Architecture (MDA),

             Software Engineering (SE), Unified Modeling Language (UML),

             e-Learning, e-Commerce, ...

  - Miscellaneous rule topics

   

Case studies, experience reports, and industrial problem statements are

particularly encouraged.

 

RuleML-2009 Challenge

============================================================================

The RuleML-2009 Demo Challenge is one of the highlights of RuleML-2009. We

invite submissions of demos where rules are used in interesting and

practically relevant ways to, e.g., derive useful information, transform

knowledge, provide decision support and provide automated rule-based

monitoring, enforcement, validation or management of the behavioural logic

of the application. The Challenge offers participants the chance to

demonstrate their commercial and open source tools, use cases, and

applications. Submissions are solicited in these categories:

 

  - Benchmarks (test cases, suites) with evaluations of (their own, other)

    rule engines and/or rule translators, possibly drawing on our growing

    pool at http://ruleml-challenge.cs.nccu.edu.tw

  - Case studies (use cases) implemented via engines/translators employing

    rule standards such as RIF, RuleML, CLIPS, Common Logic, SBVR, and ISO

    Prolog.

 

We welcome all demos about tools and applications using rules such as:

 

  - Derivation rules, including query and integrity rules 

  - ECA rules, including production rules, reaction rules, and rule-based

    CEP languages

 

Authors of demo are also invited to submit a Challenge demo paper for

publications in the conference proceedings, see the submission section below

for submission details.

 

Prizes will be awarded to the two best applications from each category. All

accepted demos will be presented in a special Challenge Session. A

submission to the RuleML Challenge has to meet the requirement that

declarative rules explicitly play a central role in the application.

Basically this means that:

Rules are explicitly represented in a declarative format and they are

decoupled from the application (rather than being compiled or hard-coded

into the application logic). The demo should preferably (but not necessarily)

be embedded into a web-based or distributed environment so that there will

be a need for features related to the RuleML conference topics, as listed

in the call for papers. For more details and the demo site web link please

consult the RuleML-2009 Challenge website:

 

                    http://ruleml-challenge.cs.nccu.edu.tw

 

 

Student Grant Awards

============================================================================

Two travel grants are available to students who are authors or co-authors of

papers or demos accepted for presentation at the symposium. The grants

include free registration and cover travel expenses up to 1000 dollars.

 

 

Conference Language

============================================================================

The official language of the conference will be English.

 

 

Submission

============================================================================

Authors are invited to submit original contributions of practical relevance

and technical rigor in the field, experience reports and show case/use case

demonstrations of effective, practical, deployable rule-based technologies

or applications in distributed environments. Papers must be in English and

may be submitted at

 

            http://www.easychair.org/conferences/?conf=ruleml2009

 

as:

 

Full Papers (15 pages in the proceedings)

Short Papers (8 pages in the proceedings)

RuleML-2009 Challenge Demo Paper + Show Cases (3-5 pages in the proceedings)

 

Please upload all submissions as PDF files in LNCS format

(http://www.springer.de/comp/lncs/authors.html). To ensure high quality,

submitted papers will be carefully peer-reviewed by 3 PC members based on

originality, significance, technical soundness, and clarity of exposition.

Authors are requested to upload the abstracts of their papers before June 9,

2009 and to upload their complete papers by June 16, 2009. The selected

Papers will be published in book form in the Springer Lecture Notes in

Computer Science (LNCS) series along with a CD with demo software and

documents. The best paper from all submissions will be determined by the PC and

a Best Paper Award will be handed over at the Symposium by a Sponsor. All

submissions must be done electronically. A selection of revised papers will be

 resubmitted to a special issue of a journal.

 

Submissions to the RuleML Challenge 2009 consist of a demo paper of 3-5

pages, describing the demo show case, and a link to more information about the

demo/show case, e.g. a project site, an online demonstration, a presentation

about the demonstration, or a download site for the demonstration. In case

of product demos, the link can be password-protected: please submit a

password for anonymous login from any Web browser, giving us the permission

to pass the password on to 3 PC members. The submissions should satisfy the

minimal requirements defined in the topics of interest and preferably exhibit

some of the additional desiderata. The more desiderata are met by an

application, the higher the score will be. The demos will be evaluated by the

RuleML-2009 Program Committee and prizes will be awarded to the two best

applications, sponsored by the RuleML Inc. non-profit organization.

 

 

Review Process

============================================================================

The submitted papers will pass the blind review process. At least three

members of the Program Committee will review each submission.

 

 

Important Dates:

============================================================================

Abstract submission deadline: June 9, 2009

Paper Submission deadline:    June 16, 2009

Notification of acceptance:   July 18, 2009

Camera ready due:             August 9, 2009

Symposium dates:              November 5-7, 2009

RuleML Challenge:             November 5, 2009

 

 

Conference Venue

============================================================================

RuleML-2009 will take place at the Bellagio in Las Vegas collocated with the

Business Rules Forum.

 

 

Keynote Speakers

============================================================================

 

- Sandro Hawke, W3C RIF Team Contact

  The Future of Rule Interchange

- TBA

 

 

Programme Committee

============================================================================

 

General Chair

--------------------

Adrian Paschke, Freie Universitaet Berlin, Germany

 

Program Chairs

--------------------

Guido Governatori, NICTA, Australia

John Hall, Model System, UK

 

Liaison Chair

--------------------

Hai Zhuge, Chinese Academy of Sciences

 

Publicity Chair

--------------------

William Langley, NRC-IRAP, Canada

 

 

Track Chairs

 

Rule Transformation and Extraction

--------------------

Erik Putrycz, Canada

Mark Linehan, IBM, USA

 

Rules and Uncertainty

--------------------

Matthias Nickles, University of Bath, UK

Davide Sottara, University Bologna, Italy

 

Rules and Norms

--------------------

Thomas Gordon, Fraunhofer FOKUS, Germany

Antonino Rotolo, CIRSFID, University of Bologna, Italy

 

Rule-based Game AI

--------------------

Benjamin Craig, National Research Council, Canada

Weichang Du, University of New Brunswick, Canada

 

Rule-based Event Processing and Reaction Rules

--------------------

Alex Kozlenkov, Betfair Ltd., UK

Adrian Paschke, Free Univ. Berlin, Germany

 

Rules and Cross Industry Standards

--------------------

Tracy Bost, Valocity, USA

Robert Golan, DBMind, USA

 

RuleML Challenge

--------------------

Yuh-Jong Hu, National Chengchi University, Taiwan

Ching-Long Yeh, Tatung University, Taiwan

Wolfgang Laun, Thales Rail Signalling Solutions GesmbH, Austria

 

 

RuleML 2009 Sponsors

============================================================================

 

Silver Sponsors

--------------------

Franz Inc

NICTA (National ICT Australia) Ltd

Corporate Semantic Web

 

Bronze Sponsors

--------------------

Logic Programming Associated Ltd

Modelsystems Ltd

ruleCore

 

 

RuleML 2009 Partners

============================================================================

W3C, World Wide Web Consortium

Belgian Business Rules Forum

MIT Sloan CIO Symposium

International Association for Artificial Intelligence and Law

Event Processing Technical Society

BPM Forum Belgium

October Rules Fest

SKG2009 5th International Conference on Semantic, Knowledge and Grid

RR-2009 3rd International Conference on Web Reasoning and Rule Systems

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Paul Browne | 13 May 10:15
Favicon
Gravatar

[rules-dev] Drools in Google App Engine

Folks,

Are there any plans to tweak Drools to allow it to run in a security constrained environment such as Google App Engine or Applets? I know some of the other JBoss.org projects have this on the 'todo' list.

When I try to load a simple web application using drools into the Google App Engine, I get the error below.The app itself is the sample 8 from the following web page, but tweaked according to the Google 'howto' to get it up and running in the app engine; http://code.google.com/p/red-piranha/

My understanding of the problem is that drools is using File access to check if the configuration file exists the first time it is run. This is constrained in App Engine - just like the J2EE spec says it should be (although most other app servers allow you to get away with this!). I know that if I tweak the source code there will be other points where similar file access is required.

While not trivial, would it be possible to add a one-line check for that the user has permission to do file.io before calling File.Exists  (the alternative , of catching and ignoring the AccessControlException is ugly!). The hardest part of this is that the check would need to be added at multiple points in the Drools source code.

Any thoughts / comments/ suggestions?

Paul

www.firstpartners.net/blog


WARNING: java.security.AccessControlException: access denied (java.io.FilePermission /home/paul/drools.rulebase.conf read)
13-May-2009 09:04:16 com.google.apphosting.utils.jetty.JettyLogger warn
WARNING: Nested in javax.servlet.ServletException: java.security.AccessControlException: access denied (java.io.FilePermission /home/paul/drools.rulebase.conf read):
java.security.AccessControlException: access denied (java.io.FilePermission /home/paul/drools.rulebase.conf read)
    at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
    at java.security.AccessController.checkPermission(AccessController.java:546)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
    at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:76)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
    at java.io.File.exists(File.java:731)
    at org.drools.util.ChainedProperties.loadProperties(ChainedProperties.java:225)
    at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:59)
    at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:31)
    at org.drools.util.ChainedProperties.<init>(ChainedProperties.java:25)
    at org.drools.RuleBaseConfiguration.init(RuleBaseConfiguration.java:174)
    at org.drools.RuleBaseConfiguration.<init>(RuleBaseConfiguration.java:133)
    at org.drools.common.AbstractRuleBase.<init>(AbstractRuleBase.java:147)
    at org.drools.reteoo.ReteooRuleBase.<init>(ReteooRuleBase.java:124)
    at org.drools.reteoo.ReteooRuleBase.<init>(ReteooRuleBase.java:101)
    at org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:57)
    at org.drools.RuleBaseFactory.newRuleBase(RuleBaseFactory.java:38)
    at net.firstpartners.drools.RuleRunner.loadRules(RuleRunner.java:39)
    at net.firstpartners.drools.RuleRunner.runStatelessRules(RuleRunner.java:167)
    at net.firstpartners.rp2.rp2Servlet.callRules(rp2Servlet.java:96)
    at net.firstpartners.rp2.rp2Servlet.service(rp2Servlet.java:137)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
    at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:54)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:306)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
    at org.mortbay.jetty.Server.handle(Server.java:313)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506)
    at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:830)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396)
    at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442)

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

[jira] Created: (DROOLS-496) calling decision table from within the Rule

calling decision table from within the Rule
-------------------------------------------

                 Key: DROOLS-496
                 URL: http://jira.codehaus.org/browse/DROOLS-496
             Project: drools-legacy
          Issue Type: Wish
    Affects Versions: 2.0-final
            Reporter: samadhan shimpi
            Assignee: bob mcwhirter
            Priority: Trivial

Can anyone please let me know if we can call decision table from withing the Rule.
If yes,then please provide the code for same.

Regards,
samiu

--

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Gmane