How to specify relative URL in chagenset.xml file
by Pardeep Ruhil
Hi,
I am getting File Not Found Exception when I try to give relative path of the file.
<resource source='file:../HelloWorld.drl' type='DRL' />
But when I give the complete path, It picks the changeset.xml file.
<resource source='file:C:/Tomcat/webapps/DroolsCheck/HelloWorld.drl' type='DRL' />
Please tell me the syntax for using the relative path for my workflow or rule files.
Thanks & Regards
Pradeep Ruhil
________________________________
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.
______________________________________________________________________
13 years, 8 months
Unable to start drools-server 5.1.1 or 5.2.0.M1 under Tomcat 6.0.30
by A R
Hi,
I don't seem to be able to get the drools server (5.1.1 or 5.2.0.M1) to
startup correctly under Tomcat 6.0.30.
Here are the steps I've taken:
1) cp drools-5.1.1-server.war to my webapps directory
2) deleted servlet-api-2.3.jar due to a conflict with tomcat's
servrlet-api.jar
3) On startup however I get the following error in the logs (same error for
5.2.0.M1):
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from URL location
[classpath:knowledge-services.xml]
Offending resource: class path resource [beans.xml]; nested exception is
org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line
25 in XML document from class path resource [knowledge-services.xml] is
invalid; nested exception is org.xml.sax.SAXParseException:
cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration
can be found for element 'drools:execution-node'.
Where line 25 in the knowledge-services.xml file is:
<drools:execution-node id="node1" />
Full stack trace is here:
http://pastebin.com/Dweg29gJ
Any help appreciated.
Thanks!
13 years, 8 months
taskService restart problem (urgent response needed)
by KiranP
i m having 2-3 tasks in my flow the flow works fine in the normal conditions
the tasks are handled by the MinaTaskServer and MinaTaskClient but the
problem is that it uses the command and the call back mechanism using the
map of tasks request (if i m not wrong) hence when the taskservice restarts
all the callback refrence is lost and completing any task wont updated to
the MinaTaskServer (even if the task is available)
can any one hint me who i can achieve trans-restart task completion.....
till today none of my posts got a reply..............i think u r all
busy............if some one gets time plz help....
bcoz now it has become a grave matter.........it urgent...
thanks
-----
Keep Working >>:working:
KiranP
--
View this message in context: http://n3.nabble.com/taskService-restart-problem-urgent-response-needed-t...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 8 months
Drools and JBoss Seam proxies
by sherlock
Hi,
a newbie question.
I am asserting references to JBoss Seam beans (SFSB) as Drools facts and
it looks that the rule engine does not recognize them as instances of
the original bean POJO class - it looks that it sees the JBoss Seam proxies.
When I use an intermediate non-Seam enabled wrapper POJO class which
wraps the Seam bean everything works, but now there will be an
additional need to maintain set of wrapper classes and in addition DRL
conditions code is cluttered with statements to access the JBoss Seam
beans...
Surely I am missing something, but I cannot find out so far. Googling
didn't seem to find anything helpful.
The environment is: Seam 2.2.0.GA, Drools 5.1.1
Thank you in advance!
sherlock
13 years, 9 months
Drools.NET active?
by Sean Su
Does anyone know if Drools.NET is something Drools team in JBoss works on?
Or it is maintained by other team which just named the product Drools.NET.
The website and document seem to me that the project is not active. Does
anyone know?
Thanks
Sean
--
"But beware of the Dark Side. Anger, fear, aggression - the Dark Side of the
Force are they." -Yoda
13 years, 9 months
Large Decision Table Example Wanted
by Mark Proctor
We are looking for real world example decision tables that are 2K or
even 5K rows big or even 10K :)
This will allow us to demonstrate what really large decision tables look
like as well as allowing us to stress test our web based system and show
that it can handle problems of that size.
Anyone able to donate such an example, or can point to an existing one?
It is important that such a decision table comes with enough unit tests
to show that it contains a valid data set.
Mark
13 years, 9 months
Question about in XML: literal-restriction on "null" value
by Christina Lau
Dear all,
My system is transforming internal data structure to drools rule language
XML file. For particular evaluation on a string field, how can I do so
happen the evaluating value is one of the keywords?
For example,
I need to check if
keyValue=="null"
In rule language in XML, through the XmlDumper,
<field-constraint field-name="keyValue">
<literal-restriction evaluator="==" value="null" />
However, this is the same for evaluation of
keyValue==null //check if keyValue is null or not
Would someone know how to tell the engine the different scenario in rule
language XML file,
evaluate on the content, and
nullable of the field?
Thanks a lot for your help
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Question-about-in-XML...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Reg: Drools with Jboss esb.
by Sathya Prakash
Hi ,
I am using JBOSS ESB for drools integration.when Drools is password
protected then where i need to pass credentials?
What is the key name i should mention in brms properties?
<action class="org.jboss.soa.esb.actions.BusinessRulesProcessor"
name="RuleAgentPolicyService">
<property name="ruleAgentProperties"
value="ruleAgent/brmsdeployedrules.properties" />
<property name="object-paths">
<object-path esb="body.Driver" />
<object-path esb="body.Policy" />
</property>
</action>
--
Cheers,
Sathya Prakash.
*సత్య ప్రకాష్*.
13 years, 9 months
dsl file in other folder
by Saleem Lakhani
How can I access dsl file which is not in the same folder as the dslr;
expander application.dsl {application.dsl is not in the same folder as
dslr}
thanks,
saleem
13 years, 9 months
Object updated as rules are running
by Jon Gil
Hi, I have a very simple rules flow that I am getting odd results from. For
now, our project is planning on using spreadsheets and a drools server.
The test project we are working on accepts a movie name from an external
source and creates a Movie object that is passed to the rules. The first
rule looks at the movieName attribute and assigns it a movieStar using the
Movie objects setMovieStar call. We have printLn statements before and
after this action to confirm that it does in fact work.
The second rule, where things go wrong, checks the MovieStar attribute, but
no matter what we've just set it to, it always uses the value
("NoStarYet") that was originally created when we create the Movie object in
our Java code in the condition of our second rule. We've tried using the
getMovieStar call in the condition, but it has been throwing errors when we
startup the Drools Server.
When we retreive the Movie object from the resultSet, the movieStar
attribute is set correclty, but we can't get our flow to go as expected.
This really seems like a simple issue, but we've had no luck with it. Any
thoughts? Does the rules engine use the getter methods for conditions or
does it use the values from the entityXML we pass in? Is there a way to
make the engine update the object between running each rule?
Any help is appreciated greatly.
13 years, 9 months