Best practise, configuration in DB or in a BRMS
by thornpw
Hello,
I have a lot of processes that uses DB Tables for mapping purposes. For
exmplae in a table is sotred, that users of a special location put in a
spezified OU in the directory. This works fine, Such a table could be editet
with SQL Statements, I don't have to deploy something etc.
But I think, that it should be the better solution to have this in drools,
because I get a user interface in the guvnor for free and I could use ACL to
define which Business User could change which kind of mappings, while I have
to code this stuff in a SQL Solution.
I tried out to do such mappings in the Guvnor and it worked fine, but I
deploy such a mapping is much more compley to the Business User then
changing some SQL (would be done by admins). Do I miss something? Is there a
way to let Business people change Decision Tables on the fly and nothing has
to be deployed?
thanks for your help
--
View this message in context: http://drools.46999.n3.nabble.com/Best-practise-configuration-in-DB-or-in...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Guvnor another few questions...
by Justin Case
Hi all,
I played a bit with 5.2.0.Final and I have a couple of more questions, I don't
know whether I misread the documentation or I just expect too much...
1. Can I use functions in a web decision table columns? Because if yes, I just
can't figure out how... Either way would be good, calling a function defined in
Guvnor or calling a static function of some model class (like
ModelClass.getMyParameter(...) ). Anything which would result to an eval()
block... or should I use a "formula" caclulation type then enter in each cell
the same eval(function()) call? Even so, I still need a rule like:
rule"mine"
when
eval($var.myFunction($date.lastTime))...
2. I see discussions about translations of Guvnor GUI, and I see them mentioning
a certain Constants.properties file. I can't see that file anywhere in my
installation, nor any other language translation for that matter although French
and Spanish were mentioned. Is there by chance a German translation around, and
even if no, how can one generate and use one?
3. I have the feeling that uploading a new version of the POJO model jar updates
the existing classes only. That is, if I remove a class from the Java model and
upload it again, then package validation will fail because it doesn't find the
old class (even when NOT used by any rule or anything I know of). Wasn't there
somewhere a Guvnor dialog where one could remove POJO model classes by hand one
by one? I kind of remember such a class list...
4. And is it really that way that uploading a new POJO model requires an
application restart to actually use it?
5. If I upload something from Eclipse it lands under "Other assets,
documentation" even if they are Java classes which I hoped would land under
Model... is there anything I can do about that? A Java POJO model once uploaded
is just a jar blob afterwards, not usable from Eclipse anymore...
6. The declarative model defined in Guvnor is not much usable in Eclipse either,
comes as an unrecognized text file. I didn't try to edit it in Eclipse, the lack
of integration in the application classes would bring nothing. Could the
declarative model mapped somehow to some Java classes (or generate classes out
of it)?
7. Clicking a Guvnor repository business rule file in Eclipse throws a WebDav
error "not found", both for brl and gdsl files. Could it have to do with the
fact that the package doesn't validate at the moment?
8. Clicking in Eclipse in the Guvnor perspective a freshly created rule flow
(nothing uploaded yet) throws an exception as well...
9. If I have a model class with a field called aThing, it will have an accessor
called getAThing(). Guvnor after POJO import will keep both capitals - thus in
the field selection dropdowns I will have the field AThing... should this be my
only problem.
Thank you for any answers,
JC
13 years, 4 months
Problem with salience
by jmolly
Hello.
I'm facing some problems in drools with salience. (maybe I don't understand
how it works)
We have a rule that check if an import has been satisfied by the client. But
we have a lot of pay methods so, when the import has been satisfied, we have
to stop all the payment devices. If a payment device is in use, we can't
stop it, so we send stop commands until device can stop.
The problem is that if a device is making a pay process, and consumes an
event, that event is never fired.
Maybe I can explain better with code:
rule "Pay device stop"
Salience 10
Try to stop the device and sends an OPERATION_IN event if can't stop
(because there is a ticket inside)
Machine rule
rule "Operation in received witch devices not stopped"
salience 10
Sent stop events to all devices
Machine rule
rule "Operation in received with devices stopped"
salience 10
All ok. Finish operation
rule "Ticket data read"
salience 1000
updates the debt for the user and sends an OPERATION_IN
The pay hardware, when is reading a ticket, sent a TICKET_DATA_READ
this rule has salience 100 and should be fired inmediatly but Drools is
entering all time in a bucle from Operation in received and Pay stop device.
Can someone give a clue about what are we doing wrong?
Sorry for the english. I can post the original code if needed.
Thanks in advance
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-with-salience-tp3148382p3148382...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
How to periodically iterate over all facts in a stream
by isakdim
My initial attempt is for the application to periodically set focus to the
"SomeAgendaGroup" and then wait for rule(s) to call
GlobalServiceProvider.someService. On the first agenda activation, the rule
iterates through all events. On the following agenda activations, the rule
iterates only through the events that have been inserted since the last
activation.
rule "Iterate over all events in the SomeStream"
agenda-group "SomeAgendaGroup"
when
$someEvent : SomeEvent() from entry-point "SomeStream"
then
GlobalServiceProvider.someService($someEvent);
end
Is there a way to implement a rule so that it iterates through all events
each time its agenda-group is activated or a different way to implement this
task?
Thank You!
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-periodically-iterate-over-all-fa...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 4 months
Performance optimization guidelines for Drools
by Wishing Carebear
Hello,
I'm trying to run a ruleflow (sequence of only rules) using Statteful and
stateless session. Could you please point me to any performance optimization
guideliness.
Thanks
13 years, 4 months