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.
13 years, 7 months
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>
13 years, 7 months
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.
13 years, 7 months
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.
13 years, 7 months
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.
13 years, 7 months
Best practice to use heap memory effectively
by mohan
Hi ,
I want to keep events valid for 24 hour period. Per day I’m getting over
1000K events & insert into session. I saw that heap usage increase
drastically because of this. What is the best practice to handle such a
situation? Do I need to choose some caching mechanism?
Meantime I’m using “Statefulknowledge” session and use single session to
cater each event & never call session.dispose(). Will there be any impact?
I’m using Drool 5.1.1, jboss-5.1.0.GA, jre 1.6.0_33
Thanks.
Mohan
--
View this message in context: http://drools.46999.n3.nabble.com/Best-practice-to-use-heap-memory-effect...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months
Is Flow / jBPM dying on the vine?
by dunnlow
Hi,
I am considering using drools with Flow/jBPM as an integral part of a
corporate solution. However, it seems to me like the project is dying on
the vine. I understand the code is still being worked but overall interest
seems to be waning; evidenced by things like, a (...the) jBPM 5 book due two
months ago is still MIA. No blog posts on the project for six weeks.
I don't mean to bash jBPM, but am just worried about it's future. I suppose
the Flow/jBPM merge is irreversible? Any thoughts?
Is anyone using another BPM system with drools?
Thanks,
-J
--
View this message in context: http://drools.46999.n3.nabble.com/Is-Flow-jBPM-dying-on-the-vine-tp402073...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 7 months