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.
14 years, 8 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
14 years, 8 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.
14 years, 8 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.
14 years, 8 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.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
14 years, 8 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
14 years, 8 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
14 years, 8 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
14 years, 8 months
evaluation of null not consistent
by LJ in NJ
Hi;
I am trying to debug a situation in which a rule fires when it should not.
The rule is:
rule "DTR2_AOU_Mapping"
when
when
instance_0_Contact : Contact($var_0_guid : guid != null )
instance_1_Track : Track($var_1_aou : aouAsFloat != null &&
$var_3_platform_ptr : platform != null )
eval($var_3_platform_ptr.getGuid() == $var_0_guid )
then
:
:
The problem is the 2nd condition and the criteria "$var_1_aou : aouAsFloat
!= null ". When fired we get a Null Ptr Exception. When I examened the log
file in the Audit view, I see that the rule has fired even tho it clearly
states that $var_1_aou = null:
<org.drools.audit.event.ActivationLogEvent>
<type>4</type>
<activationId>DTR2_AOU_Mapping [3, 1]</activationId>
<rule>DTR2_AOU_Mapping</rule>
<declarations>
$var_3_platform_ptr=com.callc.das.kb.ASW.Contact@5b21ae2(3);
instance_1_Track=com.callc.das.kb.ASW.Track@1e071f47(3);
instance_0_Contact=com.callc.das.kb.ASW.Contact@5b21ae2(1);
$var_1_aou=null;
$var_0_guid=2139982358(1)
</declarations>
</org.drools.audit.event.ActivationLogEvent>
What makes matters worse is that the EXACT SAME RULE when running in a
different application will behave as expected. What I mean by this is that
we have embedded the Drools rule engine in two different Java applications,
both of which set-up and use the rule engine with the exact same constructs
and sequence of commands (e.g., use of a StatefulKnowledgeSession). I then
inserted the same information into both. One runs fine but the other
generates the log file shown above and throws :
org.drools.runtime.rule.ConsequenceException: java.lang.NullPointerException
at
org.drools.runtime.rule.impl.DefaultConsequenceExceptionHandler.handleException(DefaultConsequenceExceptionHandler.java:23)
at
org.drools.common.DefaultAgenda.fireActivation(DefaultAgenda.java:943)
at
org.drools.common.DefaultAgenda.fireNextItem(DefaultAgenda.java:885)
at
org.drools.common.DefaultAgenda.fireAllRules(DefaultAgenda.java:1086)
:
:
Any suggestions regarding what is going on here would be most appreciated as
I am 100% stumped by this.
Thanks
Larry
--
View this message in context: http://n3.nabble.com/evaluation-of-null-not-consistent-tp724910p724910.html
Sent from the Drools - User mailing list archive at Nabble.com.
14 years, 8 months