Workflow Validation
by Vahl, Thomas E
Hello,
I'm a new Drools user (5.0.1), and have several times gotten NPE's due
to a syntax error in a Split constraint. Example, using "=" instead of
"==" in the condition. Is there an external validator for the xml that
would catch this type of thing before runtime?
Thanks,
Thomas Vahl
E-mail: thomas.e.vahl(a)baml.com
----------------------------------------------------------------------
This message w/attachments (message) is intended solely for the use of the intended recipient(s) and may contain information that is privileged, confidential or proprietary. If you are not an intended recipient, please notify the sender, and then please delete and destroy all copies and attachments, and be advised that any review or dissemination of, or the taking of any action in reliance on, the information contained in or attached to this message is prohibited.
Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Sender. Subject to applicable law, Sender may intercept, monitor, review and retain e-communications (EC) traveling through its networks/systems and may produce any such EC to regulators, law enforcement, in litigation and as required by law.
The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or free of errors or viruses.
References to "Sender" are references to any subsidiary of Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this EC may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link:
http://www.bankofamerica.com/emaildisclaimer. By messaging with Sender you consent to the foregoing.
14 years, 9 months
Drools Fusion into Drools Flow
by Thorsten
Hello out there,
have someone of you tried to combine Drools Fusion into Flow in order to
control the different steps of the propagating event stream. I know that
I can define some ruleflow groups (and the corresponding rules) and
order them visually but I am not sure if one group has to be finished
first before the next ruleflow sets in. The other problem is the
insertion of the data. Is there a way to let the data “flow” into and
thru my process?
In my last experiment I created some data manually using a action-node
but when I tried to insert them into a WorkingMemoryEntry point I
received a “funny” mismatch error:
>> >>Type mismatch: cannot convert from WorkingMemoryEntryPoint to
WorkingMemoryEntryPoint<<
I am using Drools 5.1. M2, with Eclipse (20100218-1602)
Thanks and kind regards
Thorsten
14 years, 9 months
error importing .brl files
by Fnu Mahalakshmi
Hi guys,
Thanks for the help on Alerts.
I have trouble importing .brl files from my drools-guvnor editor.
When I import it I get the following error I get the error that the file cant be opened.
When I create it separately in my eclipse I do not get the drop down to choose from my facts. It shows empty drop down.
I imported the jar files to the classpath of my project - added the classes to the same directory - created a .package file where I added all the import statements.
But still not working. Any Idea what is the problem????
Thank you
M
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 9 months
Drools Rule Engine - Tiered Rates
by ramram
Hi All,
I have the following question regarding Drools. The possibility to
implement tiered rates and that is I have the following example.
If the total units sold is between 0 - 1000 item a revenue return is 10%
while if the total units sold is between 1001- 2000 items the return is 20%.
I want to use 1 dynamic rule to implement the above example rather than
having 2 static rules defined? is this possible through drools?
Regards
Ram
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Rule-Engine-Ti...
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 9 months
alerts in drools
by Fnu Mahalakshmi
Hi,
Is there anyway I can create "alerts" in drools??
If there is any documentation for it could someone point me towards it??
Thank you
-m
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 9 months
Regarding a fact model
by shekharputtur puttur
Hi ALL,
I have created a dynamic fact model in guvnor for creating rules.I want to
use the same fact model in my java application too.
How do i create a jar for the created model in guvnor and download the same?
Another way is to create a fact model in java(eclipse editor), and we can
upload the same for writing rules.
But for my application , i need to use the first approach.
i use guvnor 5.1.0M1.
Could you please tell me solution to do this?
Thanks & Regards
Shekhar
14 years, 9 months
data manipulation
by Betto Bardi
Hi all,
We recently implemented Drools in a mortgage application process. The primary task of the business rule engine was to determine the fraud risk of an application. The application is delivered in XML format. We noticed that we were implementing a lot of data manipulation actions in the drl file itself. For example, the calculation of total income by calculating the sum of a number of elements or calculating the distance between two geo-locations based on zip codes. The actual evaluation rules acted on this 'derived' information.
When looking back the drl file contained a lot of code and looked pretty complicated compared to the actual evaluation rules. My question is, what is your opinion on data manipulation or transformation within the drl file? If the drl file is not the best place for this, what would you suggest for data manipulation?
Thanks,
Betto
14 years, 9 months
error getting values from working memory
by Fnu Mahalakshmi
Hi,
I am facing problem in getting modified data from my working memory to my output file.
I have added all my data to an ArrayList. Sent it to my Rules - modified the input.
Now I want it to display the data contained in the objects of my list.
Unable to do that as I can only map it to ArrayList<Object>
So I am not able to call the particular functions for displaying particular data.
I tried adding my data to a HashMap<Object,String> but then data does not get loaded in the working memory.
Please help!!!
Thank you
M
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 9 months
Multiple Files Problem
by Fnu Mahalakshmi
Hi,
I need to load data contained in many Lists as my input.
In what way is it possible for me to load multiple lists in drools?
I am doing this currently:
public void runStatelessRules(String[] rulesFiles,String dslFileName,Collection<Object>al,
String ruleFlowFileName) throws Exception {
RuleBase ruleBase = loadRules(rulesFiles);
StatelessSession workingMemory = ruleBase.newStatelessSession();
workingMemory.execute(al);
}
Collection<Object>al is my input. In this I have dumped data from multiple arrayLists.
All rules get processed accurately.
But creates a mess when I need to write to my output file.
Is it in some way possible for me to give separate lists to load to my working memory???
Please help. Thanks in advance.
-M
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 9 months
Re: [rules-users] Multiple Object Referencing error
by Fnu Mahalakshmi
Hi guys,
Thanks a lot for looking into it. I just solved it. There were multiple objects getting created of the same type due to which rules was not getting fired. The error shown was very misleading :(
Thanks again
M
-----Original Message-----
From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of rules-users-request(a)lists.jboss.org
Sent: Tuesday, June 08, 2010 11:37 AM
To: rules-users(a)lists.jboss.org
Subject: rules-users Digest, Vol 43, Issue 43
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Re: Multiple Object referencing error (Fnu Mahalakshmi)
2. Re: Multiple Object referencing error (Swindells, Thomas)
3. smooks query (Fnu Mahalakshmi)
4. Re: Drools 5.1.0.M2 - BPMN2 process issue - Eclipse plugin.
-- The method getTextContent() is undefined for the type Node
(Vijay K Pandey)
----------------------------------------------------------------------
Message: 1
Date: Tue, 8 Jun 2010 10:13:15 -0400
From: Fnu Mahalakshmi <FMahalakshmi(a)nyx.com>
Subject: Re: [rules-users] Multiple Object referencing error
To: "'rules-users(a)lists.jboss.org'" <rules-users(a)lists.jboss.org>
Message-ID:
<994758E35590274E955FA75763C5AA5002D01087(a)MTEXMBXP01.ad.NYX.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
Sorry about not posting the code. My mistake.
Classes :
public class Room {
private String name
private int number;
// getter and setter methods here
}
public classs Sprinkler {
private Room room;
private boolean on;
// getter and setter methods here
}
public class Fire {
private Room room;
// getter and setter methods here
}
I load 2 input files: 1. with data of fire and Room { f1, r1;f2, r2}
2. with data of sprinkler and Room {"n/a",r1,"n/a",r3}
I am writing rule " if fire exists in room start sprinkler" { so if f1 and r1 in this case: I should get s1, r1 } But since no sprinkler in r2 , That data should not get outputted.
I want my ouput file to look like:
Name Number
Xyz 1
# xyz is my room name and 1 is the room number : r1(xyz,1) . But I am unable to delete entries.Is there anyway I can do it?
#only this should appears as the other room does not have a sprinkler.
when
Fire($room : room)
$sprinkler : Sprinkler( room == $room, modified == false )
Then
$sprinkler.setmodified(true);
modify( $sprinkler ) { setSprinkle( "s1" ) };
end
Error:
I am getting the error at a place where I am trying to write back from my working memory to my output file.
It is happening because the second rule to turn on the sprinkler does not work and as a result a null value is getting stored.
Is it possible that there can exists 2 different Room() objects with the same room.name ??
Because the room objects are getting stored from different files to the working memory ??
Do you think it better to store room objects in a separate list??
I store all information into a list and load that into the memory.
Am I going wrong here?
Please help.
Thank you.
-M
Please consider the environment before printing this email.
Visit our website at http://www.nyse.com
****************************************************
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
------------------------------
Message: 2
Date: Tue, 8 Jun 2010 15:20:54 +0100
From: "Swindells, Thomas" <TSwindells(a)nds.com>
Subject: Re: [rules-users] Multiple Object referencing error
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID:
<DAC86F5F3B84F14088F0DB16092558CA07E8F9EC5D(a)UKMA1.UK.NDS.COM>
Content-Type: text/plain; charset="us-ascii"
You've still missed out the file which actually contains the main method which is where the exception is being thrown from...
> -----Original Message-----
> From: rules-users-bounces(a)lists.jboss.org [mailto:rules-users-
> bounces(a)lists.jboss.org] On Behalf Of Fnu Mahalakshmi
> Sent: 08 June 2010 15:13
> To: 'rules-users(a)lists.jboss.org'
> Subject: Re: [rules-users] Multiple Object referencing error
>
> Hi,
> Sorry about not posting the code. My mistake.
>
> Classes :
>
> public class Room {
> private String name
> private int number;
> // getter and setter methods here
> }
> public classs Sprinkler {
> private Room room;
> private boolean on;
> // getter and setter methods here
> }
> public class Fire {
> private Room room;
> // getter and setter methods here
> }
>
>
> I load 2 input files: 1. with data of fire and Room { f1, r1;f2, r2}
>
> 2. with data of sprinkler and Room {"n/a",r1,"n/a",r3}
>
>
>
> I am writing rule " if fire exists in room start sprinkler" { so if f1 and r1
> in this case: I should get s1, r1 } But since no sprinkler in r2 , That data
> should not get outputted.
> I want my ouput file to look like:
> Name Number
> Xyz 1
>
> # xyz is my room name and 1 is the room number : r1(xyz,1) . But I am unable
> to delete entries.Is there anyway I can do it?
>
> #only this should appears as the other room does not have a sprinkler.
>
> when
>
> Fire($room : room)
>
> $sprinkler : Sprinkler( room == $room, modified == false )
>
> Then
>
> $sprinkler.setmodified(true);
>
> modify( $sprinkler ) { setSprinkle( "s1" ) };
>
> end
>
>
> Error:
> I am getting the error at a place where I am trying to write back from my
> working memory to my output file.
> It is happening because the second rule to turn on the sprinkler does not work
> and as a result a null value is getting stored.
> Is it possible that there can exists 2 different Room() objects with the same
> room.name ??
> Because the room objects are getting stored from different files to the
> working memory ??
> Do you think it better to store room objects in a separate list??
> I store all information into a list and load that into the memory.
> Am I going wrong here?
>
> Please help.
>
> Thank you.
> -M
> Please consider the environment before printing this email.
>
> Visit our website at http://www.nyse.com
>
> ****************************************************
>
> Note: The information contained in this message and any attachment to it is
> privileged, confidential and protected from disclosure. If the reader of this
> message is not the intended recipient, or an employee or agent responsible for
> delivering this message to the intended recipient, you are hereby notified
> that any dissemination, distribution or copying of this communication is
> strictly prohibited. If you have received this communication in error, please
> notify the sender immediately by replying to the message, and please delete it
> from your system. Thank you. NYSE Euronext.
>
>
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
**************************************************************************************
This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster(a)nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary.
NDS Limited. Registered Office: One London Road, Staines, Middlesex, TW18 4EX, United Kingdom. A company registered in England and Wales. Registered no. 3080780. VAT no. GB 603 8808 40-00
**************************************************************************************
------------------------------
Message: 3
Date: Tue, 8 Jun 2010 11:30:17 -0400
From: Fnu Mahalakshmi <FMahalakshmi(a)nyx.com>
Subject: [rules-users] smooks query
To: "'rules-users(a)lists.jboss.org'" <rules-users(a)lists.jboss.org>
Message-ID:
<994758E35590274E955FA75763C5AA5002D01088(a)MTEXMBXP01.ad.NYX.com>
Content-Type: text/plain; charset="us-ascii"
Hi,
Can anyone point me towards a good documentation as to how smooks works with drools?
How does smooks transform non-XML(java) data?? I could not understand this part???
Thank you in advance,
M
</pre>
<P><hr size=1></P>
<P><STRONG><font color=green>Please consider the environment before printing this email.</font></STRONG></P>
<P><STRONG>Visit our website at <a href="http://www.nyse.com">http://www.nyse.com</a> <br>
*****************************************************************************
<br>
Note: The information contained in this message and any attachment to it is privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by replying to the message, and please delete it from your system. Thank you. NYSE Euronext.
</STRONG></P><pre>
14 years, 9 months