mavn drools 5.1 plug-in
by Kumar, Ravendra
Hi all,
Could any of you please suggest best maven plug-in to build/compile .drl
files for drools 5?
Thanks
Ravendra
Please help Logica to respect the environment by not printing this email / Pour contribuer comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail / Bitte drucken Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu sch�tzen. / Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.
This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you.
15 years, 5 months
List of valid values
by Chris Selwyn
I am developing a set of rules around validating messages in a B2B
messaging environment and I would like to have my rules builders have
control of the valid set of values for a particular field preferably
without creating a new fact model.
Since I am working in a B2B messaging world, I can see how to define an
enumeration in an XSD and how to access those in the Guvnor to create a
dropdown menu.
I can also see how to define a set of enumeration values in the Guvnor
which uses a hardcoded set of values to define the legal values for
populating a dropdown menu.
I can even see how to have the dropdown menu populated from a Java
class. The class appears to have to be on the classpath of the
application... It is not good enough to make it be part of the jar that
contains the fact model. This means that the set of legal values is part
of the "technical" domain rather than the "business" domain. I guess I
can always have the class load the values from a database, properties
file or some such but that means a separate place to store the values.
However, I feel that I would like to have the set of valid values be
part of what is accessible and configurable through the Guvnor.
Is there somewhere I can store the set as an artefact in Guvnor and be
accessible at runtime for me to do the check with?
Or should I just code the values into a set in a function?
Chris Selwyn
15 years, 5 months
Drools API
by shyam_prakash
Hello,
I am looking for a way to expose the published rule sets programmatically
and I am trying to determine if there is a service API that can be used to
retrieve the list/or iterate through published packages.
Please let me know if there is any such API / Javadoc for the same.
Thanks,
Shyam
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-API-tp1724208p...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months
Can Guvnor's repository functionality be exposed as a web service? [was: Drools API]
by Wolfgang Laun
[I'm re-posting this as a new thread with an apt subject on behalf of Patricia]
This is the scenario that I am looking for:
I am using Drools Guvnor as the central rule repository. I also have
an external application, that has a custom rule editor in place, and
users can create rules. This custom rule editor will take care of
Conditional Elements and Consequence actions. I would like to be able
to save the rule back in Guvnor, as that is the rule repository.
In the docs, there says that Guvnor has 2 parts: front-end and
backend. The backend includes the repository access as well. My
question is if the Guvnor backend exposes the repository functionality
as web service, or if it can be easily exposed.
Thanks,
Patricia
15 years, 5 months
RuleAgent to KnowledgeAgent(org.drools.definition.rule.Rule to org.drools.rule.Rule)
by Kinjal Khandhar
Hi All,
I want to convert org.drools.definition.rule.Rule to
org.drools.rule.Rule,i.e i want to move RuleAgent to KnowledgeAgent.
I tried:
for( KnowledgePackage knowledgePackage:
session.getKnowledgeBase().getKnowledgePackages() )
{
for( Rule rule: knowledgePackage.getRules() )
{
org.drools.rule.Rule odrRule = (org.drools.rule.Rule)rule;
}
}
I get ClassCastException.Can anyone provide me with the solution/workaround.
Thanks in advance.
Regards,
Kinjal
15 years, 5 months
DrlParser problem with soundslike and matches
by Bruno Freudensprung
Hi,
I am using Drools 5.1.1 (but also tried with 5.2.0.SNAPSHOT) to achieve
the following scenario:
1 - use the Drools' Eclipse graphical rule editor to create a BRL file
2 - convert the BRL to DRL using the
org.drools.ide.common.server.util.BRXMLPersistence and
org.drools.ide.common.server.util.BRDRLPersistence classes
3 - parse the DRL with the org.drools.compiler.DrlParser class (in order
to do some things)
I have a problem with DrlParser class that does not seem to accept the
"matches" and "soundslike" operators.
With the following rule... :
rule "TestRule"
dialect "mvel"
when
Document( text soundslike "drink" )
then
// some
end
... I get that error message from the DrlParser:
src/main/resources/org/drools/lang/DescrBuilderTree.g: node from line
0:0 mismatched tree node: <unexpected:
[@15,55:64='soundslike',<83>,4:17], resync=soundslike> expecting <UP>
Does anyone has an idea of what's going on?
Many thanks,
Bruno.
15 years, 5 months
Re: [rules-users] GWT Console and WSHT Rendering
by sam.squire@paretopartners.com
Kris, thank you.
I have templates working now. I can extract the 'result' of a form by
specifying an dataOutput, dataOutputRefs and a dataOutputAssociation into
a process variable.
What is the best way to give data to a human task node? That way the form
can change depending on the state of the process itself.
In the sourcecode it looks like only a few parameter types are possible
(Comment, Content, Skippable, Priority etc..) and it seems to give the
content as context to Freemarker but it does not seem to 'see' it.
Sam Squire
This message may contain confidential and privileged information and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorised. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator and then immediately delete this message. Although we attempt to sweep e-mail and attachments for viruses, we do not guarantee that either are virus-free and accept no liability for any damage sustained as a result of viruses.
Please refer to http://www.bnymellon.com/disclaimer/piml.html for certain disclosures.
15 years, 5 months
Performance effect due to "eval"?
by sumatheja
Hi All,
Is it true that the performance of RETE algorithm gets
affected if we use "eval" function in the rules conditions?
Can anyone explain if this is true.
--
cheers
15 years, 5 months
FaultVariable local?
by marton.bokor
Hi All,
I have a fault handler with a fault variable which calls an event having the
fault variable of the same name (all in the same .rf file). I want it to be
local and my question is:
1) Will this variable be local or it will be fetched from the session global
to the process?
2) Is there a way to make it local in the handling event? For example by
declaring a composite node with a variable of the same name in its
namespace?
I'm asking this because I am introducing OR split nodes which run parallel
and don't want to mix the fault variable values.
Thanks,
Marton
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/FaultVariable-local-t...
Sent from the Drools - User mailing list archive at Nabble.com.
15 years, 5 months