Identify Rule on Attributes
by Nikhil_dev
Hi All,
i have set of Rules that is complied and stored in the memory.
Now can any one tell me, is it possible to identify which Rule to execute
out of those set of complied rules using the attributes that i have.
I would like to know is there any method available in drools to solve the
issue since rules once executed they are always available.
-----
Regards,
:working:Nikhil
--
View this message in context: http://www.nabble.com/Identify-Rule-on-Attributes-tp22471473p22471473.html
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
Drools Boot Camp possibly in San Francisco for June
by Mark Proctor
As I'm going to be at JavaOne <http://java.sun.com/javaone/> we are
thinking about combing this years boot camp at the same time, if we can
get budget approval. We don't yet have a hotel booked or meeting room
available, so if you can recommend a cheap but good hotel with
conference facilities for approx 15-20 people, or better still can
donate meeting room facilities then please let me know.
Thanks
Mark
15 years, 8 months
AssertBehaviour.IDENTITY on Drools5.0
by Shigeaki Wakizaka
Hi.
I'm just wondering how I can change an assertBehaviour with Drools5.0.
Documentation is the same as 4.0 as follows:
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setAssertBehaviour( AssertBehaviour.IDENTITY );
conf.setRemoveIdentities( true );
RuleBase ruleBase = RuleBaseFactory.newRuleBase( conf );
I may be missing something.
Please tell me how, thanks.
waki
15 years, 8 months
Drools 4.0.7 Or 5.0.X ?
by surya_n2007
Hi All,
We want to implement drools as our rule engine , planning to use drools
4.0.7 since i am thinking drools 5.0 has bugs and fixes is going on .
Our application has huge volume of facts performance is main
criteria,planning to use RuleFlow and it is standalone application not using
BRMS this is one reason to select 4.0.7 . Our project is going into
production after 1 year so please let me know is it good idea to implement
4.0.7 or 5.0.X ?
Thanks & Regards
Surya.
--
View this message in context: http://www.nabble.com/Drools-4.0.7-Or-5.0.X---tp22476826p22476826.html
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
Problem add DSL,add more than one file to Ruleagent
by surya_n2007
Hi ,
I am having problem to add DSL to rule agent . How to add DSL , I can add
dsl using PackageBuilder.addPackageFromDrl("x.drl","y.dsl") cant take this
approach since,
we are using standalone application not using BRMS want to update new rules
so i am using RuleAgent and passing properties.
But unable to add Dsl to the ruleagent and another problem unable to add
more than one drl files.
Please provide some example else some ideas are helpful.
Code :
Properties dynamicRueProperties = new Properties();
dynamicRueProperties.setProperty("name", "SampleRuleAgent");
dynamicRueProperties.setProperty("dir",
"C:/Project/Workspace/DroolsTest/rules");
dynamicRueProperties.setProperty("file",
C:/Project/Workspace/DroolsTest/rules/file.drl");
dynamicRueProperties.setProperty("localCacheDir",
"C:/Project/Workspace/DroolsTest/dump");
dynamicRueProperties.setProperty("poll", "30");
dynamicRueProperties.setProperty("newInstance", "false");
RuleBase ruleBase = null;
RuleAgent ruleAgent = null;
ruleAgent = RuleAgent.newRuleAgent(ruleProperties);
Thanks & Regards
Surya.
--
View this message in context: http://www.nabble.com/Problem-add-DSL%2Cadd-more-than-one-file-to-Ruleage...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
RuleAgent question
by J Michael Dean
Two questions. I am interested in using RuleAgent but with the file
or dir property rather than the URL. However, it is not clear to me
where the directories or files must actually be located. If I use
dir=/
then the DirectoryScanner is invoked and claims to have found some
number of files, but I have no idea WHERE it is scanning. If I add
anything like dir=/foo then I get an invalid directory exception.
If I try file=/foo.pkg then I get exception that this is invalid file.
Question 1 - is there an example somewhere that can help me understand
where I am going off the track? I am working Eclipse environment.
Question 2 - if using the BRMS and URL, can there be a backup dir,
file, or cache option that is in the classpath rather than a specific
directory? I would like to distribute an Eclipse application that has
a rule package deployed, but that overrides this with the URL if
available.
Thanks.
- Mike
15 years, 8 months
Problem in defining DSL in Guvnor (and some possible bugs?)
by psentosa
Hi all,
I'd like to define some DSL sentences using Guvnor. Then using the
DSL-Editor from eclipse, I create the following mappings (for consequence):
1.
[CONSEQUENCE]Following "{time}" regulation "{regname}" is violated=String
day = "{time}"; String regulation = "{regname}"; ViolatedRegulation vr = new
ViolatedRegulation(emp, regulation, act, day);
violatedRegulationObject.add(vr);
Now..the problem I had:
If I try to crete rule using guided editor, in consequence, the created
string based on the input contains many white spaces
then
String day = " DAY "; String regulation = " day.max.working1 ";
if I use DSL business editor, the generated source code is ok.
2.
Actually the CONSEQUENCE part generated by eclipse DSL editor is not exactly
what I pasted above; Instead it was CONSEQUENCE[] (the square brackte was
empty and "CONSEQUENCE" is outside the bracket. But when I edited this using
text editor, and open the .dsl file using the DSL editor again, it shows
nothing, although the sentences still can be shown using text editor.
3. I had problem finding my DSL sentences (by pressing Ctrl+space) using
both guided editor and DSL editor in Guvnor at the beginning, because i had
the prefix condition/consequence/when/then all in small letters (sometimes
they are shown but sometimes not). As soon as I wrote them in capital, I can
find them without problem. Is the capital letter really a requirement?
Many thanks in advance for hints
Regards
--
View this message in context: http://www.nabble.com/Problem-in-defining-DSL-in-Guvnor-%28and-some-possi...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months
Ruleflow nog showing
by Femke De Backere
Hi!
As I was creating a new ruleflow, to fit as a subprocess in another
ruleflow, I encountered the following problem: My ruleflow is build,
and I checked the correctness with the "Check the ruleflow model"
button. When I close Eclipse and reopen my project again, my whole
ruleflow (except for the start node) is gone, the xml behind the .rf
still exists, but the view is gone. Has anyone any clue what happened?
Thx,
Femke
15 years, 8 months
FW: [rules-users] FW: When is 5.0 GA?
by Umesh Wankhede
Sorry about this mail, please ignore it. Actually this was composed
couple of days back and it got stuck in my Outbox and got sent now.
Umesh
From: rules-users-bounces(a)lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Mauricio
Salatino
Sent: Wednesday, March 11, 2009 6:21 PM
To: Rules Users List
Subject: Re: [rules-users] FW: When is 5.0 GA?
Yes, I think...
It's strange that you don't recieve the Mark mail about that..
On Wed, Mar 11, 2009 at 9:46 AM, Ingomar Otter <iotter(a)mac.com> wrote:
>If you are not the intended recipient, you have received this
transmission in error and you are hereby advised that any
>review, disclosure, copying, distribution, or use of this transmission,
or any of the information included therein,
> is unauthorized and strictly prohibited.
Maybe off-topic but I am wondering: Am I the intended reciepient? ;-)
--I
Am 11.03.2009 um 13:39 schrieb Umesh Wankhede:
From: Umesh Wankhede [mailto:umesh.wankhede@arisglobal.co.in]
Sent: Tuesday, March 10, 2009 5:35 PM
To: 'rules-users(a)lists.jboss.org'
Subject: When is 5.0 GA?
Hi
When is the plan for GA of Drools 5.0?
Umesh
Legal Notice: This transmission, including any attachments, is
confidential, proprietary, and may be privileged. It is intended solely
for
the intended recipient. If you are not the intended recipient, you have
received this transmission in error and you are hereby advised that any
review, disclosure, copying, distribution, or use of this transmission,
or any of the information included therein, is unauthorized and strictly
prohibited. If you have received this transmission in error, please
immediately notify the sender by reply and permanently delete all copies
of
this transmission and its attachments
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
--
- Salatino Mauricio -
15 years, 8 months
Creating fact instance programatically
by nestabur
Hi all,
I'm trying to create a fact programatically like this:
FactType myfact =package.getFactType(factTypeName);
Object myPojo = myfact.newInstance();
An error occurs when calling the method getFactType, here my stackTrace:
36267-1236185246849-0:0:1:1 Exception while processing message:
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1938)
at java.lang.String.substring(String.java:1905)
at org.drools.rule.Package.getFactType(Package.java:552)
My drools version is 5.0.0.M5
Any suggestion?
--
View this message in context: http://www.nabble.com/Creating-fact-instance-programatically-tp22334399p2...
Sent from the drools - user mailing list archive at Nabble.com.
15 years, 8 months