How to Ruleflow ForEach component?
by ateist
Hi all!
I need to apply rules to each element of a collection. So I tried to use
ForEach component in my ruleflow. Here is my rule flow file
http://n3.nabble.com/forum/FileDownload.jtp?type=n&id=744264&name=testRul...
testRuleflow.rf .
I set CollectionExpression to "children" and VariableName to "child"
properties of the component.
In the code to run rules:
....
Map variables = new HashMap();
variables.put("children", collection);
ksession.startProcess(ruleFlowName, variables);
ksession.fireAllRules();
....
But when I run the code it throws the following exception:
437 [main] INFO com.test.TestForEach - Start process: flow
Exception in thread "main" java.lang.IllegalArgumentException: Could not
find collection children
at
org.drools.workflow.instance.node.ForEachNodeInstance$ForEachSplitNodeInstance.evaluateCollectionExpression(ForEachNodeInstance.java:112)
at
org.drools.workflow.instance.node.ForEachNodeInstance$ForEachSplitNodeInstance.internalTrigger(ForEachNodeInstance.java:81)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.trigger(NodeInstanceImpl.java:112)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerConnection(NodeInstanceImpl.java:148)
at
org.drools.workflow.instance.impl.NodeInstanceImpl.triggerCompleted(NodeInstanceImpl.java:135)
....
Any guesses what I am doing wrong?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-to-Ruleflow-ForEa...
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 8 months
Rule-flow variables, declares and dsl's
by Stephen Kestle
1. Is it possible to use a type declared in a dslr inside a rule
flow? If so, is there a way to make the IDE understand it?
(currently it complains that it's "Unable to resolve ObjectType
'myType'")
2. Also, is it possible to use a DSL inside a rule flow? It would
seem that at the moment the trigger and variable insertion
capabilities are sufficient to allowing me to use "code" instead
of "rule"s, but if I were to use rules, I would want it to be a dsl...
Cheers
Stephen Kestle
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5039 (20100418) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
14 years, 8 months
Rule-flow variables, declares and dsl's
by Stephen Kestle
(Sorry if this is a dupe post - just trying to figure out why I can't
see my email on the list...)
1. Is it possible to use a type declared in a dslr inside a rule
flow? If so, is there a way to make the IDE understand it?
(currently it complains that it's "Unable to resolve ObjectType
'myType'")
2. Also, is it possible to use a DSL inside a rule flow? It would
seem that at the moment the trigger and variable insertion
capabilities are sufficient to allowing me to use "code" instead
of "rule"s, but if I were to use rules, I would want it to be a dsl...
Cheers
Stephen Kestle
__________ Information from ESET NOD32 Antivirus, version of virus signature database 5039 (20100418) __________
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
14 years, 8 months
Missing Artifact: JPAKnowledgeFactoryServiceImpl
by tolitius
org.drools.container.spring.beans.persistence.JPAKnowledgeServiceBean
protected void initDao() {
.....
jpaKnowledgeServiceProvider = node.get(JPAKnowledgeFactoryService.class);
org.drools.grid.ExecutionNode:
public <T> T get(Class<T> interfaceClass) {
synchronized (interfaceClass) {
Object service = services.get(interfaceClass);
if (service == null) {
try {
Class<?> implementingClass =
Class.forName(interfaceClass.getCanonicalName() + "Impl");
service = implementingClass.newInstance();
services.put(interfaceClass, service);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
return interfaceClass.cast(service);
}
Interface class ( JPAKnowledgeFactoryService ) is there, but when it tries
to guess the implementation class (
Class.forName(interfaceClass.getCanonicalName() + "Impl"); ) it fails,
because JPAKnowledgeFactoryServiceImpl does not exist anywhere in the trunk.
Can this be checked in, or posted here on the forum?
I am really close to integrate the two ( Drools [JPA] and Spring ) together.
Thank you,
/Anatoly
--
View this message in context: http://n3.nabble.com/Missing-Artifact-JPAKnowledgeFactoryServiceImpl-tp74...
Sent from the Drools - Dev mailing list archive at Nabble.com.
14 years, 8 months
Guvnor 5 and Weblogic 11g
by Mohamed Ben ayed
Hi
I am trying to deploy Guvnor 5 on Weblogic 11g AS but I got the following
exception:
org.jboss.seam.servlet.SeamListener failed:
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
repositoryConfiguration.
org.jboss.seam.InstantiationException: Could not instantiate Seam component:
repositoryConfiguration
have you an idea please to resolve this problem
--
Codialement
Mohamed BEN AYED
14 years, 8 months
maven drools plugin to compile DRL's at build time
by Geoffrey De Smet
There doesn't seem to be a maven drools plugin to precompile the DRL's
at build time, but I did find this issue:
https://jira.jboss.org/jira/browse/JBRULES-1273
Is anyone or has anyone been working on this?
Are the ANT tasks still supported?
It gives a couple of advantages:
- DRL compile errors at build time
- with m2eclipse it gives a good eclipse integration
- no time wasted at runtime (I could definitly use this for the nurse
rostering competition)
A good mojo would need to:
- follow the maven code generating conventions (so it integrates well
with eclipse, intellij, ...)
- have integrations tests (we might wanna wait for the maven 3 upgrade
for this though)
--
With kind regards,
Geoffrey De Smet
14 years, 8 months
Drools OSS Meeting (Reminder) 19th - 23rd of April now at the Hacienda Hotel (San Diego)
by Mark Proctor
http://blog.athico.com/2010/04/drools-oss-meeting-reminder-19th-23rd.html
-----
Due to unexpected levels of attendance we've moved the event from the
provided location to a larger one. This provided the opportunity to
locate the event at a hotel, so people can stay in the same building as
the meeting. We are now located at the Hacienda Hotel
<http://haciendahotel-oldtown.com/> in Old Town, near plenty of
restaurants and a trolley bus to Down Town which is 10 minutes away. So
if you have booked another hotel I would recommend you cancel it and
relocate to the Hacienda.
A special hotel rate of $110 per night is available under the booking
reference "Drools", but hurry as space is limited and we have not done
any block reservations. The event itself is free of charge. Breakfast
will be provided each morning, as part of the conference, and coffee
will be available throughout the day. If anyone would like to sponsor
lunch, let me know :) mproctor at codehaus d0t org.
Hacienda Hotel <http://haciendahotel-oldtown.com/> (4041 Harney Street .
San Diego, CA 92110 . 800-888-1991)
(click to enlarge)
<http://2.bp.blogspot.com/_Jrhwx8X9P7g/S7F3oW75hKI/AAAAAAAAAZ8/pmta54bAmAc...>
Details of the conference can be found at the registration page here:
http://community.jboss.org/wiki/DroolsBootCampSanDiegoApril2010
The meeting is really shaping up with many top names attending:
JBoss, OSDE (Argentinian Healthcare), AT&T, SAIC, Kaiser, VA, Naval
Health Research Center, Clinica, Decision Management Solutions,
University of Utah / VA, Intermountain Healthcare, termMed IT, Versatile
Systems, GE Healthcare, Open Health Data, Pharmacy OneSource, Wake
Forest University Health Science, Recondo Technology, Zementis,
University of Maryland, University of Bologna, Duke University.
We have the most excellent James Taylor key noting on Wednesday
<http://blog.athico.com/2010/03/james-taylor-to-key-note-for-drools.html>,
with many other interesting talks planned:
*Name* *Talk*
James Taylor (Decision Management Solutions
<http://www.decisionmanagementsolutions.com/>) *Wed 9am Key Note :*
Smarter systems for uncertain times
Mark Proctor (JBoss) Intro to Drools 5
Mark Proctor (JBoss) Rule Authoring Techniques
Mark Proctor (JBoss) Spring, Camel and OSGi integration
Kris Verlaenen (JBoss)
Building Domain Specific Workflows for Clinical Decision Support
Kris Verlaenen (JBoss) Dynamic Fragments for Non-Linear Execution of
Adaptive Processes
Edson Tirelli (JBoss) Applying Complex Event Processing
Davide Sottara (University of Bologna) Enhancing Rules with Uncertainty
and Vagueness
Davide Sottara (University of Bologna) Using Drools in Hybrid Systems:
from "Semantic" Rules to Soft Computing
Ken Kawamoto (Duke University) Clinical Decision Support with HL7 and
Drools
Emory Fry (NHRC) Delivering Real-Time Clinical Decision Support
Emory Fry (NHRC) Rule Workbench Requirements
Emory Fry (NHRC) Distributed Clinical Knowledge Mangement Repositories
Joe White (Recondo Techology) Healthcare EDI Processing Using Drools
Kostas Stathatos (Zementis <http://www.zementis.com/>) Drools &
Predictive Analytics: Follow Your Rules and Listen to Your Data
Diego Naya (OSDE)
Changing the developer mindset to leverage rules, processes and events
Tom Munnecke (HealthWave <http://healthwave-tracker.com/info/?p=14>)
Historical perspective of VistA and CHCS as foundations for workflow
Monday and Tuesday are focused on the medical/healthcare industries, but
Wednesday onwards are open to all.
14 years, 8 months
Drools.Net project status and availability of paid support
by Dan Shookowsky
I'm interested in using drools.net to implement a solution for a client.
I'm specifically interested in using the decision table functionality based
on spreadsheets. The remainder of the code in the solution is entirely
based in C#.NET
My client is concerned by the fact that the last build of Drools.net was in
2007. The client also requires paid support in order to select this as
part of the solution.
Can anyone provide details of the status of this project? Is it stagnant?
Does anyone know if paid support is available?
In the event that Drools.NET is no longer supported, has anyone successfully
implemented a project using Drools (not .NET) from C#?
14 years, 8 months
(no subject)
by Mohamed Ben ayed
Hi,
I am working with drools (and drools Guvnor) in France, so I would like to
translate Guvnor into frensh.
I create a properties file (constants_fr_FR.properties) and I translated
some words, when I package my application with “mvn clean package” I have a
war file but when I deploy it into JBoss server I don’t find any changes (I
put ?locale=fr_FR) .
I found some html files that contain javascript with English world like the
properties file
Any idea please
Thanks
14 years, 8 months