split constraint same as LHS of rule
by Kathy Sward
We have recently started using flow along with rules. We noticed that for our split constraints, those constraints often matched the LHS of our rules. We took the approach of removing the constraint from the rule, under the premise that we would only need to have the constraint one place, and not duplicating the constraint would be helpful if we ever needed to change the constraint. We are using POJO for data, with a "decision" object holding the input data. The LHS of the rule now just looks to see that there is a decision object. This works just fine. My question is whether there is some reason why we ought to keep the constraint in both places--is there any known down side to having the constraint be just within flow?
-- Kathy
15 years, 9 months
ListDataType in Ruleflow file?
by David Cracauer
Greetings,
Is there anyway to define the value of a variable defined as a ListDataType
in a ruleflow file? I have a custom WorkItem that can be configured with a
list of possible values that will complete it, and I'd like to define it in
the ruleflow file. However, any time I define it with anything in the
<value></value> section, I get this error:
An error has occurred. See error log for more details.
: only whitespace content allowed before start tag and not a (position:
START_DOCUMENT seen a... @1:1)
Is it possible to define a list directly in the ruleflow file?
Thanks,
Dave
--
View this message in context: http://n3.nabble.com/ListDataType-in-Ruleflow-file-tp741319p741319.html
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Parameterize temporary restrictions in Drools Fussion
by Ana Villa
Mostrar forma romanizada
It is possible to parameterize the temporary restrictions fussion drools? For
example use expressions like "this after [*, $object.getTimer ()] $event"
In my sample project does not work ...
Thanks
15 years, 9 months
Drools Planner - Constraint Occurrences in working memory
by awuttke
Hello,
let's assume I have a planning problem and the planner cannot find an
optimal solution. The best score was found some iterations back and the
planner stops due to it's configuration (e.g.
<maximumUnimprovedStepCount>50</maximumUnimprovedStepCount>).
When calling getBestScore() I get the best score of all iterations. But how
can I retrieve the corresponding constraint occurrences that explain how
this score was calculated?
When retrieving the ConstraintOccurrence from the working memory using
localSearchSolverScope.getWorkingMemory() I can only find
ConstraintOccurrence objects that probably match to the last iteration
executed but not the ConstraintOccuerence objects matching the best score.
Does the planner keep these best score ConstraintOccurrence objects in a
different place? If yes, how can they be retrieved?
Thank you,
Andreas
--
View this message in context: http://n3.nabble.com/Drools-Planner-Constraint-Occurrences-in-working-mem...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Add some default status
by fmetral
Hi all,
I'd like to package a drools-guvnor war that contains some default status.
What I want is to create two status:
- draft which is already available in Guvnor by default
- Validated for rules that have been tested
But I don't want to create this status by hand with UI. I'd like to have it
by default in the war package so that when I copy my war on an other server,
I have this status (Validated).
Is it possible to do this?
How can I proceed?
Thanks in Advance
Florent
--
View this message in context: http://n3.nabble.com/Add-some-default-status-tp732084p732084.html
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 9 months
Problem in giving comments in Drools 5.0 Rule Template File
by Nikhil S. Kulkarni
Hi ,
I am facing a problem in giving comments in drools 5.0 Rules Template file. I have tried using regular java
Comments like // (Single line comments), /***/(Multiline comments),# .But it is giving exception.
So what format we can use for giving comments in .drt template file?
Please inform if you have any idea about this.
Thanks & Regards,
Nikhil S. Kulkarni
MASTEK LTD.
Mastek is in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCOMASTEK
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from desktop and server.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15 years, 9 months
rules on web application
by joseramon diaz
Hi all,
I *think* we should use a rules engine on our web application, as some
bussiness rules should be changed by user, and their context can be quite
reduced.
We have a web application, and rules would apply to some bussiness objects,
but my question is about hot to integrate the rules editor in our web
application.
One option I can imagine is to let him modify XML inside a textarea, but
it seems quite hard for him. Is there any web editor for rules that we can
integrate in our web application, as in eclipse?
Thanks
Jose Ramón
15 years, 9 months
[ANN]VTD-XML 2.8
by Jimmy Zhang
VTD-XML 2.8 has been released. Please visit https://sourceforge.net/projects/vtd-xml/files/ to download the latest version.
a.. Expansion of Core VTD-XML API
a.. VTDGen adds support for capturing white spaces
b.. VTDNav adds support for suport for getContentFragment(), recoverNode() and cloneNav()
c.. XMLModifier adds support for update and reparse feature
d.. AutoPilot adds support for retrieving all attributes
e.. BookMark is also enhanced.
b.. Expansion of Extended VTD-XML API
a.. Add content extraction ability to extended VTD-XML
b.. VTDNavHuge now can call getElementFragment() and getElementFragmentNs()
c.. VTDGenHuge adds support for capturing white spaces
c.. XPath
a.. Adds comment and processing instruction support for nodes, and performance enhancement
b.. Adds namespace axis support .
c.. Adds round-half-to-even()
d.. A number of bug fixes and code enhancement
15 years, 9 months
Extending the "validation of rules" functionality in Guvnor
by Premkumar Stephen
Hello everyone,
Currently, the validate functionality ensures that rules have proper
syntax.
it is possible to extend this functionality so that business use cases might
also be validated? Is there an API/examples to do that.
For eg, in our domain, an object X can be evaluated for 3 criteria ( a, b,
c )
However, we would need to prevent rules written which combine criteria b and
c
Rules can have the combinations ( a,b,c, ab, ac ). Combinations ( bc and abc
) should not be allowed.
Regards,
Prem
15 years, 9 months