Just repeat this, as often as required, with as many facts in facts
as you want:
// copy-pasted from the API documentation ;-)
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
for( Object fact : facts ) {
ksession.insert( fact );
}
ksession.fireAllRules();
Is there anything that has to be taken care in case of a stateless session.
I have a huge collection of facts that needs to get into the working memory and
I fire ksession.execute(Collecton object);
Regards,
Shobha M | Senior Program Manager, AAD | NTT DATA Global Delivery Services
Limited|
On 10/10/2012, Mahadevappa, Shobha shobha.mahadeva...@nttdata.com wrote:
Is there anything that has to be taken care in case of a stateless session.
I have a huge collection of facts that needs to get into the working memory
and I fire ksession.execute(Collecton object);
That'll do - it calls
Hi,
With Drools I need to execute a DRL first and based on its output value I
need to evaluate a decision table in guvnor and get the output values.
Please let me know how this can be done.
Thanks,
Manasi
--
View this message in context:
Chaining rules, including those in decision tables, can be achieved by
using a transient control fact.
rule your DRL rule 1
when
YourObject( field == 1 )
then
insertLogical( new TransientControlFact( dtable1 );
end
rule your DRL rule 2
when
YourObject( field
Hi ,
I want to keep events valid for 24 hour period. Per day I’m getting over
1000K events insert into session. I saw that heap usage increase
drastically because of this. What is the best practice to handle such a
situation? Do I need to choose some caching mechanism?
Meantime I’m using
Thank you! I did write code for this last night and ran it, but didn't get
the results I wanted so I was thinking the session was disposed before it
had a chance to run the rules. But the real issue was that I did not write
my rule correctly.
Thanks again!
--
View this message in context:
Thank you very much, it worked.
kind regards
Lukas
--
View this message in context:
http://drools.46999.n3.nabble.com/Finding-the-definition-of-a-rule-tp4020183p4020196.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
Does anyone know where I can find documentation on the Drools 5.5 runtime
files necessary to deploy with the application?
Thank you for your assistance.
-Dean
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-5-5-Runtime-files-tp4020199.html
Sent from the Drools: User
Look at the Expert docs, for drools.getWorkingMemory(). This might be what
you need. the iterateObjects() method on WorkingMemory lets you see all
facts in working memory at runtime.
--
View this message in context:
http://www.jboss.org/drools/downloads
About half way down. When we get to 5.5.0.Final it'll move to the top of
the page.
The User Guide talks about dependencies:
http://docs.jboss.org/drools/release/5.5.0.Beta1/droolsjbpm-introduction-docs/html/installationAndSetup.html
On 10 October 2012
kBase -- getKnowledgePackages() -- getFactTypes()
returns the definitions for a given package
kSession -- getObjects( new ClassObjectFilter( factyype.getFactClass() ) )
returns the actual instances of a given fact type
Davide
--
View this message in context:
FYI, I came across a similar problem calling a method declared on a Java
helper class, when the method takes a Number and the value passed in is
declared as long or int. Problem does not occur when value is declared as
double.
Simplified version of my example:
class JavaHelper {
public
Hi All
I am a newbie
I have a question
In guvnor we have categories
Using REST API we can access assets through categories like
/rest/categories/{}/assets ...something like this
I have a JSON object which gets populated which has references to binary
for all the assets
1) How do we construct
Hi laune,
Assume we continuously getting vast number of facts or events from a stream
and we want to reasoning over particular time window (accumulate number of
events on this window) how we could achieve the same? Guess we cannot call
dispose() after fireAllRules().
--
View this message in
I were able to launch the custom form in DSL, however the rule condition is
not mapped to corresponding DRL. I don't know if this is a bug or just
something is missing. my DSL mapping looks like this:
[when]
my dsl is {varName:CF:MyFactType.fieldName} =
System.out.println({varName})
I have
16 matches
Mail list logo