Alexandre Porcelli | 2 Sep 05:10 2008
Picon

[rules-dev] Changes on parser integration

Hello All,

 I made some changes on DrlParser, now all the previus parse methods
signatures has a new one: adding a boolean in front of each signature.
 What daes this booleans means? If this boolean is setted to true, it
activates the parse in editor-mode. Editor-mode is focused on editor
integration and it is not well optimized.
 So unless you need editor information (like : Location and partial
Descrs) you should not use the editor-mode.

Kris:
 I could provide you additional information for well formed sentences,
but in most cases it just returns Descrs before the first syntax
problem. Check this tes for a better reference on how to use this new
editor-mode: https://svn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-compiler/src/test/java/org/drools/lang/DRLIncompleteCodeTest.java

[]s
Alexandre Porcelli
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev

Kris Verlaenen | 2 Sep 13:23 2008
Picon

[rules-dev] Re: Changes on parser integration

Alexandre,

I'm trying the IDE now to check for possible remaining problems, but
looking quite good so far.
Added one test to your DRLIncompleteCodeTest that generates a fatal
error on a simple rule fragment:

	public void testIncompleteCode12() throws DroolsParserException,
RecognitionException {
		String input =
			"package a.b.c " +
			"import a.b.c.* " +
			"rule MyRule" +
			"  when " +
			"    m: Message(  ) " +
			"    " +
			"  then" +
			"end ";
		DrlParser parser = new DrlParser();
		PackageDescr descr = parser.parse(true, input);
		assertNotNull(descr);
		assertEquals("a.b.c", descr.getNamespace());
		assertEquals("a.b.c.*", ((ImportDescr)
descr.getImports().get(0)).getTarget());
	}
	
org.drools.compiler.DroolsParserException: Unknown error while
parsing. This is a bug. Please contact the Development team.
	at org.drools.compiler.DrlParser.compile(DrlParser.java:208)

(Continue reading)

Mark Proctor | 4 Sep 02:03 2008

[rules-dev] Drools Boot Camp (Oct 16-21) and Texas Rules Fest goes bigger and better (Oct 22-24)

http://blog.athico.com/2008/09/drools-boot-camp-and-texas-rules-fest.html
-------------
Due to large number of registrations the Texas Rules Fest has had to move location from the Addison to the Sheraton Dallas:
http://www.rulesfest.org/OctoberRulesFest/Location.html

As a reminder entire Drools team will be at the Dallas Rules Fest, this October 22nd to 24th. This is a must attend non-profit event, with $150 registration fee, for hands on rule training on a variety of products and disciplines with some top industry speakers and a fantastic agenda - just stuff, not fluff ;) Gary Riley will be there, author of the rules "bible" Expert Systems, talking about his rule engine the venerable Clips. Charles Forgy, the inventor of Rete and "father" of rule engines, will be there talking about his break through research in parallel executing rule engines. Daniel Selman from Ilog will be there giving tutorials on the ilog engine and tooling.

The organisers have asked me to remind everyone thinking of going to register sooner, rather than later, as they may actually sell out if the rate of registrations continues.

Come Join the Week Long Drools Boot Camp
The Drools team will actually be arriving the week before, on the 15th, for our team meeting which is open to all and starts official on the the 16th in the Best Western hotel conference room. So if you want to chat rules in general or specifically on your problems, or just get involved in some hard core programming, please do come along. We will be staying at the Best Western hotel which has rooms from just $69USD per night :)

So far we have Franklin America and German Aerospace joining us for the team meeting and hard core Drools coding, still room for more :)
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Edson Tirelli | 8 Sep 17:55 2008

[rules-dev] Stable tag


   All,

   Thanks to those that helped us reaching a stable trunk status. As of now, we have again a full successful trunk build. I tagged it just in case anyone needs a stable snapshot:

https://svn.jboss.org/repos/labs/labs/jbossrules/dev_tags/2008.09.08.stable_pre_Drools_5.0M2/

   Also, we shall release M2 soon now.

   []s
   Edson

--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat <at> www.jboss.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Edson Tirelli | 8 Sep 18:05 2008

[rules-dev] Target M2 for tomorrow (September 9th)


   All,

   We will try to release M2 tomorrow, September 9th, so, if there is anything you want to include, please do it today, but be particularly careful to not break the build.
   If you don't make it, don't worry, lets do an M3 asap after M2.

   []s
   Edson

