[rules-users] rules-users Digest, Vol 33, Issue 60

Nilima R Nilima.R at tcs.com
Fri Aug 21 09:10:39 EDT 2009


Hi 

I am new to Drools have developed one project using jsp,servlet and drools 
.But there is some problem the rule file don't get called .I have attached 
the project in zip format.Could you please let me know the cause of the 
problem.






Thanks
Nilima Rajendra Raichandani
Tata Consultancy Services
Mailto: nilima.r at tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.   IT Services
                        Business Solutions
                        Outsourcing
____________________________________________



rules-users-request at lists.jboss.org 
Sent by: rules-users-bounces at lists.jboss.org
08/21/2009 06:17 PM
Please respond to
rules-users at lists.jboss.org


To
rules-users at lists.jboss.org
cc

Subject
rules-users Digest, Vol 33, Issue 60






Send rules-users mailing list submissions to
                 rules-users at lists.jboss.org

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

You can reach the person managing the list at
                 rules-users-owner at lists.jboss.org

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


Today's Topics:

   1. Re: "extends" in rules (Chandana Pingle)
   2. RuleML-2009: Second Call for Submissions to the 2009 Rules
      Challenge (Wolfgang Laun)
   3. Drool Flow persistence Doubt (Pardeep.Ruhil at lntinfotech.com)
   4. Re: Maps in Drools (Edson Tirelli)


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

Message: 1
Date: Fri, 21 Aug 2009 13:22:20 +1000
From: Chandana Pingle <chandana.pingle at intunity.com.au>
Subject: Re: [rules-users] "extends" in rules
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
 <c93048200908202022g5411cd71s306b5ea9c6ff4193 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Thanks for ur reply

That works if i put everthing in one rule.
When using extends and trying to access the variable in RHS of sub rule

error in the editor is

Builder Error:Internal Error:Unable to find declaration in list while
generating the consequence invoker

Thanks
Chandana

On 8/21/09, mrhoden at franklinamerican.com <mrhoden at franklinamerican.com> 
wrote:
> It should work fine, the entire LHS is basically copied to the second
> rule. Just try it with it all in one rule and make sure you syntax is
> correct.
>
> -Michael
>
> On Aug 20, 2009, at 8:30 PM, Chandana Pingle
> <chandana.pingle at intunity.com.au
>  > wrote:
>
>> Hi,
>>
>> I found an example on using "extends" to extend a rule from another
>> rule.
>> Using extends would only include the WHEN side of the rule.
>>
>> I want to use the variable defined in the parent rule in sub rule
>> ,something like below example,how do i do that?
>>
>> rule A
>> when
>>    $a:String( )
>>    eval($a=="abc")
>> then
>>    do something
>> end
>>
>> rule B extends A
>> when
>>   $b:String( )
>>   $c:SomeClass()
>> then
>>   $c.someMethod($a,$b) //i am not able to use $a here
>>   end
>>
>>
>> Any suggestions?
>>
>> Thanks
>> Chandana
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


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

Message: 2
Date: Fri, 21 Aug 2009 12:58:58 +0200
From: Wolfgang Laun <wolfgang.laun at gmail.com>
Subject: [rules-users] RuleML-2009: Second Call for Submissions to the
                 2009            Rules Challenge
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
 <17de7ee80908210358w416da0eck2d19ad81288a7ecf at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

[Our apologies if you receive duplicates of this posting]

          3rd International Rules Challenge

                           at

                       RuleML-2009
         co-located with the Business Rules Forum

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

              http://2009.ruleml.org/challenge


====================================================================
     Second Call for Submissions to the 2009 Rules Challenge
====================================================================


The Rules Challenge is one of the highlights at RuleML-2009. Submissions
are bound to come to the attention of a wide audience, for reasons
outlined below. The goal of the Rules Challenge is to encourage any
work of practical relevance in the field of Rule Based Applications,
spanning the range from research to industry.


* What to submit

