[jira] Created: (DROOLS-498) .rfm file is not getting generated in Drools 5.0.0 M4, where as it is getting generated in Drools 4.0.7

.rfm file is not getting generated in Drools 5.0.0 M4, where as it is getting generated in Drools 4.0.7 
--------------------------------------------------------------------------------------------------------

                 Key: DROOLS-498
                 URL: http://jira.codehaus.org/browse/DROOLS-498
             Project: drools-legacy
          Issue Type: Task
         Environment: Drools 5.0.0 M4,Windows XP 
            Reporter: samadhan shimpi
            Assignee: bob mcwhirter
            Priority: Critical

For Drools 4.0.7  : When .rf file is created(with properties) and saved then .rfm file is generated
automatically in eclipse with plugins for 4.0.7.
For Drools 5.0.0.M4 :  When .rf file is created(with properties) and saved then .rfm file is not at all
generated in eclipse with plugins for 5.0.0.M .
Is there any plugin missing for eclipse.. or anyother reason? 

Any help is highly appreciated.

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

(Continue reading)

[jira] Resolved: (DROOLS-498) .rfm file is not getting generated in Drools 5.0.0 M4, where as it is getting generated in Drools 4.0.7


     [
http://jira.codehaus.org/browse/DROOLS-498?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

samadhan shimpi resolved DROOLS-498.
------------------------------------

    Resolution: Fixed

I have resolved the issue.
In drools 5 we need not to use .rfm file for rule flow instead .rf file is used.
But then the syntax slightly changes....

old syntax: 
builder.addRuleFlow(new InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rfm")));

new syntax: 
builder.addProcessFromXml(new
InputStreamReader(EvalDTAndRF.class.getResourceAsStream("/PremiumCalculationRF.rf"))); 

> .rfm file is not getting generated in Drools 5.0.0 M4, where as it is getting generated in Drools 4.0.7 
> --------------------------------------------------------------------------------------------------------
>
>                 Key: DROOLS-498
>                 URL: http://jira.codehaus.org/browse/DROOLS-498
>             Project: drools-legacy
>          Issue Type: Task
>         Environment: Drools 5.0.0 M4,Windows XP 
>            Reporter: samadhan shimpi
>            Assignee: bob mcwhirter
(Continue reading)

Premkumar Stephen | 5 Jun 13:21
Picon

Comments Requested: Ideas on storing Drools Knowledge: The argument for JIRA as a knowledge store as well

Hello all,

As a new user to Drools, I have been frustrated often and unable to find much information. Below is an IM session where a couple of us discuss what is missing and how we can fix it?
A lot of knowledge imparted in the IRC channels does not get recorded. I believe it is the same with the mailing lists. They contain a lot of code samples and fixes to them.
We also could utilize http://drools.pastebin.com/ for our code samples that do not need persistence.

I would like to hear from the members ( and most importantly) from the core group on what they think of this. Since they are meeting together anyways, I hope that this is one of the discussions they have over beer.



==============================================================
mallen: Calling all BRMS / Guvnor experts! Does anyone know how to upload multiple (50+) rules packages in one go? either through the web interface or perhaps even programatically so we could knock a maven task together for it?
[06:05am] krisv left the chat room. (Ping timeout)
[06:06am] wheter_: mallen: I will be interested in such a solution as well? jarek, can we start open JIRAs for such knowledge sharing too. If you ( or others) update the JIRA, this will be more visible. there is a lot of stuff that is posted on this IRC channel that just goes away. How about a JIRA category called "FAQ" or "Knowledge sharing"? Will it pollute the JIRA process?
[06:08am] wheter_: The nice thing would be that as bugs are fixed and workarounds are found, they could be moved to the "FAQ" category as well so that others who get the same problems can search and find it there
[06:08am] bjornelo: sounds like something that belongs on a wiki or something else that isn't an issue tracker
[06:08am] wheter_: right, but see the state of our wiki
[06:08am] bjornelo: it's empty, afaik
[06:09am] wheter_: bjornelo: people will not go and update the wiki after something is posted/a solution is found
[06:09am] wheter_: mostly
[06:09am] wheter_: we need to make the process easier and as automated as possible
[06:09am] bjornelo: but people will go and update JIRA?
[06:10am] wheter_: In this idea, the conversation itself is tracked and no further updates are needed.
[06:11am] wheter_: No, mallen has to create a JIRA and bring that to the attention of the IRC folks bjornelo.  When you have a solution, instead of typing it into the chat channel, you update the JIRA and the conversation should continue there for subjects that are really useful
[06:12am] bjornelo: aha
[06:12am] wheter_: bjornelo, if i was not around at this time, I would not have known that there are others like mallen who are interested in this solution
[06:12am] wheter_: some conversation does belong here in IRC but for example see how me and Jaroslaw (jarek) communicated in GUVNOR-353
[06:12am] jarek: wheter_: sounds like a 'feature request' - which can be also created in jira (besides bugs and tasks); however I wouldn't use jira as a FAQ/wiki
[06:12am] bjornelo: what mallen posted sounds to me like what should be a feature request on JIRA
[06:13am] wheter_: we used both the IRC and JIRA
[06:13am] wheter_: I beleive now that GUVNOR-353 is very well documented
[06:13am] wheter_: bjornelo: I suggest lets give it a try
[06:14am] wheter_: If it looks too bad, you can always blow it away
[06:15am] wheter_: bjornelo: I agree; but someone might post such a solution on IRC, and this knowledge just goes away
[06:15am] bjornelo: i'm not trying to be adversarial. i want to see a more structured source of information about drools as much as the next guy. i'm just not sure JIRA is the place to put it
[06:15am] wheter_: I am suggesting a way to steadily improve our knowledge collection
[06:16am] wheter_: bjornelo: the wiki is an awesome idea but needs effort. The JIRA i believe is the current best way to go about it. I am going to take this conversation of ours and post in the dev mailing list to see how others think about it
[06:16am] bjornelo: how about if there's an interesting thread of conversation on IRC, we create a new page on the drools wiki and paste in the conversation there? then give it a headline that describes the subject. link to it from some index of informal rule engine conversations?
[06:16am] wheter_: yes bjornelo; but see, it requires an active action; how many people follow up
[06:17am] wheter_: the devs are so busy
[06:17am] bjornelo: then, if someone wants to formalize and clean up the information in the conversation, that person can edit the page or create a replacement
[06:17am] wheter_: the rest of the users have their own problems
[06:17am] bjornelo: how do you plan to avoid an active action for posting stuff on JIRA? if nothing else, the registering process for jboss community is a PITA
[06:18am] wheter_: i have GUVNOR-353 resolved, but do you think I am going to take the time to load it into the wiki right now? My immediate problem is over and I am looking to solve my next one
[06:18am] bjornelo: i suppose we could have an irc bot in here that we could send triggers to that would autogenerate something on a webpage.. how does bash.org work, for example?
[06:18am] wheter_: bjornelo, it really is one time, and your argument is defeated, since you update the wiki, you need to register too
[06:19am] bjornelo: hmmm
[06:19am] wheter_: bjornelo: I am not familiar with IRC bots' capability
[06:20am] wheter_: reg. your comment about structured source of information, I think the JIRA is highly structured
[06:20am] wheter_: since it has its own category, it will not come in the way of developers looking for bugs to fix or feature requests
[06:20am] wheter_: and we can cross-link FAQs to other bugs / feature requests
[06:21am] bjornelo: difficult to search through, though. i guess if you could have a category of 'issues' that are just knowledge exchange, it would be easier to find, but that would also require someone opening a new issue or something
[06:22am] wheter_: that is what I suggested at the very beginning
[06:22am] wheter_: a new category like "bug" or "feature request"
[06:22am] wheter_: it really is not hard..JIRA also allows you to put in the version of drools it is eligible for
[06:23am] wheter_: i believe the JIRA has more structure for adding information that the wiki does ( in the wiki, you need to enter everything manually)
[06:23am] wheter_: you can search better on a JIRA
[06:23am] bjornelo: so you mean that the devs should look at the comments on the issue and move it to a 'knowledge' category when they solve the issue, if they feel that it's an interesting topic?
[06:24am] wheter_: now, maybe the search engines might not index it.
[06:24am] wheter_: bjornelo: Agreed
[06:24am] wheter_: yes
[06:24am] wheter_: see my comments above on that
[06:24am] wheter_: me, being new to Drools am really stuck and could use the wide body of information
[06:25am] wheter_: this also frees up the devs, since people do not come back asking for the same issue
[06:26am] bjornelo: i'd suggest that this new category is another type of 'unresolved' or something, signalling that the information contained in the issues is stuff that needs to be structured and moved into some kind of documentation. be it either wiki or the manual or whatever else
[06:26am] bjornelo: 'due for documentation' or something
[06:26am] wheter_: To integrate the wiki with the JIRA, we could categorize knowledge based on subcomponents, like Guvnor, Core, Solver, Chance etc in wiki, under that the wiki should have different FAQs and then under that, a link to the JIRA in question
[06:27am] wheter_: bjornelo: documentation that is pushed off for later, especially for minor things, in my experience does not happen...it does not have the urgency and in open source projects, people participate for the urgency
[06:28am] bjornelo: true, but in that case it would still be available on jira. the category is just named slightly differently
[06:28am] wheter_: I can start off on the initial integration of the wiki and JIRA if conan and the rest of the folks ok it..my small bit for the community
[06:29am] wheter_: right - so information is available from wiki, but in a very structure format...
[06:29am] bjornelo: i think of it a bit like forums online. if you want to find some old piece of information, you often have to go digging through 20+ pages of old threads to find what you're looking for. and often it's hiding in a thread that isn't really relevant to what you're looking for
[06:29am] wheter_: also, people can add to that body of knowledge in the JIRA as well
[06:30am] wheter_: right, but the main info can be summarized and put on the wiki, if someone will do it, with a link to the JIRA
[06:30am] wheter_: bjornelo: very few JIRAs run like comment threads
[06:30am] bjornelo: i'm picturing a bunch of JIRA issues containing irc convos and other interesting bits of information. the issues are 'open' in the sense that they are waiting for someone to pick them up and write an article or whatever about it and stick it on the wiki. if and when they do, they close the corresponding JIRA issue, since the wiki now has structured information to replace it
[06:31am] wheter_: I agree, if the wiki has captured all this information, then this JIRA can be moved to a closed state, but the link still kept
[06:31am] bjornelo: and the wiki could be divided into expert, guvnor, flow etc. each headlined with a link to the corresponding list of open JIRA issues
[06:32am] wheter_: now, we are echoing each other
[06:32am] bjornelo: so, the user starts by looking at the wiki. if the information is not found there, the user follows the link to the JIRA issue list and can look further
[06:32am] wheter_: agree
[06:32am] bjornelo: yep
[06:32am] wheter_: Here's what I am going to do
[06:32am] bjornelo: now we just need someone to implement it
[06:33am] wheter_: I am going to send a mail to the mailing lists with our chat conversation out there, and see the responses to it, specifically from the core team.
[06:33am] wheter_: bjornelo: are you core?
[06:33am] bjornelo: not at all. relatively newbie user
[06:33am] wheter_: well, we are doing our bit I guess
[06:34am] bjornelo: i'll be quite interested in seeing responses to this
[06:34am] wheter_: the funny part is we buried mallen's question and no one will see it now
[06:34am] wheter_: sorry mallen
[06:34am] bjornelo: lemme just do this, then.
[06:34am] bjornelo: 12:04 < mallen> Calling all BRMS / Guvnor experts! Does anyone know how to upload multiple (50+) rules packages in one go? either through the web interface or perhaps even programatically so we could knock a  maven task together for it?


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

Regards,
Prem

Adrian Paschke | 7 Jun 09:46
Picon
Picon

[rules-dev] 3rd International Symposium on Rules, Applications and Interoperability (RuleML-2009)

        [Apologies for multiple postings]

                               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/

                 co-located with the 12th Business Rules Forum

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

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
* New categories in the Challenge with prestigious prizes 
* Rules standards session, W3C RIF workshop, and joint BRF/RuleML lunch 
  panel on Web Rules

Sponsored by
===================================================================

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

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 
    rule
  - 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
  - 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 demo papers and 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 Systems, 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

Program Committee Members
--------------------
http://2009.ruleml.org/pc

RuleML 2009 Sponsors
===================================================================

Silver Sponsors
--------------------
NICTA (National ICT Australia) Ltd
Corporate Semantic Web
Franz Inc

Bronze Sponsors
--------------------
Logic Programming Associated Ltd
ruleCore
jBoss
Modelsystems Ltd

RuleML 2009 Partners
===================================================================
W3C, World Wide Web Consortium
OMG, Object Management Group
ACM, Association for Computer Machinery
AAAI
ECCAI
International Association for Artificial Intelligence and Law
ACM SigMis
ACM SigArt
Belgian Business Rules Forum
MIT Sloan CIO Symposium
EPTS, 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

Jervis Liu | 8 Jun 05:12
Picon
Favicon

[rules-dev] Upgrade JackRabbit from 1.4.5 to 1.5.6

Hi, is there any objection if I upgrade JackRabbit from version 1.4.5 to 
1.5.6? Compared to 1.4.5, 1.5.6 is the latest major release, has several 
new features, improvements etc. It also has a number of bug fixes for 
concurrency, which might be helpful for the issue I am currently working 
on: https://jira.jboss.org/jira/browse/GUVNOR-346

Cheers,
Jervis

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

glasscat | 9 Jun 07:00
Favicon

[rules-dev] Loading of updated resources


I have a question related to the KnowledgeAgent. I'm using 5.0.1, and trying
to figure out the best way to pull updated resources from disk or guvnor.

If I use the KnowledgeAgent to poll for changes, when it load the changes in
an existing populated KnowledgeBase do I lose all the facts that are
inserted into the working memory?

Thanks in advance.

--

-- 
View this message in context: http://www.nabble.com/Loading-of-updated-resources-tp23936382p23936382.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 | 9 Jun 10:06

Re: [rules-dev] Loading of updated resources

glasscat wrote:
> I have a question related to the KnowledgeAgent. I'm using 5.0.1, and trying
> to figure out the best way to pull updated resources from disk or guvnor.
>
> If I use the KnowledgeAgent to poll for changes, when it load the changes in
> an existing populated KnowledgeBase do I lose all the facts that are
> inserted into the working memory?
>   
This is a user question, please use the USER mailing list:
http://labs.jboss.org/drools/lists.html

The agent currently only supports newInstance=true. So each change will 
build a new knowledgebase. Any existing sessions will continue to work 
off the old knowledgebase.

Mark
> Thanks in advance.
>
>   

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

VinuJay | 11 Jun 07:18

[rules-dev] Inserting Collection into WorkingMemory


Hi my fact object looks like this,

class ProcessRequest {

  Long requestId;

  String processType;

  String assigneeUsers;

  List<String> businessData;

  //Getters and Setters

}
I have inserted the fact object into working memory in this way
WorkingMemory workingMemory = ruleBase.newStatefulSession();	
FactHandle factObject = workingMemory.insert(processRequest );
workingMemory.fireAllRules();

My question is how to use the values in the business data for comparison in
the rules.drl file rule "Audit"
when
	p: ProcessRequest(processType == "Audit" && SSN == 1234) then
	p.setAssigneeUsers("AuditUser1");
end

When i try with the above rule it says no field extractor found for SSN, SSN
is part of the businessdata(List<String>)

Please do suggest me
1. How to make the Workingmemory aware of the Collection - businessData 2.
Change the rules.drl file syntax to access values from Collection.
--

-- 
View this message in context: http://www.nabble.com/Inserting-Collection-into-WorkingMemory-tp23975453p23975453.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

surya_n2007 | 12 Jun 21:45
Picon
Favicon

[rules-dev] Throwing runtimeException 4.0.7 not supposed


Throwing runtime exception in this example inserted person object as person
name is null. Ideally need to add error 
"P01" and in second rule checks for precondition "P01" exist and skip rule.
But i am getting the below error. 
Please let me know this is bug, i dont want to check again "Second Rule"
name object is not null. 
 I think this is happening since drools frist try to run all rules before
start execution. 

please let me know whether anything wrong on my end. 

Rule Engine COde : 

   Person person = test.new Person(); 
// Name name = person.new Name(); 
// person.setName(name); 
   workingMemory.insert(person); 

rule "First Rule" salience 100 lock-on-active true 
when 
        person : Person() 
        eval(person.name == null) 
then 
        person.errors.add("P01"); 
        System.out.println("Rule 1 invoked"+person.errors); 
        update(person); 
end 

rule "Second Rule" salience 99 lock-on-active true 
when 
        person : Person() 
        eval(!person.errors.contains("P01")) 
        eval(person.name.firstName=="Bob") 
then 
        person.name.suffix="Mr"; 
        System.out.println("Rule 2 invoked"); 
end 

org.drools.RuntimeDroolsException:
com.sample.Rule_Second_Rule_0Eval1Invoker <at> 4b42aa1e :
java.lang.NullPointerException 
        at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:82) 
        at
org.drools.reteoo.EvalConditionNode.assertTuple(EvalConditionNode.java:148) 

at
org.drools.reteoo.SingleTupleSinkAdapter.propagateAssertTuple(SingleTupleSinkAdapter.java:29) 
        at
org.drools.reteoo.EvalConditionNode.assertTuple(EvalConditionNode.java:157) 

at
org.drools.reteoo.CompositeTupleSinkAdapter.createAndPropagateAssertTuple(CompositeTupleSinkAdapter.java:73) 
        at
org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:116) 

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 com.sample.DroolsTest.main(DroolsTest.java:36) 
Caused by: java.lang.NullPointerException 
        at com.sample.Rule_Second_Rule_0.eval1(Rule_Second_Rule_0.java:14) 
        at
