HI Mike,
I am working with zeeshan on same project since last week and face problem
in formula generation in *Then* section of a rule. We are targeting guvnor
as user friendly tool with minimum coding and quick development of complex
rules. But with missing formula section in *Then* we are
On 15/05/2012, mike mike...@gmail.com wrote:
that's nice ... n' a bit clever ... it could work ... I mean, i could
automatically append that to all sessions given that i control compiling
the drls.
Is there any setting or something that detects infinite loops? Like it
would abort if if
On 16/05/2012, Joe Ammann j...@pyx.ch wrote:
On 05/15/2012 07:24 PM, Wolfgang Laun wrote:
Assuming you can get hold of the resulting DRL text, a simple script
might detect rules where there is nothing between then and end.
I have currently implemented something similar. A REST client that
No it is not corrupted, I've uploaded it through Guvnor web console. When I
download it directly through Guvnor UI, I get a valid file.
Also when I reach it through REST API using:
http://{guvnor_url}/rest/packages/{package}/assets/{xls_name}/binary , I
also get a valid file.
The only case when
Hello,
I'm trying to build a rule which accepts the dynamic facts. The dynamic
facts are created using the javassist API. The rule works fine when I'm
adding a single rule but as soon as I declare any function in the drl file
the rule doesn't compile.
*Following is the code sample for creating
Thank you everybody for your help.
Paco
--
View this message in context:
http://drools.46999.n3.nabble.com/Problem-with-Drools-Eclipse-tp3988261p3996589.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing
On 05/16/2012 09:06 AM, Wolfgang Laun wrote:
On 16/05/2012, Joe Ammann j...@pyx.ch wrote:
On 05/15/2012 07:24 PM, Wolfgang Laun wrote:
Assuming you can get hold of the resulting DRL text, a simple script
might detect rules where there is nothing between then and end.
I have currently
You aren't showing all of your code, or not the code you're actually using.
It's remarkable that you can compile your DRL (without the function)
when the dynamically created class drools.dynamic.MyDynamicClass
isn't there yet.
Is the function logMessage declared in the DRL where the error is
On 16/05/2012, Joe Ammann j...@pyx.ch wrote:
On 05/16/2012 09:06 AM, Wolfgang Laun wrote:
The first rule is called No action - possibly commented out.
Had a look at this and I think this will be the way for me: Implement my
own set of verifier rules. It still don't quite understand how I
Thanks a million for your reply.
Yes this is a sample code because the one I'm actually working on is much
complex. The actual flow is
- create dynamic object and keep it in map
- create session and load drl
- insert all the dynamically created object in drools session
- fire all rules.
Yes,
You will have to provide all of your (reduced) code as it reproduces the issue.
It's pointless posting I got this error when you don't show the
actual code where it happens, the error message, the way DRL
compilation is done...
-W
On 16/05/2012, Ayush ayush.vatsya...@alcatel-lucent.com wrote:
Hi all
coming from another thread [1], Wolfgang pointed me to the Guvnor/Drools
verifier. I am looking now for ways to implement my own verification
rules into Guvnor.
Ideally, I would like to be able to hook into 2 places in Guvnor with
custom rules (maybe these are going actually through the
Hi All,
I'm trying to write a flow which will loop back (go back to
particular node on a condition and start executing nodes from there) on
passing a certain validation. I'm confused on how exactly to achieve this.
I'm using an OR gateway to split and using XOR to join them back. But the
Hi.
We are trying out Guvnor 5.3.0 in a JBoss 4.2.2 environment.
Guvnor is set up to use an Oracle 11 instance as repository.
We experience a couple of problems:
1) We all login as guest, and when creating a package, the package appears
on other workstations but no assets. Is this an expected
Thanks for raising the JIRA. It is now fixed (for 5.5.0.beta1).
For 5.4, you may have seen from the release notes, I made the value
editors for different data-types more robust - only permitting entry of
valid values.
It is very unfortunate I missed formula on the THEN part, that as you
noticed,
Finding bugs always helps the community at large :)
As for your prize, rest in comfort knowing that whenever I see your name I
will curse ;)
If you'd like to get more involved with developing Guvnor, read the
Getting involved part of the user-guide (I forget exactly where it is)
and come to one
Hahahahahaha ;-) and thanks Mike for the fix.so now I need to use
*5.5.0.beta1*..??
Currently I am using *guvnor-5.4.0.CR1-tomcat-6.0* WAR file then imported it
in Eclipse IDE, opened the browser and found the Guvnor Drools GUI and after
that followed JBOSS DROOLS BUSINESS RULES(old
Hi Mike
I am working along with Zeeshan and Aswin. I hav started exploring drools a
month back n finished 3 products one using the .drl rule and two using
decision table. They have joined while exploring guvner just 2 days back n
we have raised that bug.
But nw we have a new requirement , for
anchi wrote:
No it is not corrupted, I've uploaded it through Guvnor web console. When I
download it directly through Guvnor UI, I get a valid file.
Also when I reach it through REST API using:
http://{guvnor_url}/rest/packages/{package}/assets/{xls_name}/binary , I
also get a valid file.
You can get the latest, bleeding edge, release from our Continuous
Integration server:-
https://hudson.jboss.org/hudson/job/guvnor/lastSuccessfulBuild/artifact/guvnor-distribution/target/
Make sure you pick a build that has the fix in it!
You can also download the source and build from that,
In an ideal world you should not normally need to think about sequencing
the order of rule execution. I suspect you are thinking procedurally.
The WHEN part of a rule is evaluated as Facts are inserted into Working
Memory. This causes Activations for the THEN part to appear on an Agenda
Thanks very much Mike !!
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-can-t-put-formula-on-Guvnor-screen-tp3987830p3996773.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users
I already used a global limit of rule's firing with success to prevent these
kind of problems (with a big number, eventually calculated from rules as
Wolfgang said).
This works, at least to detect infinite loops, because usually, when this
happend, the number of firing increases very fast so
*Questions:*
1st -What cud be d problems in the above case?
.rf are not supported in guvnor. Use jbpm instead. See some previous (and
numerous) posts ...
2nd- can I create a test case for our rule flow in guvnor and execute it?
don't know if the session used for test scenario in guvnor use a
BTW, I forgot to mention.
I suspect the book is copyrighted and I therefore the PDF is an eBook. It
shouldn't really be shared, as it's probably licensed to someone.
As Mark said, there isn't a newer version available.
With kind regards,
Mike
On 16 May 2012 10:51, zeeshan
Hi Mike !!
Actually I was asking from where I can purchase updated version of this
book. Can u provide any link from where I can buy online??? Or is there
any updated user guide for this from where I can learn Drools deeply...??
Thanks !!
--
View this message in context:
Hi guys
We are using Drools for event processing. So we have rules that, for
instance, put accumulation function over window of number of elements (not
time).
... from accumulate(Class1($a:a) over window:length(X) from entry-point
Point...
The problem we are experiencing that when evaluating the
I'd recommend Drools Expert 5.4.0's user guide. I always found it
informative.
Guvnor's user-guide has improved vastly over the past few releases, but it
won't win any literacy prizes.
http://www.jboss.org/drools/documentation has links to the existing book
list.
The Cookbook is the most recent
Accumulate the count of elements (in addition to whatever you
accumulate) and test the result as being == X. As of (IIRC) 5.3.0, you
can write multi-function accumulates.
-W
On 16/05/2012, senyatur senya.touret...@emc.com wrote:
Hi guys
We are using Drools for event processing. So we have rules
Hi Mike !!
I have downloaded almost all the files and now going through one by
onewill let u know if get stuck in problem...
Thanks !
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-can-t-put-formula-on-Guvnor-screen-tp3987830p3996861.html
Sent from the
Seems that there is a confusion here ...
window:length(X) is constraining the events timestamps to be in a time-windows
of length X (in seconds).
To contrain the number of accumulated facts, it must be done by adding a
constraint in the resulting list :
$list : ArrayList(size Nb) from
An app we purchased uses Drools 5.0. We have built 600+ rules within 50+
rule sets. Since Drools not a relational db, how can we create reports and
analytics on rules usage, such as user date/time when rule last changed,
also date/time rule last executed. We are usin SQL Server Report Services
On 16/05/2012, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote:
Seems that there is a confusion here ...
window:length(X) is constraining the events timestamps to be in a
time-windows of length X (in seconds).
Definitely not. It's window:time that restricts by a time interval.
heavilly discussed subjects ... This list should contain a lot of answers
already ...
To summarize :
- user date/time when rule last changed : Can be got from Guvnor, if you are
using it. If not, you have to plug something between your editor and your
storage
- date/time rule last
We purchased an app that uses Drools 5.0, have set up many rules that use the
relative date logic (ie tagname: 60 would look for this tag if = 60 days on
account), but it appears to misfunction sporadically, is there a none bug
and work around, or perhaps the app using Drools has a bug. Really
On 16/05/2012, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote:
Seems that there is a confusion here ...
window:length(X) is constraining the events timestamps to be in a
time-windows of length X (in seconds).
Definitely not. It's window:time that restricts by a time interval.
oups
On 16/05/2012, Vincent LEGENDRE vincent.legen...@eurodecision.com wrote:
accumulate( Whatever(...), $count: count(1), ... )
eval( $count == X )
strange construction ...
$count: count(1) is part of the pattern ? then automatically incremented
in $count variable ?
Does the accumulate
On 16/05/2012, thatz thomash...@yahoo.com wrote:
We purchased an app that uses Drools 5.0, have set up many rules that use
the
relative date logic (ie tagname: 60 would look for this tag if = 60 days
on
account),
That's not a native Drools (DRL) pattern or constraint. Could be an
extension
Laune,
Thank you a lot for your reply. Here I go explaining the code.
*I'm generating dynamic java objects. In this the class file is made once
and on each request we make a new instance and insert it in drools session*
public Object getFact ()
throws CannotCompileException,
ok, got it.
not a strange construction, but a beautiful one !!
thx
- Mail original -
If you want to have a list, you can have it in addition to count:
accumulate( $w: Whatever(...) from window:length( 10 ),
$count: count(1), $list: collectList( $w ),... )
I removed all this servlet stuff and then I added
msgCtClass.writeFile();
after building the class in FactGenerator and it works.
-W
On 16/05/2012, Ayush ayush.vatsya...@alcatel-lucent.com wrote:
Please find the attached code as zip. It contains following files
1) index.jsp: contains just
Hi there,
I have a rule where I would like human-readable rule to have a comma
separated list of enum constants in it, however I can't find a way to get
this working.
DSLR file:
import com.test.Report;
import com.test.RulesResult;
import com.test.State;
rule Test rule
when
the
The theme data is stored in Guvnor itself (in the GlobalArea). Do you by
chance remove GlobalArea or the user you have defined in Designer's
jbpm.xml cannot access it for some reason?
Take a look at
http://surdilovic.wordpress.com/2012/05/10/color-themes-support-in-jbpm-designer/,
there the
Hi,
Unless there is another workaround, I think you would have to do it
something like this:
[*][when]the received object=result : RulesResult();$stm : Report()
[*][keyword]NEW=State.NEW
[*][keyword]OLD=State.OLD
[*][when]- state is {stateList}=state in ({stateList})
Regards,
Frank
--
View
Regrettably, this is just a string substitution, not caring what it
is, or what comes before or after.
-W
On 16/05/2012, dsykes derek.sy...@gmail.com wrote:
Hi there,
I have a rule where I would like human-readable rule to have a comma
separated list of enum constants in it, however I can't
Hey Frank,
It's not perfect but it should serve the purpose and is far preferable to
the alternatives I was considering. Thanks very much!
Cheers,
Derek
--
View this message in context:
http://drools.46999.n3.nabble.com/use-of-enum-with-in-on-LHS-tp3997081p3997238.html
Sent from the Drools:
I did some search here and found using jbpm-bpmn2 dependency will get rid
of the following error.
dependency
groupIdorg.jbpm/groupId
artifactIdjbpm-bpmn2/artifactId
version5.3.0.CR1/version
/dependency
Is this the correct soluation? If there is such
Another potentiel trick :
In State enum, add a method to build a State list from a list of string
enum State {
...
static ListState buildList(String listAsStr) {
// well, don't need to detail that ...
// ... but think to keep a cache somewhere to avoid unecessary
Hi there,
Please assist.
I have added2 package to my change-set.xml, they are resources
uk.co.example.mapping.policy.pkg and uk.co.example.policy.validation.pkg,
the rules in uk.co.example.mapping.policy.pkg infer facts required by
uk.co.example.policy.validation.pkg.
When all the rules are
Well, I've reinstalled JbossAS 7.1, Guvnor 5.4 and Designer 2.2 again..
This time I've deployed guvnor using drools-guvnor.war instead of
guvnor.war and it seems to be working properly.
Is this true, that I must use drools-guvnor.war? or it was just a
coincidence ?
regards,
Cristiano
On
Hi,
I'm using Designer 2.2 with Guvnor 3.4 in a Jboss AS 7.1.
I could connect to this service repository url:
http://people.redhat.com/kverlaen/repository in the Designer editor.
I've selected the Twitter service but I got this error:
19:58:58,896 ERROR
Hi !
I imported chapter 6 source code(Jboss Drools Business rules) in Eclipse as
a Maven projectI am getting JAR errorsI am using 5.4
versionPlease help me to put right JARS...please refer to the screen
shots...
thanks !!! http://drools.46999.n3.nabble.com/file/n3998504/12.png
--
52 matches
Mail list logo