Building our own UI for Drools
by kapokfly
Due to some reasons (for example, build a consistent UI within our own
application, easier to work with our own meta data, don't want SSO etc), we
are considering to build our own UI to generate Drools rule file basing on
the user input via the UI , has anyone tried this before? Is there any
library shipped within Drools Gunvor can be used to be easier to work with
Drools rule syntax?
Thanks,
Ivan
-----
Ivan, your Panda, forever
--
View this message in context: http://drools.46999.n3.nabble.com/Building-our-own-UI-for-Drools-tp350884...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
How to get notified just before rule is picked up for evaluation
by GPatel@tsys.com
Is there a way to get a hook into just before a rule is evaluated to
determine whether an activation is created ?
The earliest hook available is DefaultAgendaEventListener.
activationCreated(ActivationCreatedEvent event)
What I am looking for is to get notified just before a rule is picked up
for evaluation and just after it has been evaluated.
Thanks
Ghanshyam
-----------------------------------------
The information contained in this communication (including any
attachments hereto) is confidential and is intended solely for the
personal and confidential use of the individual or entity to whom
it is addressed. If the reader of this message is not the intended
recipient or an agent responsible for delivering it to the intended
recipient, you are hereby notified that you have received this
communication in error and that any review, dissemination, copying,
or unauthorized use of this information, or the taking of any
action in reliance on the contents of this information is strictly
prohibited. If you have received this communication in error,
please notify us immediately by e-mail, and delete the original
message. Thank you
12 years
Guvnor repository and UNC
by TonyN
Would like to know if anyone has success in setting up the Guvnor repository
to use UNC (\\server\somedir). I am keep getting error
6:01:45,374 INFO [org.drools.guvnor.server.security.SecurityServiceImpl]
(http--129.172.3.58-8080-1) Logging in user [tony]
16:01:45,608 WARN [org.jboss.seam.security.permission.SecurityRuleLoader]
(http--129.172.3.58-8080-1) No security rules configured - rule base
permissions will be unavailable.
16:01:45,952 INFO [org.drools.repository.RulesRepositoryConfigurator]
(http--129.172.3.58-8080-2) Creating an instance of the
RulesRepositoryConfigurator.
16:01:46,124 INFO [org.apache.jackrabbit.core.config.RepositoryConfig]
(http--129.172.3.58-8080-2) Creating repository directory
\\sw-scmapp01i.slb.cal.boeing.com\tcudata01\SDRlink\Tony\guvnor5.4.0
16:01:46,171 INFO [org.apache.jackrabbit.core.config.RepositoryConfig]
(http--129.172.3.58-8080-2) Copying configuration from
vfs:/C:/jboss-as-7.1.1/bin/content/guvnor-5.4.0-Final.war/WEB-INF/lib/jackrabbit-core-2.2.8.jar/org/apache/jackrabbit/core/repository.xml
to
\\sw-scmapp01i.slb.cal.boeing.com\tcudata01\SDRlink\Tony\guvnor5.4.0\repository.xml
16:01:46,280 INFO [org.apache.jackrabbit.core.config.RepositoryConfig]
(http--129.172.3.58-8080-4) Creating repository directory
\\sw-scmapp01i.slb.cal.boeing.com\tcudata01\SDRlink\Tony\guvnor5.4.0
16:01:46,296 ERROR [org.drools.guvnor.server.RepositoryServiceServlet]
(http--129.172.3.58-8080-2) Service method 'public abstract
org.drools.guvnor.client.rpc.Module
org.drools.guvnor.client.rpc.ModuleService.loadGlobalModule()' threw an
unexpected exception: org.jboss.weld.exceptions.WeldException: WELD-000049
Unable to invoke [method] @PostConstruct public
org.drools.guvnor.server.repository.RulesRepositoryManager.createRulesRepository()
on org.drools.guvnor.server.repository.RulesRepositoryManager@16e992d:
org.jboss.weld.exceptions.WeldException: WELD-000049 Unable to invoke
[method] @PostConstruct public
org.drools.guvnor.server.repository.RulesRepositoryManager.createRulesRepository()
on org.drools.guvnor.server.repository.RulesRepositoryManager@16e992d
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-repository-and-UNC-tp4020832.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Test if String endsWith()
by Omar Baqueiro
Hello,
I am trying to evaluate certain data with Drools based on the end of a
string. So far, I have got the following mvel based DRL ( My Wrapper class
has the fields (with all their accessors) id, email and list):
---
rule "Check the items of the list and remove the ones that satisfy the
condition"
lock-on-active
when
$wrapper : Wrapper(
id == "itemId",
email.endsWith("@email.com") == true,
$items : list)
$item : Map() from $items
then
$items.remove($item)
end
----
However, when trying to apply this rule, I get the error: no viable
alternative at input '"@gmail.com"' in rule ...".
What is the correct way to test whether a string ends with certain text
(i.e, using the String.endsWith function using MVEL)
Thanks for any help!
--
--
*Omar Baqueiro Espinosa*
Software Engineer |
baqueiro(a)ooyala.com | +52 (33) 3817-0861
www.ooyala.com | blog <http://www.ooyala.com/blog> |
@ooyala<http://www.twitter.com/ooyala>
12 years
Problem in Parsing Change-set.xml
by anniejoseph
Hi
I'm using change-set.xml, which pionts to a drl file. While running
change-set.xml I got an exception due to in *space *on the folder name in
the url .
My path for change-set.xml is : ' F:/Rule Testing/rules/change-set.xml ' .
Exception that I got is :
java.lang.RuntimeException: Unable to parse ChangeSet
at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentI
mpl.java:448)
at
org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgen
tImpl.java:180)
at com.xxx.xxx.xxxxx.xxx.xxxx.<init>(xxxx.java:75)
at com.xxx.xxx.xxxxx.xxx.xxxx.<clinit>(xxxx.java:55)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Unable to get File for url
file:/F:/Rule Testing/rules/change-set.xml
at org.drools.io.impl.UrlResource.getFile(UrlResource.java:246)
at org.drools.io.impl.UrlResource.grabLastMod(UrlResource.java:275)
at
org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:134)
at org.drools.io.impl.UrlResource.getReader(UrlResource.java:214)
at
org.drools.agent.impl.KnowledgeAgentImpl.getChangeSet(KnowledgeAgentI
mpl.java:446)
Is there any way to parse change-set.xml ,if it's folder name have space?
Can any one help me to solve my problem?
Thanks & Regards
Annie
--
View this message in context: http://drools.46999.n3.nabble.com/Problem-in-Parsing-Change-set-xml-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
understanding Rete enhancements of Drools
by raffi
Hi community,
I have two questions abot the improvements of the Rete algorithm. First one
is about the HashMap which is filled if there is a new AlphaNodeadded to a
ObjectTypeNode. In which java class is this data structure?
Second question is a little bit of generic type. I read the documentation of
5.4.0 about the enhancement of indexing the BetaNodes (JoinNodes). But for
me its not that clear how this works. Is there another HashMap with for
example a key value /cheddar/ if I have a join between a /person/- and
/cheese/-fact type like in the examples? Or does it only check the field of
the join (String, Integer and so on)?
Andf if an object comes from the right side it could move into the Tuple of
the left side if this check was valid?
Thank you for reply.
--
View this message in context: http://drools.46999.n3.nabble.com/understanding-Rete-enhancements-of-Droo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years
Test Scenario not firing rule when a ruleflow-group is defined
by mpgong
Hello,
I created a simple rule using the guvnor drl editor - it looks like this:
rule "Rule1"
no-loop true
ruleflow-group "CheckOne"
when
$ca : TestFact()
then
System.out.println("Hello World");
end
when i create the scenario, where i insert a TestFact() object and added the
expected rule to fire 'Rule1' and then hit the run scenario, the output said
Rule1 was not activated and no rule fired. However, when i take the rule
flow group out it fires.
Any idea why this might be. Now i am able to use ruleflow-groups in my
application but those rules where built with the decision tables (xls) and
uploaded to guvnor.
The new set of rules are small and simple so i was just going to create them
using drl. This seems to be causing me problems because i'm trying to run
these rules from a process and they aren't firing in there either.
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Test-Scenario-not-firing-rule-when-a-ru...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years