If I am looking at the checkin from drools-wb
dacd7fb8: BZ1047761 - No way to rename a guided rule using the UI
How do I find the description of the defect in the JIRA database?
I did a search on the JIRA page
The renamed rule or the copy has the original rule name in the source - which
you can't change.
Is there a fix for this already in git hub?
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-Duplicate-rule-error-when-I-rename-or-copy-a-guided-rule-tp4029910.html
Sent
I have a class xyz that accesses a DB to populate the dropdown:
'mybean.q1' : (new QueryThins()).getList(FOO, BAR)
This works, except that when the backing store changes, the dropdown don't
update even if you leave and re-enter the editor. I have a workaround
below.
I there a fix for this on
I've have been unable to figure out how to get drools to rescan and then use
the updated rules in a new session. I currently have to restart jboss to
pick up the changes. The scanning seems to happen, but I don't see the
changes that should be included.
I have looked at lots of example code on
Could you please give me an example of the ranges?
I tried the following based on a couple google searches, but they result in
NullPointerExceptions.
releaseId = kieServices.newReleaseId(com.xyz.policy,
cep,
[1.0,);
releaseId =
Ok, so I am doing the following.
In my init, i create a container and a scanner
kieContainer = kieServices.newKieContainer(releaseId);
kieScanner = kieServices.newKieScanner(kieContainer);
Then later ,when my timer fires, call the scanner - which I know has
I don't know what is different today, but LATEST is working. I think I had
too many changes going on at once, back to a good state.
(FYI, We've been cherry picking fixes from the master branch)
So, I'm getting close.
Now, I even see the message
The following artifacts have been updated: {..blah
Is there a callback or something from the scanner that I can register for
that will let me know that there are deltas and I should create a new
session?
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028835.html
I am doing the following, but no rules ever fire. I suspect the maven repo
location is not right -and that no rules are getting loaded - how do I set
it?
I am using /root/.m2/repository
It would be the programmatic equivalent of
-Dorg.guvnor.m2repo.dir=/root/.m2/repository
Also, how do you
I just tried both, neither worked.
Do you know how I can check where it thinks the repo is?
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-How-to-set-Maven-repo-used-by-KieScanner-tp4028804p4028808.html
Sent from the Drools: User forum mailing list archive at
Nope.
Is there any other implementation of KieScanner than InternalKieScanner?
KieRepositoryImpl returns the internal scanner, but returns a dummy if there
is not one in there, but I can't find who adds it and where it sets the
location it is going to scan.
--
View this message in context:
actually, if I use the version number I do see the following (missed it last
time I looked), but no rules fire.
16:04:08,127 INFO [org.drools.compiler.kie.builder.impl.KieRepositoryImpl]
(http-/10.1.1.161:8443-2) KieModule was added:MemoryKieModule[
ReleaseId=com.xxx.policy:cep:1.0]
We had been
Ok, this should make it happen
1) Add new Guided Rule
2) Tick Use DSL
3) Click OK
4) Add a DSL sentence
5) Validated rule - OK
6) Viewed Source - OK
7) Saved - OK
8) Re-opened - OK
*9) Add a raw DRL to the then clause
10) Save and publish. You should see error in server.log*
restarting jboss
We ended up doing something based on this post
http://drools.46999.n3.nabble.com/setting-the-expires-in-java-td4025574.html
http://drools.46999.n3.nabble.com/setting-the-expires-in-java-td4025574.html
--
View this message in context:
I have an enum along the lines of
Bean.x : (new com.xyz.MyClass()).getNames()
Which works fine and getNames() is called when JBoss first starts up and the
first time that a rule using this enum is created.
But, getNames() is never called again. Either when a new rule is created or
if you do
BaseRule DRL is
package com.xyz.cep;
import com.xyz.model.Flow;
declare Flow
@role(event)
end
rule BaseRule
dialect java
when
then
end
-
Child.rdslr freshly created and empty other than selecting to extend from
BaseRule
1. |
Child is extending BaseRule, which imports and uses Flow.
So the extends is within the same package.
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506p4028575.html
Sent from the Drools: User forum mailing list
sorry, I just forgot to change package name in the one place for posting.
If you don't mind could you edit your reply and replace? Sorry - thanks!
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-EXTENDS-in-Guided-Rule-Editor-does-not-work-tp4028506p4028577.html
Any time I have tried to create a new RDSLR and select an [Extends] class I
get:
Unable to resolve parent rule, please check that both rules are in the
same package
The are both certainly in the same package.
I am trying to extend from a DRL, should that matter?
--
View this message in
I searched the forum and found some stuff from 2010 related to this - but no
final answer, but was wondering if this has been added to 6.0.1.F
I want to put
declare Foo
@role(event)
@expires( 5m )
end
into a Guided Rule - what is the proper way to do this?
--
View this message
I am trying to do the dependent enumerations as covered in 16.10.1. Advanced
enumeration concepts
I set this up just like the example, and have tried a number of things to
get it to work, but now luck.
This works fine:
'MyBean.listType' : ['List', 'Regex']
'MyBean.val' : ['a','b']
This
The following works like you would think:
[when]xxx {l:ENUM:MyBean.l} {x:ENUM:MyBean.x}
{y:ENUM:MyBean.y}=eval($sep.foo(any, any, {l}, {x}, {y}, , ))
Defect 1?
If you remove the spaces between the } {
[when]xxx
{l:ENUM:MyBean.l}{x:ENUM:MyBean.x}{y:ENUM:MyBean.y}=eval($sep.foo(any,
any, {l},
Let me add that I hope spaces should be allowed.
--
View this message in context:
http://drools.46999.n3.nabble.com/6-0-1-F-Defect-s-in-DSL-and-Enumerations-tp4028283p4028284.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
I know that you can have one dropdown control the contents of another
dropdown, but can a dropdown control the whether another dropdown or other
{} field is displayed at all?
ie. If you pick car, then the bed length dropdown would not be shown.
--
View this message in context:
I am not 100% clear on the relationship between these two.
I want to have an enumeration that is populated from a DB.
It makes sense to me that I have to put the jar with the DB access class in
the repository. I know that I have to also put it in the /lib dir, but I
don't understand the
I have a global class foo with method bar(int x, int y, string s);
I added it to a globals file as alias x.
In a then in an rdrl, I can select call a method on x, so I choose
bar. I get 3 text boxes
int[]
int[]
string[]
And I fill in
int[3
Yeah, I know the most of the time thing stinks.
I'm just not sure what to check next at this point.
Here's the history I have.
RDSLR worked initial on my machine and then stopped.
It worked on a clean install and then stopped.
Now I've tried 2 more clean installs and it has never worked.
I
I've been using kiewb for at least a month now and just yesterday the project
explorer disappeared.
Note that I have been using chrome the whole time and occasionally, I would
get a warning about gecko, but everything seemed to work.
I tried with firefox and the Project Explorer is still MIA.
I
Forgot to mention. I did reinstall kiewb and it was still missing. I have
not tried replacing jboss.
--
View this message in context:
http://drools.46999.n3.nabble.com/Project-Explorer-has-dissappeared-in-KIE-Workbench-tp4027767p4027932.html
Sent from the Drools: User forum mailing list
So here's what we end up doing.
Updated the camel route coming into switchyard to have a bean in the middle.
This bean is basically a pass-through, but it has a static instance of the
global class we need.
As the java object passes thought the bean, we assigned our global class
to it, and then we
Thanks!
--
View this message in context:
http://drools.46999.n3.nabble.com/Null-pointer-exception-when-using-global-in-rdrl-6-0-1-F-tp4027876p4027886.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing
Thanks for the reply!
When you say
Maven dependencies that are scope provided exhibit this behaviour. In
your case I would have to assume the missing classes would have normally
been provided by the (J2EE?) application server.
Yes, they are jboss.
What do I need to do to use them then? That I
Ok, so I really simplified this.
I got rid of all my other junk and wanted to see if a modern log4j would
load.
I put in log4j 1.2.16 (Now more snmp, etc.)
I still get the same error.
So I put the the reference to
jboss-jms-api_1.1_spec-1.0.1.Final.jar
which is both m2 and kie repos back in and
I should also point out that the missing class is in the local maven repo.
/opt/jboss-as-7.2.0.Final/bin/repositories/kie/org/jboss/spec/javax/jms/jboss-jms-api_1.1_spec/1.0.1.Final
(ROOT:1664 - 1.0.1.Final jar tf jboss-jms-api_1.1_spec-1.0.1.Final.jar |
grep MessageL
The only place I could find that class was
jboss-jms-api_1.1_spec-1.0.1.Final.jar .
You are saying there is another?
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027868.html
Sent from the
Thanks!
--
View this message in context:
http://drools.46999.n3.nabble.com/Can-t-get-snmp-log4j-to-work-with-6-0-1-F-KIE-WB-this-is-a-tough-one-tp4027860p4027873.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
I have a class that I declared final, has a private constructor, has only
static members and methods.
Some of its members are static instance of classes.
In KIE-WBI added a global of that type with name X
When I try to make a call on X.foo(), I get a null pointer exception. (note
that x.foo()
That being said, I figured I could grab the knowledge base that I defined in
KIE and work with its working memory.
Much googling, cannot figure out how to get my knowledge base (or package)
by name.
I must be missing something, seems like this should be straight forward.
--
View this message
Thanks for the reply.
I have read that section of the docs a multiple times.
Unfortunately, I do not have a handle to the ksession to call setGlobal on.
My knowledge session is created/owned by KIE-WB/Switchyard and we are
looking for an API so that I can get a handle to something on which I can
This is long, but please hang in there, this is driving me nuts.
Keep and eye out for the /javax/jms/JMSException/
Any idea, hints, or solutions would be greatly appreciated!
So I need to access to snmp4j-1.10.1.jar in kie-wb, but it doesn't have a
pom file, so I rebuilt it to have the one at
Must not be in 6.0.1.
I upgraded to 6.0.1
I even created a new repo
with the rule
7. | when
8. | Number( )
9. | then
10. | end
and get
[8] No mapping entries for expanding: insert( new Number() );
[8] Unable to expand:
BTW, it would be nice if some where on the GUI you could see what version you
were running.
--
View this message in context:
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027773.html
Sent from the Drools: User forum mailing list
Another data point.
I set this up on another machine and it works.
Something on my machine must be corrupted.
What would you recommend I delete? .niogit?
(My .war is already all new)
--
View this message in context:
more data points
with jboss not running:
I deleted .niogit.
I deleted all my .jar files from the kie and .m2 repos
I deleted and re-installed the kie-wb.jar
started jboss.
.niogit came back
started kiewb
Tried to add a rule to mortgage demo project
I still get the errors.
I'm not sure what
Does any of this matter - I don't remember if it was there before the problem
or not
17:13:17,704 WARN [org.jboss.as.server.deployment] (MSC service thread 1-8)
JBAS015960: Class Path entry xercesImpl.jar in
I am seeing this behavior with 6.0.0 Final.
I can't say that mine used to work with 5.x as I start with the 6.x series.
Was this fixed, is there a work-around, etc?
The get method is public.
-
1. | 'ListingGroupxxx.name' : ['a','b','c']
2. |
I submitted the JIRA.
I have googled around to figure this out, but I don't know maven.
I deleted the directories I didn't want from /repositories/kie and also
from .m2
But, every time I start JBoss, the .m2 ones come back and I get errors like
17:13:24,345 INFO [stdout]
Figured out.
This was because I had a project that had the jar I deleted as a dependency.
--
View this message in context:
http://drools.46999.n3.nabble.com/rules-users-Guvnor-enumerations-tp4023057p4027748.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
I've done a couple DSL/RDSLR rules in the past with success. Been trying to
create one today but get Unable to expand errors on validation on every
line, even with not substitutions.
What am i missing?
Here is a NON-DSL/RDRL file that works just fine.
5. | rule AAA
6. |
KIE WB 6.0.0 Final
--
View this message in context:
http://drools.46999.n3.nabble.com/DSL-Unable-to-Expand-Error-Even-things-that-shouldn-t-be-expanded-tp4027749p4027750.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
Drools 6.0.0
I have searched doc and google, but have not found what I am looking for -
if you have link that would be great too.
I am creating my first .dsl file and using them in a guided rule. I notice
that when you select this, the file extension is rdslr versus rdrl. Also,
you can access
It is in problem panel and will show up in a dropdown sub-window if you
validate.
--
View this message in context:
http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091p4027133.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
Before I go down the path of fleshing the rest of this out, I want to know if
this is the right approach.
I have a database with LOTS of data entries. I have a bean that provides
access to that data (ListAccess). It has a method iHaveOne that returns
true if the argument is contained in the
I am trying to create a enumeration that uses a class to populate it, per
*16.10. Data enumerations (drop down list configurations)*.
I have added the jar that contains my class to the drools repository and
added it as a dependency to the project.
When building a guided rule, that object can be
6.0.0 I guess I should have said drools workbench.
--
View this message in context:
http://drools.46999.n3.nabble.com/Need-Help-with-Enumerations-and-Classpath-tp4027091p4027094.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
GREAT! Thanks!
--
View this message in context:
http://drools.46999.n3.nabble.com/What-is-URL-for-Guvnor-REST-API-in-6-0-0-Final-tp4026926p4026944.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
___
rules-users mailing list
Unfortunately, can' upload that jar.
I tried making some other jars without POM and they worked.
I will try and get some more time this week to see if I can reproduce with
other jar.
--
View this message in context:
I've been trying URL's similar to
http://localhost:8080/guvnor-6.0.0.CR3/rest/packages
but can't find them.
--
View this message in context:
http://drools.46999.n3.nabble.com/What-is-URL-for-Guvnor-REST-API-in-6-0-0-Final-tp4026926.html
Sent from the Drools: User forum mailing list archive
Thanks guys!
Here's our use-case/flow.
Could you please share your recommendations on our application integration
with Guvnor 6.0.0
We have SwitchYard 1.1 applications that are using the kie method to
interact with a Drools backend. In this method you point what used to be a
5.5 CHANGE_SET
If you try to upload a JAR without a pom.xml, it requests GAV info and then
throws the exception included at the bottom of the list.
I'm thinking that at line 141 in FileServlet.java, gav is not null and
therefore fileData is not converted to a BufferedInputStream at line 146,
which cause line
60 matches
Mail list logo