Okay, I've raised a JIRA.
https://issues.jboss.org/browse/GUVNOR-1792
I hope I can make a pull request soon :)
Cheers,
Toshiya
- Original Message -
From: Michael Anstis michael.ans...@gmail.com
To: Rules Users List rules-users@lists.jboss.org
Sent: Wednesday, December 21, 2011 6:29:55
Hi all,
I am new to Drools tool. I would like to implement the Drools Technical
Rule on the data (Excel file) through Talend Studio by using Embedded Rules
under the metadata or by using tBRMS component from palette. From both ways
we tried the job.
The technical Rule that we want to
Hi All,
I am new user of Drools tool. I have done a sample business Rule in
Drools and tested. It is working fine in Drools. So I validated the package
and imported .drl file into talend studio under Meta data (Embedded Rules).
The code generated for the business rule is as follows:
Hi,
I am having my rules in a Decision Table (.xls)
There I have 3 sheets for rules.
Like in Sheet1 there are two Rule Tables... In Sheet2 there are 2 and in
Sheet3 there is only 1.
When I am creating the knowledgebase and firing rules, the rules that are
in the Sheet1 are getting fired. But
The link
http://blog.athico.com/2011/12/new-feature-spotlight-traits-part-1.htmlhttp://docs.jboss.org/drools/release/5.4.0.Beta1/droolsjbpm-introduction-docs/html/releaseNotesBeta1.html???
in the release notes actually points back to the release notes not to the url
it is meant to.
The rest of
By definition (see the Expert manual) only sheet 1 is used for
generating rules.
For controlling rule firing you may consider using any of the rule
attributes supported by spreadsheets, e.g., agenda-group.
-W
On 21/12/2011, Sumeet Karawal sumeet.kara...@tcs.com wrote:
Hi,
I am having my
We have the following code to load multiple sheets from a single xls - it's
more involved than I would like and I'd agree with the sentiment that drools
should load all the sheets not just the first one.
It's brutely pulled from out codebase so I'll leave it as an exercise to the
reader to
Exactly, that script moves everything into place..
What you can do is to install in in another machine and see how
everything gets configured.
Cheers
On Wed, Dec 21, 2011 at 12:23 AM, Cristiano Gavião cvgav...@gmail.com wrote:
Not yet, because I'm trying to install Console in one existent Linux
That sounds like a product that is using Drools internally.
Unless you share more internal details about how drools is being
embedded we cannot help. (At least I cannot help)
You should ask them about what can be wrong with their product.
On Wed, Dec 21, 2011 at 5:31 AM, Lavanya
Once again, you should ask talend guys about how to configure the rule
environment to work with it.
It looks like you are using a model and the component in charge of
compiling the rules is not being able to locate the Sales class.
Cheers
On Wed, Dec 21, 2011 at 6:18 AM, Lavanya
Hi Mike,
Thank you for your quick reply. Actually, I want to use these Drools
business rules in Talend Studio which is an ETL tool. In this we are using
tBRMS component to execute Drools Rules.
I have one doubt, is Guvnor 5.3.0 or any higher version of drools is
compatible with Talend 4.2.2 or
On 21/12/2011 11:29, Lalitha wrote:
Hi Mike,
Thank you for your quick reply. Actually, I want to use these Drools
business rules in Talend Studio which is an ETL tool. In this we are using
tBRMS component to execute Drools Rules.
I have one doubt, is Guvnor 5.3.0 or any higher version of
Hi there,
I want to try some more examples of decision tables.
- I have tried with the example from eclipse (drools plugin - create new
decision table)
- TeamAllocationExample.xls and CheckAccepted.xls too (easy to find on
google).
But all of them are created in horizontal way (each rule is one
The presentation merely pointed out that there are several forms
about. A little later it says that only the vertical form is
supported.
-W
On 21/12/2011, Juanker Atina juank...@gmail.com wrote:
Hi there,
I want to try some more examples of decision tables.
- I have tried with the example
Hi Drools Rulers,
I am new to drools and I've configured a rule with the following:
rule my rules
ruleflow-group nike
no-loop true
when
$nikeShoe : NikeShoe() from shoeManager.getNikeShoe()
then
Hi,
if you use the from expression it will get evaluated each time that
anything in the session change (at least in your example).
So you can insert all the NikeShoes from the service you are calling
into the working memory and those rules will be only evaluated when a
NikeShoe is modified or
Actually I am appending the error in a collection in the party object itself.
So the rule is like this:
rule 041
when
Party( $e : errors)
Party(partyType != null, partyType.trim() != ,
partyType not in (MF, SE, BY, ST, LG,
CS, CN))
then
Do you understand the difference between:
Party( $e : errors)
Party(partyType != null, partyType.trim() != ,
partyType not in (MF, SE, BY, ST, LG,
CS, CN))
and
Party($e : errors, partyType != null, partyType.trim() != ,
partyType not in
Thanks Toshiya.
If you don't get a chance to make a pull request don't worry, I will pick
up in the New Year.
From the information you've given the addFieldsForType method should
perform a merge and not an overwrite.
2011/12/21 Toshiya Kobayashi tkoba...@redhat.com
Okay, I've raised a JIRA.
Is that true (i.e. all rules evaluated even though they won't be fired) also
of agenda groups?
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Action-tp3604296p3604571.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
packagelisturl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/webdav/packages
(which show the list of package ==
Contents of this Folder:
Yes, the agenda-groups works in the same way. They only control when
the activated rules should fire.
Cheers
On Wed, Dec 21, 2011 at 1:59 PM, lhorton lhor...@abclegal.com wrote:
Is that true (i.e. all rules evaluated even though they won't be fired) also
of agenda groups?
--
View this
Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are
inserted.
If I am not mistaken, ruleflow-group (like agenda-group) only controls what
activations (RHS) on the agenda caused by the evaluation of the LHS are
executed.
On 21 December 2011 15:24, Mauricio Salatino
I guess so :
In the first case it is Assign errors to $e for all parties.
and in the second case it is Assign errors to $e for the parties matching
the condition.
Is that a correct statement ?
It is working as expected in my local environment but in the development
env.
--
View this
The horizontal implementation is in
org.drools.decisiontable.parser.xls.ExcelParser.
If you look at the processSheet method you'll see it scans rows to build
the decision table.
A vertical implementation would need to obviously scan columns (and a pull
request for a community contribution would
To add to Michael,
Insert/Update/Retract
2011/12/21 Michael Anstis michael.ans...@gmail.com:
Just to add to what salaboy wrote, *all* LHS are evaluated as Facts are
inserted.
If I am not mistaken, ruleflow-group (like agenda-group) only controls what
activations (RHS) on the agenda caused
So if we have, for example, a set of rules that we know only need to be
evaluated under certain conditions or for discrete types of Facts, would it
be more efficient to put them in a separate knowledge sessions?
Meaning, instead of one session where we insert all objects and then fire
no.. the first option
Looks for two instances of Party() and the second just for one
instance of Party()
No, if you bind a variable inside a Pattern, the $e variable in your
case will contain only the errors from the party that matches.
The second rule will evaluate two instances of Parties, that
It depends on your problem, but yes.. it could be more efficient,
except for the fact that you need to move all the objects from one
session to the other.
Another alternative is to use some kind of control fact that only
activate the second group of rules when the first group has been
evaluated.
Using a KnowledgeBuilder defaults to using
org.drools.decisiontable.DecisionTableProviderImpl. This in turn uses
org.drools.decisiontable.SpreadsheetCompiler that delegates to
org.drools.decisiontable.parser.xls.ExcelParser in its compile method. The
delegation uses a ExcelParser constructor that
Thanks for the explanation. I think I got it.
Here is my scenario: I have n number of parties in the memory. I have to
perform the validation on each party for the party type. If it fails then
add an error message(just one) to the collection of that particular party.
So I rewrote the rule as
First solution is the one I use almost all times, and moving facts from a
session to another is far less costly than propagating facts for rules that
will never be fired...
The second solution could be great too, but I am not sure that it will cut all
propagations. If you have this :
rule
I bet this : your error list is the same instance, shared in all Party
objects...
Am I right ?
And why do you need to pass drools to your appendMessage method ? Do you
modify (insert/update/retract some objects) the WM inside this method ? Be very
careful if you do that (especially if you said
You were right. There was a bug in the system. I fixed and it is working as
expected now.
I am passing the 'drools' object to get the rule name. I am not modifying
the WM after I call the fireAllrules method
Thanks a lot and Happy Holidays.
--
View this message in context:
Hi there,
We imported a fairly big BPMN2 process inside Guvnor, but the only way to
reach/watch some parts of the process is through zooming out the model.
Unfortunately, by then, the process is too small to be read/edited. The
yellow arrows at the edges that allow to increase the canvas size
Hmm that sounds awkward.. Can you file a jira issue for that problem?
Cheers
On Wed, Dec 21, 2011 at 6:33 PM, jwest jmwest...@gmail.com wrote:
Hi there,
We imported a fairly big BPMN2 process inside Guvnor, but the only way to
reach/watch some parts of the process is through zooming out the
Dear Sirs:
I'm working on an application which writes a set of rules using information
which is stored in BDD tables. This information can be 'wrong' concerning
rule compilation, and I expect that Drools reports the corresponding
compilation errors.
I've found that
I have one simple rule, just check the boolean attribute of the object and
print the value of the boolean, that simple rule. I am using java as my rule
dialect. I found something interesting while debugging.
1. When i read the drl file from the local file stream I found the
following...
Hi,
I've downloaded the JBPM installer 5.2.Final. It is running ok.
I'm trying do enable role based authentication for Guvnor and I'm not
having success.
So, I found some links at google and I follow this:
1) modified the standalone.xml:
security-domain name=other cache-type=default
Hi All,
I have created declarative model in global area but even it is not visible
to other packages, how to some model to available to the all packages.
Thanks in Advance
--
View this message in context:
Did you try importing the declared types in the other drl?
Package.declared type
- CTO @ http://www.plugtree.com
- MyJourney @ http://salaboy.wordpress.com
- Co-Founder @ http://www.jbug.com.ar
- Mauricio Salaboy Salatino -
On 21/12/2011, at 22:41, srinivasasanda srinivasasa...@gmail.com wrote:
Hi Salaboy,
I have a problem please give me some solution..
packagelisturl=http://localhost:8080/guvnor-5.2.0.Final-jboss-as-5.1/org.drools.guvnor.Guvnor/webdav/packages
(which show the list of package ==
Now would you mind posting an example reproducing this error...
-W
On 22/12/2011, Manuel Ortiz manuel.ortizra...@gmail.com wrote:
Dear Sirs:
I'm working on an application which writes a set of rules using information
which is stored in BDD tables. This information can be 'wrong' concerning
43 matches
Mail list logo