Without changing the rules: you might also use a WorkingMemoryEventListener
to collect the inserted new Fact objects.
A StatefulKnowledgeSession provides the method getObjects(), with or without
a filter, so you might consider using that.
-W
2011/7/6 Nathan Bell
Hi All,
Is there a way in which we can use a collection in the condition of a rule
(to be used in contains, memberof) , which can be managed by a Guvnor User
containing big list of elements (may be 10,000).
Having this in a Database is an option but considering the maintenance of
the list where
Option 1 is to just use a stateful session - from my understanding there is
pretty much no difference in terms of overhead.
The other option is to insert a 'ResultsAccumulator' object containing a
resultList. I
If you don't need to reason over your new Facts than rather than inserting them
just
You need a way to differentiate between policy's that have been updated and
that haven't been updated.
If you have control of your model then you could add an extra field, either as
a flag or containing the new value - if this field is null you know you need to
update it.
If you can't change
HI Deepak,
You never did answer my question:
Can you create new rules when configured to use Oracle? If so your
configuration, I'd assume, to be correct. AFAIK the repository folder is
only relevant if you're using JCR's file-system storage - if configured to
use a database I doubt it has much
There is no provision in Guvnor to build lists of facts to be used by rules.
Please feel free to raise a JIRA requesting such an enhancement for
consideration though.
On 6 July 2011 08:37, Prasad prasad1...@gmail.com wrote:
Hi All,
Is there a way in which we can use a collection in the
HI,
I'd just like to clarify, for others who come across this thread, that it's
not a Guvnor issue, but a Drools Expert (that does the compilation).
Anyway, here's two solutions for you:-
(1) Add the typesafe annotation to your DRL
declare Test
@typesafe( false )
end
rule prueba2
dialect mvel
The correct form for this kind of constraint in 5.1.1 is
UNB.size 0
(5.2.0 is more lenient.)
-W
2011/7/6 Michael Anstis michael.ans...@gmail.com
HI,
I'd just like to clarify, for others who come across this thread, that it's
not a Guvnor issue, but a Drools Expert (that does the
I think normally setGlobal variables are only used when you want to be able
to call back out to the java code again. (I'm not an expert by any stretch
so please take that with a grain of salt.) So you might be able to just
insert the list.
I'm going to assume the List is really
If I remove /id equals to $id / in the WHEN part, I can set the id in the
THEN part. But then the use case getOneObjectById does not work.
--
View this message in context:
http://drools.46999.n3.nabble.com/Drools-Guvnor-problem-tp3142574p3144190.html
Sent from the Drools: User forum mailing
This is how to do it - although it's not recommended to use globals in rule
conditions. (For one thing: the list must be complete before you call
fireAllRules().)
global List list
rule count from global List - but don't do it
when
Number( $i: intValue ) from accumulate( Person( age 20 )
Perhaps a more fully constructed question might be advantageous?
On 6 July 2011 11:21, _bart dgrund...@doubleslash.de wrote:
If I remove /id equals to $id / in the WHEN part, I can set the id in the
THEN part. But then the use case getOneObjectById does not work.
--
View this message in
I think that you have to access the property id of the matched System object
and use this for constructing the new System facts:
id $system.getId()
-W
On 6 July 2011 12:21, _bart dgrund...@doubleslash.de wrote:
If I remove /id equals to $id / in the WHEN part, I can set the id in the
I completely fail to understand the purpose of this rule. What I see here is
that lots of code don't change anything: the same objects will be inserted
again - more or less.
-W
On 6 July 2011 12:33, Wolfgang Laun wolfgang.l...@gmail.com wrote:
I think that you have to access the property id
Ok I will describe it again:
We want to administrate some objects in guvnor. Every object has one id, one
name and one description. We have round about 100 objects.
One use case is, that all objects (id, name and description) should be
displayed in a drop down box in our web frontend.
The next
I suspected something like that, but *matching *facts of type System from
Working Memory and *inserting *recreated facts of the same type isn't going
to get them nearer to the GUI?
-W
On 6 July 2011 13:10, _bart dgrund...@doubleslash.de wrote:
Ok I will describe it again:
We want to
Guvnor provides for the means to author rules, not consume them.
There's no capabilities to insert your objects (other than when writing test
scenarios for your rules). This would be the realm of KnowledgeSessions and
*your* application.
If however you want your application (you do state ...in
Quoting from the original post:
Our customer want that we use drools to administrate some objects. The
objects should be administrated with guvnor. Every object has one id, name
and description.
Perhaps a case of mistaken terminology?
-W
2011/7/6 Michael Anstis michael.ans...@gmail.com
Thanks Swindel.
The eligibilityScore is updated on 3 different rules by decrementing the
value if the condition is satisfied. Finally the eligibilityScore value is
used in the downstream. Is there any pattern available for these types of
use cases.
2011/7/6 Swindells, Thomas tswinde...@nds.com
Add a name into the policyUpdated type - each type of rule which should operate
separately only references policyUpdates of that given name so you stop those
from retriggering while allowing the others to trigger.
Thomas
From: rules-users-boun...@lists.jboss.org
Hi,
Finaly in my cases i stay in stateless session
And i've addeda result list.and get this list in out.
Thanks
Gaetan
De : rules-users-boun...@lists.jboss.org
[mailto:rules-users-boun...@lists.jboss.org] De la part de Swindells, Thomas
Envoyé : mercredi 6 juillet 2011 09:41
À : Rules
Any thoughts on using not CE's for gate facts?
--
View this message in context:
http://drools.46999.n3.nabble.com/Implementation-of-not-conditional-expression-tp3131856p3144732.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Hi all,
I played a bit with 5.2.0.Final and I have a couple of more questions, I don't
know whether I misread the documentation or I just expect too much...
1. Can I use functions in a web decision table columns? Because if yes, I just
can't figure out how... Either way would be good, calling
Thanks so much for your help guys, I will try your solutions...
--
View this message in context:
http://drools.46999.n3.nabble.com/Guvnor-5-2-0-Final-in-Tomcat-6-0-32-fail-to-compile-rules-tp3139077p3145092.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
There are many ways of doing unit testing in DROOLS - with or without
Eclipse. My last client is using JUnits with the Eclipse JUnit plug-in
where the tests examine the firing of individual rules and the values set on
domain objects. One advantage of this approach is that you can run any
number
Your issue looks like a persistence issue, not a DROOLS issue. If you do
more metering and experimentation people may be able to solve this for you.
You may want to check posts from about a year ago; there were MANY people
asking about JPA workflow persistence.
--
View this message in
Hi Justin,
I've answered some points you've raised below.
Hopefully others with greater knowledge in the areas in question can help
with the blanks.
With kind regards,
Mike
On 6 July 2011 16:15, Justin Case send_lotsa_spam_h...@yahoo.com wrote:
Hi all,
I played a bit with 5.2.0.Final and
Thanks Thomas.
2011/7/6 Swindells, Thomas tswinde...@nds.com
Add a name into the policyUpdated type – each type of rule which should
operate separately only references policyUpdates of that given name so you
stop those from retriggering while allowing the others to trigger.
** **
Thank you Michael for your quick answer :) I certainly hope there will be
somewhere some answer to the other points as well.
You can use a predicate within a pattern by selecting Predicate as the
Condition Column type. These compile to inline evals. It is not however
possible to define a
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
On 07/07/2011 01:55, Wishing Carebear wrote:
Yes, use the CommandFactory and build a batch execution adding the
StartProcessCommand.
Mark
___
rules-users mailing list
rules-users@lists.jboss.org
Thanks
I tried the following but the rules are not executing:
ListCommand cmds = new ArrayListCommand();
cmds.add( CommandFactory.newStartProcess(test-ruleflow));
Client client = initClient();
cmds.add(CommandFactory.newInsert(client));
final StatelessKnowledgeSession ksless =
Thanks Steve, the reordering worked.
On Wed, Jul 6, 2011 at 7:54 PM, Steve Reeves
steve.reeves.c...@statefarm.com wrote:
I've had this same problem in the past, and fixed it by moving the add for
newStartProcess down so that it is the last command before the execute.
Otherwise, what I
33 matches
Mail list logo