Guvnor: Rules compilation error
by Prashanth
Hi,
In-spite of having the jar loaded, and having them available in the Drools
Guvnor and able to write rules with “zero ” errors in verification,
Rule compilation fails during validation after writing rules,
says “Cannot resolve <classname>” for all those classes that have been
imported and available to write rules
Classes have been referred with their fully qualified class-names too.
I request help to resolve this problem.
Thanks and Regards
Prashanth
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Rules-compilation-error-tp339552...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Are retracted events garbage collected in stateful session?
by John
I am inserting a high volume of relatively large objects into a long-running
StatefulKnowledgeSession in Stream mode. I use a rule to start a jbpm
process when each event is received, and the last step retracts the event.
I assumed these were all being garbage collected until my app server started
running out of memory. I ran a profiler and saw that none of my event
objects were ever collected.
Is there any way of freeing references without disposing the working memory?
This is not a good option for our app. I have read this post
http://drools.46999.n3.nabble.com/Removing-facts-from-statefulknowledgeSe...
Removing-facts-from-statefulknowledgeSession-s-memory and several others,
but my objects are all manually retracted. I just need to make them
available for garbage collection.
I am running drools 5.2.0 Final, guvnor 5.2.0 Final, and jbpm 5.1.0 Final
and I am using the BusinessRulesProcessor action in jboss to insert events.
Thanks,
John
--
View this message in context: http://drools.46999.n3.nabble.com/Are-retracted-events-garbage-collected-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Looping in When part
by rahulkrishnan
Hi
I want to match a string with the contents of hashmap. The process is like
this.
Let the string is "abcd"
First it will search for abcd in the map
if found i have to assign it to a variable else i has to remove the last
alphabet ("abc") and have to match with hashmap like is the process.
My Problem is iam not able to do that iteration in when part
What i have done is i will check the condition in when part if it matches
the hashmap then it will exit. Else it will satisfies the condition(String
not matching any of hashmap contents) and goes in then and update the string
by removing the last alphabet and loops .
rule "somerule"
no-loop false
when
condition for checking that hashmap has no key of String s and
s.length>0
then
modify the String s by removing last alphabet
end
is there any option to do the looping in the when part itself
--
View this message in context: http://drools.46999.n3.nabble.com/Looping-in-When-part-tp3393236p3393236....
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Using object.getter in Decision table
by jilani
Hi,
I have a scenario, where for decision table I will inject one object which
holds all facts. Using those facts the decision table has rules. How to
retrieve the child fact from parent in decision table.
sample for this is as follows
Java Code snippet:
DataObject dataObj = new DataObject();
Fact1 fact1 = new Fact1();
Fact2 fact2 = new Fact2();
dataObj.setFact1(fact1);
dataObj.setFact2(fact2);
statelessKnowledgeSession.execute(dataObj);
In decision table:
-------------------------------------------
CONDITION
--------------------------------------------
fact1 : DataObject().getFact1();
--------------------------------------------
fact1.getData1().equalsIgnoreCase("$param")
--------------------------------------------
"Hello"
--------------------------------------------
Here I am getting error.
Please suggest me how to access the child fact from parent fact in decision
table.
--
View this message in context: http://drools.46999.n3.nabble.com/Using-object-getter-in-Decision-table-t...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Embed BRL Editor in application
by shubhranshu
Hello everybody,
I am new to drools. I want to embed the BRL Editor in our application. I
have read somewhere that it can be done by calling the
standaloneEditorServlet. When I call the standaloneEditorServlet it appends
pUUID=7c89819b-221d-470b-9fce-4bd3bbe02e75. I have to pass some
initialization parameters to the servlet. I know the package name,
categoryName but what will be the brlSource. Do I need to pass the whole brl
(xml) file as parameter?
Another thing on which action the standaloneEditorServlet is called.
Please help
Regards
--
View this message in context: http://drools.46999.n3.nabble.com/Embed-BRL-Editor-in-application-tp33922...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Is it possible to retrieve the collection of Conditions from DecisionTable?
by RaviCKota
Hi All, for suppose I have a DecisionTable like below
CONDITION ACTION
-----------------------------
COND1 ACTION1
COND2 ACTION2
COND3 ACTION3
-----------------------------
This is just a representation of the DecisionTable. So I need to retrieve
all the conditions and store them into a Collection like Set. Does Drools
provide any such feature.
We load the drools as below
PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl(new StringReader(drl)); //drl is the filepath of
decisiontable excel
// add the package to a rulebase (deploy the rule package).
RuleBase ruleBase = RuleBaseFactory.newRuleBase();
ruleBase.addPackage(builder.getPackage());
I tried to look into api of RuleBase, tried to get the packages, Rules,
Consequence, etc etc, but could not find any method, that gets me the
condition name.
When I tried to do
Package[] packages = rulebase.getPackages();
for(Package pack : packages){
System.out.println("Package Name is : "+pack.getName());
Rule[] rules = pack.getRules();
for(Rule rule : rules){
System.out.println("Rule name is : "+rule.getName());
All I get is some representation of each row, but I'm specifically looking
for the value of the first column (CONDITION) for each rule.
Please offer some guidance here.
--
View this message in context: http://drools.46999.n3.nabble.com/Is-it-possible-to-retrieve-the-collecti...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
Guvnor and Axis2
by Mario Viertel
Hi,
I am using an own web service (Axis2; tomcat 6) to interact with Guvnor.
All drools related jars (drools*, mvel*, knowledge-api) are contained
in the lib folder of service's aar file. Via knowledge-api the service
interacts with the guvnor repository.
Unfortunately this doesn't work. At runtime a ClassNotFoundException has
been thrown. A look into details revealed that the ClassLoader havn't
loaded all jars containing in webservice's lib folder.
Has anybody an idea what's going wrong. I'm not sure if this is an issue
of drools, the axis2 engine or the tomcat engine.
Thanks,
Mario
14 years, 8 months
Embeding BRL Editor in application
by shubhranshu
Hello everybody,
I am new to drools. I want to embed the BRL Editor in our application. I
have read somewhere that it can be done by calling the
standaloneEditorServlet. When I call the standaloneEditorServlet it appends
pUUID=7c89819b-221d-470b-9fce-4bd3bbe02e75. I have to pass some
initialization parameters to the servlet. I know the package name,
categoryName but what will be the brlSource. Do I need to pass the whole brl
(xml) file as parameter?
Another thing on which action the standaloneEditorServlet is called.
Please help
Regards
--
View this message in context: http://drools.46999.n3.nabble.com/Embeding-BRL-Editor-in-application-tp33...
Sent from the Drools: User forum mailing list archive at Nabble.com.
14 years, 8 months
pipeline API
by Bobby Richards
looking for any documentation regarding the pipeline api. Trying to get an
amqp queue set as an entry point
Thanks
Bobby
14 years, 8 months