Submission topics may come from a wide range of the field, such as
(but not limited to) the following:

 - best practice solutions, e.g., design patterns and architecture models;
 - case studies and experience reports describing novel or interesting
   solutions and use cases;
 - benchmarks and other evaluations of rule-based systems;
 - tools for manipulating rules and related data in existing or
   emerging standards (e.g., RuleML, RIF, SBVR, PRR,...) or commercial
   rule-based system implementations;
 - engineering methods for development and deployment of rule-based
   solutions.

Authors are invited to submit original contributions of practical
relevance and technical rigor in the field.

A submission should consist of a paper (typically of 4-8 pages) describing
any theoretical foundation, implementation issues, technical details and
collected results of your work. If applicable, a demonstration program
illustrating your development would be highly valued.


* Publication and Review

Peer-reviewed  papers, which must be in English, will be published
in additional special Challenge proceedings, to be published (as
CEUR proceedings www.CEUR-WS.org), along with the online publication
of your demo in the highly visible growing Rules Challenge pool
(http://ruleml-challenge.cs.nccu.edu.tw). 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.  A selection of revised papers from the Challenge will
be resubmitted to a special issue of a journal.


* Where to submit

The RuleML-2009 Challenge papers submission website:
http://www.easychair.org/conferences/?conf=2009ruleschallenge
Please upload all submissions as PDF files in LNCS format
(http://www.springer.de/comp/lncs/authors.html).

The RuleML-2009 Demonstration systems submission website:
http://ruleml-challenge.cs.nccu.edu.tw
Alternatively, your demo could be provided online, as a Web service,
or for downloading from a site of your choice. Links to product demos
should be password-protected: please submit a password for anonymous
login from any Web browser, giving us the permission to pass the
password on up to 5 PC members.


* Why you should participate

RuleML-2009, the 3rd International Symposium on Rules, Applications and
Interoperability in Las Vegas, Nevada, USA, is one of the most attractive
international conferences, now being in the top 100 venues for scientific
impact factor in CiteseerX. Being this year collocated with the 12th
Business Rules Forum, the world's largest Business Rules event, it is
guaranteed to bring your contribution to the attention of the widest-ever
audience.

The participants of the Challenge will have the opportunity to be part
of the latest trends in rule technology and standards development
through high-density interaction with the experts in this field.

Last, but not least - there are prestigious prizes to be won!


* Important Dates

September  4th ? submission deadline for demo papers and systems
September 15th ? notification of accepted demo papers and systems
October   22th - submission deadline for demo systems without papers
October   29th - notification of accepted demo systems without papers


               MAKE RULEML-2009 YOUR SHOWCASE!


* 2009 Rules Challenge Program Committee

See Challenge website http://2009.ruleml.org/challenge.


===================================================================
                     About RuleML-2009
===================================================================
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. 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, and is now in the top 100 venues for scientific impact
factor in CiteseerX (http://citeseerx.ist.psu.edu/stats/venues).


===================================================================
                       Supported by
===================================================================
W3C, OMG, ACM, AAAI, ECCAI, IAAIL, ACM, Belgian Business Rules Forum MIT
Sloan CIO Symposium, EPTS, BPM Forum Belgium

===================================================================
                       Sponsored by
===================================================================
BBN Technologies
Franz Inc
NICTA (National ICT Australia) Ltd
Corporate Semantic Web
Logic Programming Associated Ltd
ruleCore
JBoss
Modelsystems Ltd

(Sponsoring opportunities: http://2009.ruleml.org/sponsors)
===================================================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20090821/7166e3a4/attachment-0001.html 


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

Message: 3
Date: Fri, 21 Aug 2009 16:48:24 +0530
From: Pardeep.Ruhil at lntinfotech.com
Subject: [rules-users] Drool Flow persistence Doubt
To: rules-users at lists.jboss.org
Message-ID:
 
<OFB3F49208.F7425B5B-ON65257619.0036268B-65257619.003D9903 at lntinfotech.com>
 
Content-Type: text/plain; charset="us-ascii"

Hi Users,

I am having a doubt regarding the Drools Workflow in my scenario.
I want to integrate Drools Flow in my application and have some doubts 
regarding the 
persistence of Workflow process instances.

Let suppose I have a workflow running in my application and at point 
my application crashed or i restart my application. So is their way i can
restart the workflow the point it was.

If i store the process instance Id in the database, so am I able to start 
my workflow process 
from where it had stopped , if it is possible can you tell me the method 
responsible for the same.


Please help me to get through the situation.


Thanks & Regards

Pardeep Ruhil
L&T Infotech Ltd
Mumbai
Ph: +919820283884

Larsen & Toubro Infotech Ltd.
www.Lntinfotech.com

This Document is classified as: 

L&T Infotech Proprietary   L&T Infotech Confidential   L&T Infotech 
Internal Use Only   L&T Infotech General Business 

This Email may contain confidential or privileged information for the 
intended recipient (s) If you are not the intended recipient, please do 
not use or disseminate the information, notify the sender and delete it 
from your system. 

______________________________________________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20090821/c683859d/attachment-0001.html 


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

Message: 4
Date: Fri, 21 Aug 2009 08:47:13 -0400
From: Edson Tirelli <tirelli at post.com>
Subject: Re: [rules-users] Maps in Drools
To: Rules Users List <rules-users at lists.jboss.org>
Message-ID:
 <e6dd5ba30908210547w4d8f7fdex24da77138a1ae077 at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

   Andre,

   The misunderstanding here is that the LHS, except for code blocks like
"eval", "return value expressions" and "accumulate code blocks", are all
"Drools Language". When you use the "dialect" attribute in a rule or 
package
you are telling the compiler what dialect (MVEL or Java) you will use 
inside
these code blocks mentioned previously + the language for the RHS.

    In other words:

Map( this["type"] == "Point", $x : this["x"], size == 5 )

    Everything you see in the previous expression is "Drools language", 
does
not matter if you set the dialect to java or mvel in the rule. It happens
that Drools uses the same map syntax as MVEL (and a lot of other scripting
languages). Also, we know, that drools implementation will resolve the 
first
2 above expressions in MVEL behind the scenes, and the 3rd will be 
resolved
nativelly, but that is not something users should have to worry about, 
since
they are writing it in "Drools Language".

    If they write an eval, THEN they need to differentiate between MVEL 
and
Java according to the chosen dialect.

rule xyz
   dialect "mvel"
when
   eval( ...here you write MVEL code... )
then
   // here you write MVEL code
end

rule xyz2
   dialect "java"
when
   eval( ...here you write JAVA code... )
then
   // here you write JAVA code
end

    []s
    Edson

2009/8/20 Andr? Thieme <address.good.until.2009.dec.14 at justmail.de>

> Edson Tirelli schrieb:
> >
> >    ooops... correct version:
> >
> > when
> >    Map( this["type"] == "Point", $x : this["x"] )
> >    Map( this["type"] == "Circle", this["x"] == $x )
> > then
> > end
>
> Okay, so in the mvel syntax this is possible.
> Can this also be achieved in the default rule syntax, without mvel?
>
> The mvel syntax needs to be interpreted at runtime, so my Clojure lib
> will have to output rules in Drools' native rule language.
>
> What interests me most is that first part:
> Map( this["type"] == "Point", $x : this["x"] )
>
>
> Andr?
> --
> Lisp is not dead. It?s just the URL that has changed:
> http://clojure.org/
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>



-- 
 Edson Tirelli
 JBoss Drools Core Development
 JBoss by Red Hat @ www.jboss.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://lists.jboss.org/pipermail/rules-users/attachments/20090821/b69a7d8e/attachment.html 


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

_______________________________________________
rules-users mailing list
rules-users at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


End of rules-users Digest, Vol 33, Issue 60
*******************************************


ForwardSourceID:NT0001E1C6 
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090821/6b2e0eee/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: drools.jar
Type: application/octet-stream
Size: 2999982 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20090821/6b2e0eee/attachment.obj 


More information about the rules-users mailing list