com.sample.Rule_Second_Rule_0Eval1Invoker.evaluate(Rule_Second_Rule_0Eval1Invoker.java:20) 
        at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:77) 
        ... 14 more 
--

-- 
View this message in context: http://www.nabble.com/Throwing-runtimeException-4.0.7-not-supposed-tp24005070p24005070.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

Wolfgang Laun | 13 Jun 07:47
Picon

Re: [rules-dev] Throwing runtimeException 4.0.7 not supposed

You have answered your question yourself: evaluation of patterns is
done whenever a fact is added; salience will only order firings. Thus,
the access person.name.firstName runs into the NPE.

One way to cope with this would be to introduce a Name object which
represents "no name", available as a public static object in Name; use
this to initialize Person objects. This will still let you detect the
absence of a name (name == Name.noName) but it won't run into the NPE
in your second rule.

-W

On 6/12/09, surya_n2007 <surya_n2007 <at> yahoo.co.in> wrote:
>
> Throwing runtime exception in this example inserted person object as person
> name is null. Ideally need to add error
> "P01" and in second rule checks for precondition "P01" exist and skip rule.
> But i am getting the below error.
> Please let me know this is bug, i dont want to check again "Second Rule"
> name object is not null.
>  I think this is happening since drools frist try to run all rules before
> start execution.
>
> please let me know whether anything wrong on my end.
>
>
> Rule Engine COde :
>
>    Person person = test.new Person();
> // Name name = person.new Name();
> // person.setName(name);
>    workingMemory.insert(person);
>
>
> rule "First Rule" salience 100 lock-on-active true
> when
>         person : Person()
>         eval(person.name == null)
> then
>         person.errors.add("P01");
>         System.out.println("Rule 1 invoked"+person.errors);
>         update(person);
> end
>
> rule "Second Rule" salience 99 lock-on-active true
> when
>         person : Person()
>         eval(!person.errors.contains("P01"))
>         eval(person.name.firstName=="Bob")
> then
>         person.name.suffix="Mr";
>         System.out.println("Rule 2 invoked");
> end
>
>
>
>
> org.drools.RuntimeDroolsException:
> com.sample.Rule_Second_Rule_0Eval1Invoker <at> 4b42aa1e :
> java.lang.NullPointerException
>         at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:82)
>         at
> org.drools.reteoo.EvalConditionNode.assertTuple(EvalConditionNode.java:148)
>         at
> org.drools.reteoo.SingleTupleSinkAdapter.propagateAssertTuple(SingleTupleSinkAdapter.java:29)
>         at
> org.drools.reteoo.EvalConditionNode.assertTuple(EvalConditionNode.java:157)
>         at
> org.drools.reteoo.CompositeTupleSinkAdapter.createAndPropagateAssertTuple(CompositeTupleSinkAdapter.java:73)
>         at
> org.drools.reteoo.LeftInputAdapterNode.assertObject(LeftInputAdapterNode.java:116)
>         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 com.sample.DroolsTest.main(DroolsTest.java:36)
> Caused by: java.lang.NullPointerException
>         at com.sample.Rule_Second_Rule_0.eval1(Rule_Second_Rule_0.java:14)
>         at
> com.sample.Rule_Second_Rule_0Eval1Invoker.evaluate(Rule_Second_Rule_0Eval1Invoker.java:20)
>         at org.drools.rule.EvalCondition.isAllowed(EvalCondition.java:77)
>         ... 14 more
> --
> View this message in context:
> http://www.nabble.com/Throwing-runtimeException-4.0.7-not-supposed-tp24005070p24005070.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


Gmane