Re: [rules-users] Skills required for using Drools Guvnor
by Swapnil Sawant
Just wanted to make picture more clear.
I will be developing my application where I would be using drools guvnor for managing rules separately .
In the process of development, I would be setting up all the things required for 'running rules in my application'
Once application development is finished, I will be deploying it at client side.
Once this deployment is done, now If any rule has to be managed(updations) then what kind of skills the end user of this application should possess so that he can manage the rules on his own ?
Thanks,
Swapnil Sawant
From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:27 PM
To: 'rules-users(a)lists.jboss.org'
Subject: RE: Skills required for using Drools Guvnor
Small correction.... Java programming language :)
From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:22 PM
To: 'rules-users(a)lists.jboss.org'
Subject: Skills required for using Drools Guvnor
Hi,
I had a very basic question. I wanted to know the pre-requisite skills which are required in order to start working on drools guvnor GUI.
When I say work , I mean creating rules/modifying them etc.
Technical knowledge(e.g. java technology) is must in this case?
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.
______________________________________________________________________
14 years, 3 months
Re: [rules-users] Skills required for using Drools Guvnor
by Swapnil Sawant
Small correction.... Java programming language :)
From: Swapnil Sawant
Sent: Wednesday, August 18, 2010 2:22 PM
To: 'rules-users(a)lists.jboss.org'
Subject: Skills required for using Drools Guvnor
Hi,
I had a very basic question. I wanted to know the pre-requisite skills which are required in order to start working on drools guvnor GUI.
When I say work , I mean creating rules/modifying them etc.
Technical knowledge(e.g. java technology) is must in this case?
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.
______________________________________________________________________
14 years, 3 months
PLEASE HELP: Possible concurrency issue in Drools
by Norman C
Hi All,
I've posted on this topic twice and logged a JIRA ticket
(https://jira.jboss.org/browse/JBRULES-2651) as well. I've received no
responses and the bug hasn't been updated since I logged it.
This is a serious issue as it causes my production system to freeze up and it
has to be restarted. It's consistently reproducible (usually takes a few
days).
Can someone please take a quick look at the code? Does the call to
SingleThreadedObjectStore.addHandle in NamedEntryPoint.insert need to be
preceded by acquiring the lock?
Thanks again for your help.
Norman
________________________________
From: Norman C <rent_my_time(a)yahoo.com>
To: rules-users(a)lists.jboss.org
Sent: Wed, August 4, 2010 11:23:55 PM
Subject: Re: Possible concurrency issue in Drools
I've run into this issue a few more times. Should I log a JIRA ticket for
this? Any advice would be appreciated.
Thanks,
Norman
________________________________
From: Norman C <rent_my_time(a)yahoo.com>
To: rules-users(a)lists.jboss.org
Sent: Sat, July 31, 2010 9:56:26 PM
Subject: Re: Possible concurrency issue in Drools
All,
Just wanted to mention, I'm using version 5.0.1 of Drools.
Thanks,
Norman
________________________________
From: Norman C <rent_my_time(a)yahoo.com>
To: rules-users(a)lists.jboss.org
Sent: Sat, July 31, 2010 9:50:19 PM
Subject: Possible concurrency issue in Drools
Hi All,
I recently ran into an issue which I believe might point to a concurrency
issue. My server stopped processing new requests, so I did a thread dump. In
examining the dump, I found that all of the processing threads, save two, were
blocking while trying to acquire the lock in NamedEntryPoint.insert. Both of
the other two threads appeared to be infinitely looping in the
NamedEntryPoint.insert method. Here are snippets of the stack traces:
ActiveMQ Session Task" prio=10 tid=0x00002aab0003b000 nid=0x7b98 runnable
[0x000000004c086000..0x000000004c087c90] java.lang.Thread.State: RUNNABLE
at org.drools.util.ObjectHashMap.remove(ObjectHashMap.java:121) at
org.drools.common.SingleThreadedObjectStore.removeHandle(SingleThreadedObjectStore.java:150)
at org.drools.common.NamedEntryPoint.retract(NamedEntryPoint.java:296)
at org.drools.common.NamedEntryPoint.retract(NamedEntryPoint.java:245) at
org.drools.reteoo.ReteooWorkingMemory$WorkingMemoryReteExpireAction.execute(ReteooWorkingMemory.java:350)
at
org.drools.common.AbstractWorkingMemory.executeQueuedActions(AbstractWorkingMemory.java:1488)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:158)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:122) at
org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:80) at
org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:28) at
ActiveMQ Session Task" prio=10 tid=0x000000005a35cc00 nid=0xdf6 runnable
[0x000000004a268000..0x000000004a269a90] java.lang.Thread.State: RUNNABLE
at org.drools.util.AbstractHashTable.resize(AbstractHashTable.java:115) at
org.drools.util.ObjectHashMap.put(ObjectHashMap.java:78) at
org.drools.common.SingleThreadedObjectStore.addHandle(SingleThreadedObjectStore.java:136)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:113)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:80) at
org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:28) at
So it seems like one while the first thread is holding the lock and is
attempting to remove an object handle from the object store in NamedEntryPoint,
the other thread is trying to resize that same object store in response to an
addHandle call that puts it over the threshold. I haven't worked out exactly
how these concurrent accesses to the same object store by two different threads
causes an infinite loop in both threads, but it seems like the call to
SingleThreadedObjectStore.addHandle should be preceded by acquiring the lock.
Is this correct? I can imagine that resizing a large hash map could potentially
take a long time and thus synchronizing this call could impact performance, but
somehow, the action of resizing the table must be protected in some way from
adversely impacting other operations on the table.
Any help would be appreciated.
thanks,
Norman
14 years, 3 months
Re: [rules-users] [rules-user] Setting Configuration Option in KnowledgeBase
by Nicolás Sanchez
Thanks Edson for the answer. Now I realised that there is no mistake in the
Jboss documentation, the example is exactly as you wrote it.
The problem is that I can`t select EventProcessingOption.STREAM, and when I
was typing the only suggestion I had was EventProcessingMode.STREAM.
Am I missing any Dependency? or Package?
Nicolas
14 years, 3 months
[rules-user] Setting Configuration Option in KnowledgeBase
by Nicolás Sanchez
Hi, I am a Newbie with Drools5.1.0 and I was trying to set a
KnowledgeBaseConfiguration Option using Drools Fusion.
I tried the code that was in the Documentation part of Drools Fusion:
KnowledgeBaseConfiguration config =
KnowledgeBaseFactory.newKnowledgeBaseConfiguration();
config.setOption(EventProcessingMode.STREAM);
And the next Error appears, and I don`t understand why:
Bound mismatch: The generic method setOption(T) of type
KnowledgeBaseOptionsConfiguration is not applicable for the arguments
(RuleBaseConfiguration.EventProcessingMode). The inferred type
RuleBaseConfiguration.EventProcessingMode is not a valid substitute
for the bounded parameter <T extends KnowledgeBaseOption>
Regards,
Nicolas
14 years, 3 months
rules un end looping when update
by sony john
Hi all,
Iam using rules 5.1
iam getting un endded printout in my console.
What could be the issue.
Thanks in advance.
#created on: Aug 16, 2010
package com.test.supplier
#list any import classes here.
#declare any global variables here
import com.test.supplier.dao.Workflow;
rule "Your First Rule"
when
m: Workflow(workflowActorId==null,myid:workflowActorId)
then
System.out.println(myid + "its null values");
update(m);
end
14 years, 3 months
Insert fact to a stream in rule consequence
by Mike Love
Hi,
How does one insert a new fact in the RHS of a rule to a specific stream so
that this fact is available to other rules that get facts from that stream?
Thanks,
Mike
14 years, 3 months
Question on excel decision table with "$variable : Type ( ) from collection"
by Fred Zhang
I want to build a excel decision table to implement the logic described as
the following drl script:
======
global pricebook.PricingResult result;
rule "pricing"
when
$so : SalesOrder( customer.name=="customer1", from == "location1", to
=="location2")
*$sol : SalesOrderLine($sol.count >= 0, $sol.count < 100) from $so.lines
*
then
result.setPricingMode("A");
result.setUnitPrice(300.0f);
end
======
The java model for the script above is something like this:
======
class SalesOrder{
...
List<SalesOrderLine> lines;
...
}
======
In the excel decision table, I defined variables with the following text in
excel cells:
======
$so : SalesOrder
*$sol : SalesOrderLine ( ) from so.lines*
...
======
The CONDITION column is defined as :* $sol.count >= $1, $sol.count < $2*
The decision table is translated into the following drl script:
global pricebook.PricingResult result;
rule "pricing"
when
$so : SalesOrder( customer.name=="customer1", from == "location1", to
=="location2")
* $sol : SalesOrderLine from $so.lines($sol.count >= 0, $sol.count < 100)
*
then
result.setPricingMode("A");
result.setUnitPrice(300.0f);
end
We can see that* "$soi : SalesOrderLine ( ) from so.lines"* in the excel
decision table is translated into* "$sol : SalesOrderLine from
$so.lines($sol.count >= 0, $sol.count < 100)" * instead of *"$sol :
SalesOrderLine($sol.count >= 0, $sol.count < 100) from $so.lines"*, which
causes an error.
My question is, how to write the variable definition of SalesOrderLine in
excel so that drools can translate it into something like "$sol :
SalesOrderLine($sol.count >= 0, $sol.count < 100) from $so.lines " ?
Any ideas?
Thanks in advance...
14 years, 3 months
Embedded Drools into clustered application
by cafebabe
Hi,
Based on my understanding from reading some drools posts and blogs, stateful
knowledge session will not work correctly if drools is embedded into an
application deployed in clustered application servers. Am I right?
What if I want to use embedded drools purely for its BPM (drools flow) in
clustered application? Any gotchas to take note or it will simply not
working?
anybody has related experience?
(i found there is work-in-progress alternative - drools grid. but i prefer
to start with embedded drools flow bcoz it is simpler to code and offers
more control.)
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Embedded-Drools-into-...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 3 months