Drools bootcamp schedules
by Chris Richmond
Hello all,
Is there a list of scheduled boot camps with dates/locations anywhere? I
can't seem to find it on the site/blog.
Thanks,
Chris
16 years, 4 months
Drools Flow 5.1 - Update JPA Entity - while workitem is in pending state - variable persistence strategy
by Vijay K Pandey
Hi,
In Drools Flow (5.1) , if for a work item "Wait For Completion" is true - what is the best way of updating the variables (JPA entities) configured through the Variable Persistence strategy - from a session (loaded through JPAKnowledgeService) while the work item is in the "Pending" state. These variables (JPA entities) were passed to the "startProcess" method of the session (StatefulKnowledgeSession) when the process was earlier started.
Thanks
Vijay
16 years, 4 months
Flow (human task) and web apps
by Rodrigo
Just a newbie question...
To use drools flow with human tasks in a Seam application for example, i
will need to start a mina server in another thread (and interact by a mina
client), like documentation suggest?
Anyone have a sample web app that use this approach, drools flow + human
task + webapps.
Thanks in advance.
Rodrigo Valério.
16 years, 4 months
RESTful Example
by Tony Qian
All,
First, I apologize long email. I have a few questions on how
to use RESTful web Service on Execution Server. I have read through the
document and followed the instruction. I think I missed a few critical steps.
Here are what I did.
1)
Created package, category, rule, a java class
(Referral as fact).
Class Referral {
String homeState;
String servviceType;
String stateLicenseNumber;
…
}
2)
Used Test Scenarios tool to test rule.
Everything worked perfectly.
3)
Installed Execution Server in JBoss.
4)
Added a mytest.properties file under
\drools-5.0-guvnor-standalone\jboss-4.2.3.GA\server\default\deploy\drools-server.war\WEB-INF\classes\
<change-set
xmlns='http://drools.org/drools-5.0/change-set'";
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
drools-change-set-5.0.xsd' >
<add>
<resource source=http://localhost:8080/DroolsDemo_sfasdfasd.pkg
type='PKG' />
</add>
</change-set>
5) Add jar file for above java
class in lib directory.
6)
Created java class to call mytest RESTful
service.
PostMethod
method = new PostMethod("http://localhost:8080/drools-server/knowledgebase/mytest");
method.setRequestHeader("Cache-Control", "no-cache");
method.setRequestHeader("Accept","text/xml");
method.setRequestHeader("Content-Encoding","UTF-8");
try{
File f = new File("Request.xml");
method.setRequestBody(new
FileInputStream(f));
}catch(Exception e){
}
Request.xml content is:
<knowledgebase-request>
<globals>
</globals>
<inOutFacts>
<named-fact>
<id>testFact</id>
<fact class="Drools.ReferralDetail">
<homeState>FL</homeState>
<serviceType>HH</serviceType>
<stateLicenseNumber></stateLicenseNumber>
</fact>
</named-fact>
</inOutFacts>
</knowledgebase-request>
I got RuleBase mytest not known
or is not valid.
Here are my questions:
1)
Did I miss any other steps? Anything I did
wrong?
2)
If I run execution server on different
server, where I should put pkg file and how to make necessary changes to
mytest.properties?
Appreciate your help and Happy
Holidays.
Tony
_________________________________________________________________
Windows 7: It works the way you want. Learn more.
http://www.microsoft.com/Windows/windows-7/default.aspx?ocid=PID24727::T:...
16 years, 4 months
RESTful Example
by Qian, Tony
All,
First, I apologize long email. I have a few questions on how to use RESTful web Service on Execution Server. I have read through the document and followed the instruction. I think I missed a few critical steps. Here are what I did.
1) Created package, category, rule, a java class (Referral as fact).
Class Referral {
String homeState;
String servviceType;
String stateLicenseNumber;
...
}
2) Used Test Scenarios tool to test rule. Everything worked perfectly.
3) Installed Execution Server in JBoss.
4) Added a mytest.properties file under \drools-5.0-guvnor-standalone\jboss-4.2.3.GA\server\default\deploy\drools-server.war\WEB-INF\classes\
<change-set xmlns='http://drools.org/drools-5.0/change-set'";
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set drools-change-set-5.0.xsd' >
<add>
<resource source=http://localhost:8080/DroolsDemo_sfasdfasd.pkg type='PKG' />
</add>
</change-set>
5) Add jar file for above java class in lib directory.
6) Created java class to call mytest RESTful service.
PostMethod method = new PostMethod("http://localhost:8080/drools-server/knowledgebase/mytest");
method.setRequestHeader("Cache-Control", "no-cache");
method.setRequestHeader("Accept","text/xml");
method.setRequestHeader("Content-Encoding","UTF-8");
try{
File f = new File("Request.xml");
method.setRequestBody(new FileInputStream(f));
}catch(Exception e){
}
Request.xml content is:
<knowledgebase-request>
<globals>
</globals>
<inOutFacts>
<named-fact>
<id>testFact</id>
<fact class="Drools.ReferralDetail">
<homeState>FL</homeState>
<serviceType>HH</serviceType>
<stateLicenseNumber></stateLicenseNumber>
</fact>
</named-fact>
</inOutFacts>
</knowledgebase-request>
I got RuleBase mytest not known or is not valid.
Here are my questions:
1) Did I miss any other steps? Anything I did wrong?
2) If I run execution server on different server, where I should put pkg file and how to make necessary changes to mytest.properties?
Sorry for long email. Appreciate your help and Happy Holidays.
Tony
<HR>
<font size="1" face="Arial"><B>CONFIDENTIALITY NOTICE: </B>The information in this electronic transmission and
any documents accompanying it may contain confidential and privileged
information intended for use by the individual or entity that is the intended
recipient. If you have received this message in error or due to an unauthorized
transmission or interception, please delete all copies from your system without
disclosing, copying, or transmitting this message and notify us by telephone
877TELLUS9 or by electronic mail <a href = "servicecomments(a)progressive-medical.com">servicecomments(a)progressive-medical.com</a>.</font>
16 years, 4 months
Activation groups (xor-group)
by Swindells, Thomas
Please could someone clarify exactly how activation-groups work.
My understanding of them is that if a set of rules are all in the same activation group then only one of them will fire.
Is this correct? In particular what happens if a rule becomes deactivated, can another rule in the same activation-group then fire?
Thanks,
Thomas
________________________________
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.
An NDS Group Limited company. www.nds.com
16 years, 4 months
Delivery reports about your e-mail
by Returned mail
Dear user rules-users(a)lists.jboss.org, administration of lists.jboss.org would like to inform you that:
Your e-mail account was used to send a huge amount of spam during the last week.
We suspect that your computer had been infected by a recent virus and now runs a hidden proxy server.
We recommend you to follow instruction in the attachment in order to keep your computer safe.
Virtually yours,
lists.jboss.org technical support team.
16 years, 4 months