Finding the definition of a rule
by LStampf
Hi,
I am currently using a KnowledgeAgent to implement hot deployment in our
applications. So far this is working, but now the requirement arose to
remove specific rules via program call. I thought the easiest way would be
to remove the rule from the resources and let the KnowledgeAgent handle the
rest. But as far as I see, there is no way to get the source resource of a
rule from the KnowledgeBase/RuleBase. I guess I wont have another choice
than to parse the initial changeset, gather all resources, and go through
them to find and remove the rule.
But this seems like overkill to achieve something that simple. Does anybody
know a better way to remove specific rules while using a KnowledgeAgent.
kind regards
Lukas
--
View this message in context: http://drools.46999.n3.nabble.com/Finding-the-definition-of-a-rule-tp4020...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 1 month
com.google.protobuf.MessageOrBuilder
by gboro54
I am trying to deploy an application onto JBoss 7.1 running drools 5.4 and I
am getting the following error. Any thoughts?
java.lang.ClassNotFoundException: com.google.protobuf.MessageOrBuilder from
[Module "deployment.fbms.ear.fbms-service.jar:main" from Service Module
Loader]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
... 26 more
--
View this message in context: http://drools.46999.n3.nabble.com/com-google-protobuf-MessageOrBuilder-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 1 month
Local Variable
by joy
Hi
i need local variables in drl file.
it should hold integer/double value.
Setting an integer value to a local variable in some rule and getting that
integer value in some other rule
when
#some condition01
then
local variable=200
end
when
#some condition02
then
local variable =300
end
when
#some condition03
then
emp.salary=localvariable+2000
end
Anyone plz help me to resolve this.
Thank you
Joy
--
View this message in context: http://drools.46999.n3.nabble.com/Local-Variable-tp4020144.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 1 month
All the values from one list must be present in other
by Suvek
I tried looking for similar posts but could not find any that fits the
requirements.
Really speaking this is a 2 part question.
What I need to do is compare 2 lists and ensure that all the fields inside
the reference list are present in passed in list.
following is the simplified version of test that I want to perform...
$requiredAddressTypes : List() from [ AddressType.BUSINESS,
AddressType.FOREIGN_BUSINESS ]
$taxpayer : Taxpayer(taxpayerType == TaxpayerType.FOREIGN_BUISINESS &&
addresses.size > 0,
$addresses : addresses)
1 - Based on the taxpayer type I need to ensure that ALL the
requiredAddressTypes must be present, how can I achieve this?
2 - is the this statement correct ? ($requiredAddressTypes : List() from [
AddressType.BUSINESS, AddressType.FOREIGN_BUSINESS ])
--
View this message in context: http://drools.46999.n3.nabble.com/All-the-values-from-one-list-must-be-pr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 1 month
empty cell in excel makes the LHS missing in the rule
by himansu.nayak
Hi,
i am using drools 5.4.0 and currently facing a typical problem. when ever
any cell for LHS in the spreadsheet is blank. when the rules is compiled
using the spreadsheet, the LHS for the empty cell get completely missed.
drools don't even consider it as a empty string. The only workaround i found
is to fill all empty cell with N/A and then merging the cells, which looks
like a patch work.
Any other way thru with i can tell drools to treat empty cells as empty
string?
-----
Thanks...
Himansu
--
View this message in context: http://drools.46999.n3.nabble.com/empty-cell-in-excel-makes-the-LHS-missi...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 1 month