--
Edson Tirelli
JBoss Drools Core Development
JBoss, a division of Red Hat <at> www.jboss.com
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Daniel Kalcevich | 10 Sep 18:00 2008

[rules-dev] Exporting individual packages from BRMS

Hello,

 

We are currently using BRMS and have about 240 rule packages loaded.  The current export only allows the export of the entire repository.  I am wondering if any thought has been given to providing the ability to export a subset of the total packages, and then be able to import them back?  I took a look at the BRMS latest development code and found the places where the BRMS is exporting, but did not see anything related to individual packages.  Can someone let me know their thoughts about whether a)this is possible and b)if it has been considered?  I was thinking of trying to write the code to do it if it is possible.

 

Thanks,

Daniel


This email and/or any files or attachments transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed, and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended recipient, or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this e-mail and/or any files or attachments transmitted with it is strictly forbidden. If you have received this email in error, please delete the e-mail and/or any files or attachments, and also notify the system manager (PostMaster <at> mercuryinsurance.com) of the error. Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email and/or any files or attachments transmitted with it.
_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
Adrian Paschke | 11 Sep 10:50 2008
Picon

[rules-dev] W3C RIF in Last Call

Dear All,

The W3C Rule Interchange Format (RIF) Working Group recently published "Last Call" drafts of two of its specifications:

   - "RIF Basic Logic Dialect" (BLD) specifies an XML format for rules

     at an intermediate expressive power.  The language is roughly

     Horn rules with URIs, datatypes, and builtins.  This goes beyond

     datalog (it has function terms), it but does not provide any kind

     of negation.   (Various forms of negation, and other features,

     are expected to be provided by dialects which extend BLD, to be

     published in the future.)

     http://www.w3.org/TR/rif-bld/

 

   - "RIF RDF and OWL Compatibility" explains and specifies how RIF

     rulesets are to be used in combination with RDF and OWL.

     http://www.w3.org/TR/rif-rdf-owl/

 

LAST CALL IS THE KEY TIME FOR EXTERNAL REVIEW.  The designs are essentially complete (the Working Group believes the design work is done), but things can still be changed in response to external input.

Additionally, input on editorial issues (especially pointing out

ambiguities) is always welcome.

 

In addition to these Last Call documents, the Working Group has published four other drafts:

 

   - RIF Production Rule Dialect (PRD) specifies an XML format for the

     exchange of production rules.  PRD and BLD are expected to be the

     basis of the two main dialect-branches, with RIF Core being the

     things in common between the two.  (We have not yet published a

     document expressing that intersection, but it can be inferred

     from the PRD and BLD specifications.)  This is a first public

     working draft.  This is an exellent time to comment on the

     general direction of the language, and give feedback on all the

     issues mentioned as Editor's Notes in the document.

     http://www.w3.org/TR/rif-prd/

 

   - RIF Framework for Logic Dialects (FLD) and RIF Datatypes and

     Builtins (DTB) provide common elements for specific dialects to

     use.

     http://www.w3.org/TR/rif-fld/

     http://www.w3.org/TR/rif-dtb/

 

   - RIF Uses Cases and Requirements (UCR), last published about two

     years ago, has been simplified and now has examples written in

     the PRD and BLD presentation syntaxes.  The examples can be

     hidden or revealed using Javascript controls.

     http://www.w3.org/TR/rif-ucr/

 

Feedback on all these documents should be sent to:

 

      public-rif-comments <at> w3.org

 

All comments (and responses to them) will be available at the public

archive:

      http://lists.w3.org/Archives/Public/public-rif-comments/

 

Please comment by 19 September so we have time to address your comments in incorporate any changes into our next round of publications.

 

Best,

Adrian Paschke

_______________________________________________
rules-dev mailing list
rules-dev <at> lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev
ganesh.p | 11 Sep 16:09 2008
Picon

[rules-dev] Agenda.getScheduledActivations() method is throwing NullPointerException


Hi All,

I have a init rule in which i am accessing Agenda.getScheduledActivations()
method. But it throws NullPointerException. I have tried with both
drools-core 4.0.4 and drools-core 4.0.7 jar files. 

Here are the rules:

package com.demo.rules;

import java.util.Date;

import org.drools.Agenda;
import org.drools.spi.Activation;

import com.demo.metric.TxInfo;
import com.demo.rules.RuleDemo;

