Searching for archived packages in the repository
by Carlsen, Len
Hi,
I am trying to get a list of all archived packages from the Drools
repository but I can't seem to get packages that have been archived.
Below is the query I am using to get a list of archived packages:
RulesRepository repo = createRepository();
PackageItem item = repo.createPackage( "testPackage", "A test" );
item.archiveItem( true );
item.checkin( "Archive test" );
System.out.println( "Archived=" + repo.loadPackageByUUID( item.getUUID()
).isArchived());
String sql = "SELECT "
+ PackageItem.TITLE_PROPERTY_NAME + ", "
+ PackageItem.DESCRIPTION_PROPERTY_NAME + ", "
+ PackageItem.CONTENT_PROPERTY_ARCHIVE_FLAG;
sql += " FROM " + PackageItem.RULE_PACKAGE_TYPE_NAME;
sql += " WHERE ";
sql += " jcr:path LIKE '/"
+ RulesRepository.RULES_REPOSITORY_NAME + "/"
+ RulesRepository.RULE_PACKAGE_AREA + "/%'";
//sql += " AND " + PackageItem.CONTENT_PROPERTY_ARCHIVE_FLAG + " =
'true'";
Query q =
repo.getSession().getWorkspace().getQueryManager().createQuery( sql,
Query.SQL );
QueryResult res = q.execute();
Iterator<PackageItem> it = new PackageIterator( repo, res.getNodes() );
while( it.hasNext() )
{
PackageItem pi = it.next();
System.out.println( "***** item=" +pi.getUUID() + ", name="
+pi.getName() + ", isArchived=" + pi.isArchived() );
}
If I don't archive a package then the code returns my package. I know
that the package is archived because if I do
"loadPackageByUUID( uuid ).isArchived()" it return true.
Does anyone know what I am doing wrong here?
Thanks,
Len
16 years, 9 months
Sponship Request for RuleML
by Mark Proctor
I will be at the RuleML conference again this year. Last year was a
great event with lots of good presentations and knowledge sharing. While
the conference is organised by the RuleML group it is not specific to
the RuleML standard and various standards and technologies are discussed
at this event - which is what makes it so important.
As always these things can't happen without funding. This year Red Hat
will be a RuleML sponsor and I strongly encourage others to help sponsor
this fantastic event. Sponsorship starts from as little as $500 for
Bronze. You can view the pdf detailing these sponsorship packages here
<http://www.athico.com/ruleml/Sponsorship%20Package%202008.pdf>
http://www.athico.com/ruleml/Sponsorship%20Package%202008.pdf.
International RuleML Symposium on Rule Interchange and Applications
The 2008 International RuleML Symposium on Rule Interchange and
Applications, RuleML-2008 (http://2008.ruleml.org
<http://2008.ruleml.org/>), is the primary industrial-oriented meeting
place to discuss the applicability and commercialisation of web rule
technologies for enterprises and public organizations. At this,
RuleML-2008 addresses users, system providers, practitioners, developers
and researchers as well as representatives of rule/event standardization
efforts and open source rule communities. After last year's highly
successful RuleML-2007 (http://2007.ruleml.org
<http://2007.ruleml.org/>), RuleML-2008 again joins the established,
practically oriented Business Rules Forum
(http://www.businessrulesforum.com <http://www.businessrulesforum.com/>)
to help cross-fertilizing between Web and Business Logic technology.
The symposium will be again held in Orlando, Florida, US, October 30/31,
2008. Participants will be offered an exciting venue to exchange new
ideas, practical developments and experiences on issues related to the
engineering, management, integration, interoperation and interchange of
rules in open distributed environments such as the Web. RuleML-2008 will
enable delegates to better understand web rules and event processing
technologies and their potential, and how to exploit these technologies
in their organizations
The RuleML-2008 highlights will include:
1. Plenary keynotes and a panel discussion featuring prominent and
visionary speakers.
2. A RuleML-2008 Challenge with prizes to demonstrate tools, use
cases, and applications.
3. Scientific research, industry, and demo 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.
4. Invited talks given by world-class scientists and industrials
featuring conceptual topics on event and rule-based computing and
industry success stories.
5. Social events to promote networking among the symposium delegates
in an informal setting.
The RuleML-2008 Challenge with prestigious prizes provides an excellent
opportunity to showcase your organization and become associated with
this innovation driven technology market, characterized by strong market
growth, visibility and commercial opportunities.
To share your ideas, results and experiences, and to learn more about
rules technology, RuleML-2008 invites all of you, including:
* IT Services, Rules and Event Processing system providers
* Representatives of, and participants in, rule standardization efforts
* Members of open source rules communities
* CTOs and Strategists of technology firms
* Information Architects and Strategic Technology Planners
* CIOs and Information Technology Managers
* Venture Capitalists and Investors
* CEOs of software start-ups
* Product Managers from software and hardware companies
* Data Analysts from major public and private organizations
* Academics and Researchers
* Software Developers
* Press and Analysts
* Technology Consultants
For further details please see the Symposium website
http://2008.ruleml.org/. <http://2008.ruleml.org/>
For more information please contact: ruleml2008(a)easychair.org.
<mailto://ruleml2008@easychair.org>
16 years, 9 months
Rule Agent retrieving null rulebase
by Vinicius Carvalho
Hello there! I've just started with the BRMS (what an awesome feature I
might add). So I've deployed a simple rule, packaged it and created a
snapshot.
The package is created and when I access the url provided by the BRMS it
tries to download the package, so I'm assuming it is published.
So I ran this code inside eclipse:
public static void main(String[] args) {
RuleAgent agent = RuleAgent.newRuleAgent("/MyRules.properties");
RuleBase rb = agent.getRuleBase();
StatefulSession session = rb.newStatefulSession();
Funcionario f = new Funcionario();
f.setSalario(1000.0);
Cargo c = new Cargo();
c.setDescricao("desenvolvedor");
f.setCargo(c);
session.insert(c);
Decision d = new Decision();
session.insert(d);
session.fireAllRules();
session.dispose();
}
---------------------MyRules.properties----------------------------
http://localhost:8080/drools-jbrms/org.drools.brms.JBRMS/package/com.syno...
poll=10
It throws a nullpointer exception, as the agent.getRulebase() is returning a
null object.
What am I missing here?
Best regards
--
"In a world without fences and walls, who needs Gates and Windows?"
16 years, 9 months
RuleApps2008: Two Weeks Before Submission Deadline
by Emilian Pascalau
[We apologize in advance if you receive multiple copies of this CFP]
2nd East European Workshop on Rule-Based Applications - RuleApps'2008
---------------------------------------------------------------------
July 21-22, 2008, Patras, Greece
http://oxygen.informatik.tu-cottbus.de/RuleApp2008/
Workshop within the ECAI 2008 conference
http://www.ece.upatras.gr/ecai2008/
Paper submission:
http://www.easychair.org/conferences/?conf=ruleapp2008
Topics
---------------
Rules are becoming increasingly important in business modeling and
requirements engineering, and as a high level programming paradigm
especially in the engineering of e-business applications
and of the Semantic Web applications. Rules are used in applications to
model and manage specific parts of the application business logic. They
are best used in applications with a dynamic
business logic i.e. applications where changes in the business logic are
frequently and they need to be immediately reflected in the application
behavior. This workshop seeks contributions
that address theoretic foundations, practical techniques, empirical
studies, experience, and lessons learned related, but not limited, to
the following topics:
- Artificial Intelligence Rules and Rule Systems
- Web Rules and Semantic Web Rules
- Best Practices in Business Rules
- Rules Modeling (including Production Rules and ECA Rules)
- Combining rules and ontologies
- Languages for rule interchange
- Rule base Visualization, Verbalization, Validation, Verification
and Exception Handling.
- Rule Engines Architectures
- Rules in Web 2.0 Applications
- Rule-based modeling of mechanisms, policies, strategies and contracts.
- Rules and Web Services Integration
- Implemented tools and systems
Important dates
---------------
Papers submission: April 10, 2008
Notification of acceptance: May 10, 2008
Final submission: May 26, 2008
Workshop date: July 21-22, 2008
Submission Requirements
-----------------------
RuleApps2008 looks for three categories of submissions: regular papers,
poster submissions and applications.
- The submission web site is
http://www.easychair.org/conferences/?conf=ruleapp2008.
- Authors have to use the ECAI'2008 style to prepare their
submissions. A description of the style is available
- Regular papers submissions must not exceed 5 pages. The same style
has to be used for poster submissions which cannot exceed 2 pages.
- Applications have to be described in a 2 pages short paper (part of
the proceedings too). They must be available for demo either in a
download or online form during the review process.
Publication
-----------
- Each workshop participant will receive a hardcopy of the
proceedings of the workshop (s)he participates, as well as a CD with the
proceedings of all ECAI'08 workshops. The workshops CD will be produced
by ECAI2008 and will be separate from the CD with the proceedings of the
main conference.
- Workshop authors will have to sign a permission allowing the local
organizers to include their paper in the workshop's proceedings.
- Additionally the accepted papers will be published as
CEUR-WS( http://ftp.informatik.rwth-aachen.de/Publications/CEUR-WS/ )
The copyright for the individual items (subsuming any type of
computer-represented files containing articles, software demos, videos,
etc.) within a 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 technical papers of the workshop will
be invited to
Handbook of Research on Emerging Rule-Based Languages and
Technologies ( http://oxygen.informatik.tu-cottbus.de/handbook/ )
Workshop Co-Chairs
------------------
Anastasia Analyti, Foundation for Research and Technology - Hellas, Greece
Adrian Giurca, Brandenburg University of Technology, Germany
Gerd Wagner, Brandenburg University of Technology, Germany
Program Committee
-----------------
Anastasia Analyti, FORTH, Greece
Grigoris Antoniou, FORTH, Greece
Costin Badica, University of Craiova, Romania
Nick Bassiliades, Aristotle University of Thessaloniki, Greece
Phillipe Bonnard, ILOG, France
Carlos Viegas Damasio, Universidade de Nova Lisboa, Portugal
Vladan Devedzic, University of Belgrade, Serbia
Jens Dietrich, Massey University, New Zealand
Dragan Gasevic, Athabasca University, Canada
Adrian Giurca, Brandenburg University of Technology, Germany
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, Ludwig-Maximilians University, Muenchen, Germany
Mark Proctor, JBoss Rules, Redhat
Dave Reynolds, Hewlett-Packard Semantic Web Research, England
Silvie Spreeuwenberg, LibRT, Amsterdam, Netherlands
Kuldar Taveter, University of Melbourne, Australia
Laurentiu Alexandru Vasiliu, DERI Galway, Ireland
Sanja Vranes, Mihailo Pupin Institute, Belgrade, Serbia
Gerd Wagner, Brandenburg University of Technology, Germany
16 years, 9 months
BigDecimal is Int or Long?
by ST
Hi,
There is a situation where BigDecimal is returned from a function. But when
this BigDecimal is included as one of the conditions in a rule. I get a
ClassCastException about trying to cast to Integer. Below is an example that
reproduces this error. Is this an expected behavior? If so, is there any way
to avoid the error?
package com.sample
import java.math.BigDecimal
rule "init1"
salience 1000
when
num : BigDecimal() from getBigDecimal("1")
then
System.out.println(num.compareTo(new BigDecimal("0")));
end
function BigDecimal getBigDecimal(String value) {
return new BigDecimal(value);
}
16 years, 9 months
DRL Compilation exception
by Joe White
We have a rule package with a target platform of a JBoss server. Based
on the recommendation at
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesTomcat we changed the
package config to use the JavaDialectConfiguration.JANINO compiler.
However, when trying to load the package with the janino compiler we get
the stack trace included below. The rules load correctly if the compiler
change is not set (but they won't load in JBoss if we don't make the
compiler change).
Is there an alternative workaround for the JDT issue that would allow us
to use something other than the janino compiler to load the rules inside
of JBoss? Or is there a known cause or workaround for the exception
below?
We are using Drools 4.0.4 and JBoss 4.0.5
Thanks for your help
Joe
java.lang.RuntimeException: SNO: Conversion failed
at
org.codehaus.janino.UnitCompiler.binaryNumericPromotion(UnitCompiler.jav
a)
at
org.codehaus.janino.UnitCompiler.compileArithmeticOperation(UnitCompiler
.java)
at org.codehaus.janino.UnitCompiler.compileGet2(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.access$39(UnitCompiler.java)
at
org.codehaus.janino.UnitCompiler$7.visitBinaryOperation(UnitCompiler.jav
a)
at org.codehaus.janino.Java$BinaryOperation.accept(Java.java)
at org.codehaus.janino.UnitCompiler.compileGet(UnitCompiler.java)
at
org.codehaus.janino.UnitCompiler.compileGetValue(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.access$12(UnitCompiler.java)
at
org.codehaus.janino.UnitCompiler$2.visitLocalVariableDeclarationStatemen
t(UnitCompiler.java)
at
org.codehaus.janino.Java$LocalVariableDeclarationStatement.accept(Java.j
ava)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.access$3(UnitCompiler.java)
at
org.codehaus.janino.UnitCompiler$2.visitBlock(UnitCompiler.java)
at org.codehaus.janino.Java$Block.accept(Java.java)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compile2(UnitCompiler.java)
at
org.codehaus.janino.UnitCompiler$1.visitPackageMemberClassDeclaration(Un
itCompiler.java)
at
org.codehaus.janino.Java$PackageMemberClassDeclaration.accept(Java.java)
at org.codehaus.janino.UnitCompiler.compile(UnitCompiler.java)
at org.codehaus.janino.UnitCompiler.compileUnit(UnitCompiler.java)
at org.codehaus.janino.Compiler.compile(Compiler.java)
at
org.drools.commons.jci.compilers.JaninoJavaCompiler.compile(JaninoJavaCo
mpiler.java:174)
at
org.drools.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJa
vaCompiler.java:51)
at
org.drools.rule.builder.dialect.java.JavaDialect.compileAll(JavaDialect.
java:332)
at
org.drools.compiler.DialectRegistry.compileAll(DialectRegistry.java:60)
at
org.drools.compiler.PackageBuilder.addPackage(PackageBuilder.java:308)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java
:167)
at com.sample.DroolsTest.readRule(DroolsTest.java:63)
at com.sample.DroolsTest.main(DroolsTest.java:24)
16 years, 9 months
how to upload brl file to jBRMS
by muthupalaniappan@eth.net
Hi,
I have a brl file in eclipse. I want to move it to jBRMS. Is there a way to do it?
Thanks.
Regards,
Pals
16 years, 9 months