[rules-users] looking for advice

2012-04-26 Thread Bobby Richards
I have not yet determined how I want to implement my problem and was hoping
to get some feedback.

I am using drools to migrate the logic from my automated currency trading
infrastructure.  Each currency pair, i.e. eurusd has around
200 attributes associated with it.

This includes range values (high, low, average) for multiple time periods,
volatility information, bid/ask updates etc.

Currently I have classes associated for each, so say for range:

class Range {
  double high;
  double low;
  double avg;
}

Range europe = new Range();  //european trading hours
Range us = new Range(); //us trading hours


Questions:
1.  I am wondering if I should not just create a map that lists every
attribute per pair as a key (eurusd:range:europe:high)?  So essentially
my drools session will have one fact, not counting the incoming quotes.  I
see on the list that this was a problem before the mvel updates but that
was a while ago.

2.  When an incoming quote might modify a value, what is the performance
difference between using a rule to change the value or making the changes
outside of the ksession and referencing the facthandler to modify?  Is one
method considered 'cleaner'?

Thanks,
Bobby
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] global identifier

2012-04-18 Thread Bobby Richards
Is there a way to create a 'global' that is completely specific to a drl
file rather than the working memory?  I only wish to use this in rhs
notification/persistence operations, ie passing a user's unique id to a db
or sms operation.

I know this does not work but perhaps it will help to better illustrate my
question:

global int user_id = 123;

...
 then
   notification.sendSMS(user_id);
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] drools + AWS

2011-11-14 Thread Bobby Richards
anyone running a drools app or more specifically guvnor on amazon's web
service?
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] rule limit

2011-10-04 Thread Bobby Richards
Is it possible to limit the number of rules in a drl file?

Thanks,
Bobby
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


[rules-users] pipeline API

2011-10-03 Thread Bobby Richards
looking for any documentation regarding the pipeline api.  Trying to get an
amqp queue set as an entry point

Thanks
Bobby
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users