function void removeActivationsForRule(String ruleName, Agenda agenda) {
	Activation[] actArr;
	Activation act;
	int len;

	try {
		actArr = agenda.getScheduledActivations();
		len = actArr.length;

		System.out.println("*** Scheduled Activation[] Length : " + len);
		for(int i=0;i<len;++i) {
			act = actArr[i];
			if(act.getRule().getName().equals(ruleName)) {
				System.out.println("*** ACTIVATION : " + act + " IS REMOVED ***");
				act.remove();
			}
		}
	} catch (NullPointerException ex) {
		System.out.println("##############");
		ex.printStackTrace();
		System.out.println("##############");
	}
}

rule 'init_rule1'
salience 10
when TxInfo(totalTime <= 100)
then
	removeActivationsForRule("rule1", drools.getWorkingMemory().getAgenda());
end

rule 'rule1'
duration 60000
when TxInfo(totalTime > 100)
then
	System.out.println("**** FIRING RULE : rule1 : -" + new Date() + "- ****");
end

Here is the stack trace:

##############
java.lang.NullPointerException
	at
org.drools.common.DefaultAgenda.getScheduledActivations(DefaultAgenda.java:351)
	at com.demo.rules.RuleDemo.removeScheduledActivations(RuleDemo.java:132)
	at com.demo.rules.RuleDemo.beforeActivationFired(RuleDemo.java:175)
	at
org.drools.event.AgendaEventSupport.fireBeforeActivationFired(AgendaEventSupport.java:103)
	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:540)
	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:518)
	at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:475)##############
##############

	at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:439)
	at com.demo.rules.RuleDemo.fireRule(RuleDemo.java:116)
	at com.demo.rules.RuleDemo.main(RuleDemo.java:221)
java.lang.NullPointerException
	at
org.drools.common.DefaultAgenda.getScheduledActivations(DefaultAgenda.java:351)
	at
com.demo.rules.RemoveActivationsForRule.removeActivationsForRule(RemoveActivationsForRule.java:27)
	at com.demo.rules.Rule_init_rule1_0.consequence(Rule_init_rule1_0.java:7)
	at
com.demo.rules.Rule_init_rule1_0ConsequenceInvoker.evaluate(Rule_init_rule1_0ConsequenceInvoker.java:22)
	at org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:554)
	at org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:518)
	at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:475)
	at
org.drools.common.AbstractWorkingMemory.fireAllRules(AbstractWorkingMemory.java:439)
	at com.demo.rules.RuleDemo.fireRule(RuleDemo.java:116)
	at com.demo.rules.RuleDemo.main(RuleDemo.java:221)
##############

I have attached my source code. 

Thanks and Regards,
Ganesh

  http://www.nabble.com/file/p19429177/RuleDemo.java RuleDemo.java 
--

-- 
View this message in context: http://www.nabble.com/Agenda.getScheduledActivations%28%29-method-is-throwing-NullPointerException-tp19429177p19429177.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 | 12 Sep 14:00 2008

[rules-dev] Rule Engine's and Performance Misconceptions

After seeing some recent user postings I thought I'd write up this blog 
article, so that the community can just reference it in the future when 
similar questions come up:
http://blog.athico.com/2008/09/rule-engines-and-performance.html

Please vote for it in digg and dzone:
http://www.dzone.com/links/rule_engines_and_performance_misconceptions.html
http://digg.com/programming/Rule_Engine_s_and_Performance_Misconceptions

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

Adrian Paschke | 12 Sep 14:52 2008
Picon

[rules-dev] RuleML-2008 Call for Participation - One week left for Early Bird Registration


[ our apologies should you receive this message more than one time ]

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

                      CALL FOR PARTICIPATION

                2008 International RuleML Symposium

         on Rule Interchange and Applications (RuleML-2008)

                October 30-31, 2008, Orlando, Florida

                      http://2008.ruleml.org

  ***   The early registration deadline is only ONE WEEK away ***

                       on 19 September 2008

              Register by September 19, receive $100 off.

                 Special team discounts also available  

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

                        Open Calls

                            for

           RuleML-2008 Challenge/Showcase Demos,

        Lightning/Highlight Talks & Fast Abstracts

           http://2008.ruleml.org/lightning.php

             Submission deadline: September 15

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

We invite you to attend the 2008 International RuleML Symposium on Rule

Interchange and Applications (RuleML-2008) to be held during October 30-31,

