Calling specific Rule Group
by Swapnil Sawant
Hi,
I have created two rule groups "Group 1" and "Group 2".
Now, I have read that to execute these groups I need to write something like following code :
Rule "pick group X"
when
Fact( attribute = "condition1" )
then
drools.setFocus("Group 1")
end
Rule "pick group Y"
when
Fact( attribute = "condition2" )
then
drools.setFocus("Group 2")
end
I wanted to know is it always necessary to write separate rules for calling/execution of these rule groups (rules "pick group X" and "pick group Y")?
Or is there any other api function similar to ksession.fireAllRules() for calling specific rule group ?
Thanks & Regards,
Swapnil Sawant
________________________________
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.
______________________________________________________________________
15 years, 9 months
Bug in 5.1 : function w/o parameter type is a no-no
by Wolfgang Laun
The RTE is caused by following DRL.g in writing a function; it says you can
omit the type for a parameter. A function like this causes the crash:
function inf sqr( a ){ return a*a; }
Untyped parameters may be used in queries. I suppose it will be necessary to
use different NTs for parameters and param_definition.
Exception in thread "main" java.lang.RuntimeException:
org.drools.compiler.DroolsParserException: Unknown error while parsing. This
is a bug. Please contact the Development team.
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:545)
at
org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at rss.drools.setup.Application.setup(Application.java:40)
at rss.drools.setup.Application.execute(Application.java:60)
at appl.transport.Transport.main(Transport.java:64)
Caused by: org.drools.compiler.DroolsParserException: Unknown error while
parsing. This is a bug. Please contact the Development team.
at org.drools.compiler.DrlParser.compile(DrlParser.java:250)
at org.drools.compiler.DrlParser.parse(DrlParser.java:142)
at org.drools.compiler.DrlParser.parse(DrlParser.java:147)
at
org.drools.compiler.PackageBuilder.addPackageFromDrl(PackageBuilder.java:264)
at
org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:459)
15 years, 9 months
SAML 2.0 support ?
by Lavabit
Hi,
I try to find out how good SAML support in Jboss is.
I would like to know if any of you as ever succesfully tested JBoss against a
certified SAML 2.0 Identity Provider ?
Thank you very much.
Pierre
15 years, 9 months
Ruleflow and events
by pieter
Hi,
I have a foreach node with a composite node nested inside it. In the
composite node I have an exception handler defined and a fault node. The
exception handler calls
context.getProcessEngine().signalEvent("MyFaultType",
context.getVariable("MyFaultVariable"));
However if the MyFaultType event node is nested in either the foreach or
composite node then the process engine can not find it. It only finds it
if the event node is outside both the foreach and composite node.
Caused by: java.lang.IllegalArgumentException: Unknown node id: 57
at org.drools.workflow.core.impl.NodeContainerImpl.getNode(NodeContainerImpl.java:46)
at org.drools.workflow.core.node.CompositeNode.getNode(CompositeNode.java:33)
at org.drools.workflow.core.node.ForEachNode.internalGetNode(ForEachNode.java:102)
at org.drools.workflow.instance.impl.NodeInstanceImpl.getNode(NodeInstanceImpl.java:91)
at org.drools.workflow.instance.node.EventNodeInstance.getEventNode(EventNodeInstance.java:66)
at org.drools.workflow.instance.node.EventNodeInstance.signalEvent(EventNodeInstance.java:36)
at org.drools.workflow.instance.node.CompositeNodeInstance.signalEvent(CompositeNodeInstance.java:219)
at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:278)
Is this expected behavior?
I am trying to have the foreach loop continue after the fault is raised.
Thanks
Pieter
15 years, 9 months
Perfomance issue when accessing Guvnor using a Web service
by bbarani
Hi,
We have written a webservice which will inturn invoke the Rules present in
Guvnor and returns the response from Guvnor to the invoking client app.
We have written the Webservice using Axis 2 WS.
Guvnor is using SQL server 2005 as its backend.
It takes around 15 to 20 seconds for Guvor to send a response back to WS. I
am very much interested in getting to know various performance factors that
affects Guvnor.
I am currently running the webservice from one server and Guvnor is running
in another server (This server doesnt have any app other than Guvnor).
Whenever a call is made to Guvnor from the WS, I could see the heap size of
Tomcat container (where Guvnor is deployed) growing interms of MB but it
doesnt decrease at all. After some time I get out of memory errors.
I just want to check if someone has a better configuration parameters for
Guvnor which can help me to increase performance and also to deal with
memory related issues.
Thanks,
Barani
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Perfomance-issue-when...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
category rules in Guvnor packages
by Vincent Legendre
Hi all,
I can't make my rules inherit from category rules.
I saw a JIRA reporting a malfunction for this, but it shoud be corrected.
I am using version 5.0.1
I tried a category rule writen un DRL, or in BRL. Same for rules that
should inherit the LHS (tested with pure DRL, BRL ...) from one of their
categories. And yes I tried to inspect the big DRL generated from
package, and also tried with compiled binary.
Does anyone have some kind of doc or sample using this function ?
Is there some restrictions on rules than can use this, either for
category rules and/or rules that should inherit some LHS ?
Thanks !
15 years, 9 months
How implement custom editor for Drools Flow work definitions?
by Mattias Nilsson
Hi,
I'm trying to implement a custom editor for my own work definitions in
Drools Flow but run into classloading issues when I try to start the
custom editor from Eclipse.
I have tried various ways of building and packaging my class but all
result in NoClassDefFoundError, LinkageError, ClassCastException etc.
Does anyone know what's the trick to successfully making and using an
own implementation of org.drools.process.core.WorkEditor? Any pointers
or example code would be much appreciated.
Thanks,
Mattias Nilsson
15 years, 9 months
GC overhead limit exceeded
by LeoIo
Hi,
I am getting "java.lang.OutOfMemoryError: GC overhead limit exceeded" error.
Using Drools 5.0.1 or 5.1.
There are about 1500 objects in the working memory. Everything goes fine
until I add an additional condition on a list attribute. I am trying to get
the size() of this list and compare it to an integer. (Actually the list
size is never greater 2) All objects from the list attribute are already in
working memory, so I think there is no need to add them to WM once again.
Statistics shows a dramatic increase on number of objects using this
constraint.
So once again. Suppose I have 1500 objects of type "man". It has a list
attribute "children".
Following structure works:
If man.name == Peter, print Peter's age.
But the following scenario doesn't work for me (GC error):
If (man.name == Peter) && (man.children.size() > 1), print man's age.
Any ideas on how to fix that? May be reformulate the problem? Or fine tune
WM settings somehow?
Thanks in advance.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/GC-overhead-limit-exc...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months