2008 in Orlando, Florida. As this is a relatively new event, being only its

2nd year, participants can make a difference about shaping the future

direction and structure of the field, including about rule standards

supporting their own approaches and about their own possible involvement in

the organization of future events.

Co-located with the 11th International Business Rules Forum, RuleML-2008

provides a unique opportunity to exchange your ideas about practical

distributed rule technologies and rule-based applications. Meet the Web
rules

experts and discuss with them status and progress of the rules technology.

Discuss your recent work with colleagues in the informal atmosphere of the

symposium. You should not miss the high-quality technical presentations, the

innovative applications presented in detail and the state of the art reports

of the plenary speakers. RuleML-2008 is a must for all people active in
rules

technologies or entering the field.

The scope of RuleML-2008 covers all topics relevant to rule-based

technologies, rule interchange formats and rule-based applications as well
as

discussions of lessons learned that have to be taken into account when

employing rule-based technologies in distributed, (partially) open,

heterogeneous environments.

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

Technical Program

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

The symposium will feature a strong, single-track technical program

consisting of:

* Keynote speakers:

  o Michael Kifer (State University of New York at Stony Brook), on "Rule

    Interchange Format: Not Just Syntax".

    Joint keynote between RuleML-2008 and RR2008.

  o David Luckham (Stanford University, USA) on "The Power of Events: An

    Introduction to Complex Event Processing in Distributed Enterprise

    Systems".

  o Paul Haley (Haley Systems, Inc) on "Event and Process Semantics will

    Rule".

  o Benjamin Grosof (Vulcan, Inc.) on the SILK KRR system of the

    HALO project.

* Joint Lunch Panel held in conjunction with the co-located Business Rules

  Forum on "Rules on the Web".

* Lightning talks/Highlight talks

* A RuleML-2008 Challenge with prizes to demonstrate tools, use cases, and

  applications.

* Industry, demo and scientific research & development papers and

  presentations advancing and assessing the state of the art in event and

  rule-based systems selected in a peer-reviewed fashion by an

  international program committee.

* Papers will be published as a Springer LNCS proceedings. A related journal

  special issue (IEEE TKDE) on "Rule Representation, Interchange and

  Reasoning in Distributed, Heterogeneous Environments", open to all, has

  been scheduled.

* Social events to promote networking among the symposium delegates in an

  informal setting.

The full symposium program is available at:

http://2008.ruleml.org/program.php

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

RuleML-2008 Registration

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

Early Registration Deadline:   September 19, 2008

Late Registration Deadline:    after September 19, 2008

RuleML-2008 Symposium:         October 30-31, 2008

The registration page is available at:

http://2008.ruleml.org/registration.php

As shown there, special discounts are available for our collaboration

partners and sponsors, as well as a group discount.

The symposium will be held at the Buena Vista Palace in Orlando,

Florida, near the Walt Disney World Resort. Information about

the symposium venue are available here:

http://2008.ruleml.org/venue.php

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

RuleML-2008 Challenge

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

The new RuleML-2008 Challenge provides an excellent opportunity to

demonstrate rule-based tools, use cases, and applications (and to win a

prestigious prize). Late-breaking demos for the RuleML-2008 Challenge are

welcome. Please send title, author(s) and brief description by September,

15th to ruleml2008 <at> easychair.org

More detail can be found at:

http://2008.ruleml.org/lightning.php#soft

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

Co-located with:

         The 11th International Business Rules Forum

              http://www.businessrulesforum.com

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

Sponsored by:

Gold level  : Vulcan Inc

Silver level: Model Systems

Bronze level: STI Innsbruck, ruleCore, JBoss

Sponsoring opportunities: http://2008.ruleml.org/sponsoring/

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

In Co-operation with:

AAAI, W3C, BPM-Forum, Business Rules Forum, ECCAI, OASIS, OMG,

Dallas Rules Group, Belgium Business Rules Forum, MIT Sloan CIO Symposium,

Event Processing Technical Society, ACM, ACM SIGART, ACM SIGMIS, ACM SIGWEB,

Open Research Society, IEEE Computer Society, IEEE Systems Man and
Cybernetics

Society, IEEE SMCS TC on Intelligent Internet Systems, IEEE SMCS TC on

Distributed Intelligent Systems, IEEE Computer Society TC on Autonomous and

Autonomic Systems

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

Media Partners:

                  Springer LNCS, MoDo Marketing

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

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


Gmane