POJO model jar?
by Jervis Liu
Hi, cant catch your guys on IRC, so I asked here. How do i upload a pojo
jar as fact model now adays? We dont seem to have this menu anymore from
"New"
Thanks,
Jervis
13 years, 1 month
Eclipse Rete Tree Viewer Error with good DRL.
by Ramon Buckland
Hi,
I have a Drools file that runs not a problem in Drools, but the Rete Viewer in Eclipse fails to view it.
the error is :
java.lang.Exception: Unable to parse rules to show RETE View! 1 build errors
Ho do I debug what that error is ?
regards
Ramon
Ramon Buckland
ramon(a)thebuckland.com
13 years, 1 month
RuntimeException "cannot invoke method" ArrayIndexOutOfBoundsException in Drools expert 5.5
by aleste
I've found a problem (probably a bug in mvel) running drools expert 5.5.
The MessageSourceElement constructor uses variable arguments:
public MessageSourceElement(Enum<?> enumerationElement, Object...
parameters) {
My drl contains a method with consequence:
then
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES,
new Object[]{}))
end
If I manually create the array of objects and pass it to the constructor it
works correctly, but if I try to use variable parameters:
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES))
insert (new
MessageSourceElement(ValidationException.MESSAGE_LIST.USER_CANT_OVERRIDE_THEMSELVES,
something, somethingElse))
I experince a very strange behavior: The first time the rule executes
properly, but any subsequent execution fails with RuntimeException "cannot
invoke method" ArrayIndexOutOfBoundsException 1
This happens because the second time mvel tries to call the two parameters
constructor (Enum, Object[]) no matter what the real constructor we are
trying to use (Enum), (Enum, SomeObject, SomeAnotherObject) and fails when
trying to extract the parameters by reflection.
I don't know if this is a known bug or if it should be reported, I hope it
will save some time someone.
--
View this message in context: http://drools.46999.n3.nabble.com/RuntimeException-cannot-invoke-method-A...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
[drools-planner] please advice on IntConstraintOccurrence weight
by Michiel Vermandel
Hi,
(using drools-planner 5.5.0.Final)
I'm struggling with assigning weights to IntConstraintOccurrence in a rule's LHS.
If I assign different weights for different rules (because we think one rule is more important than an other) our end result is far worse than when we assign all equal weights.
I do not look at the total value of hard and soft score but at the number of violations.
I can imagine that the planner can evolve much easier to a better solution with all weights being the same because if not then "transient" moves will be made impossible to take.
But how should we then implement importance in rules?
Thanks
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
13 years, 1 month
Guvnor-5.5
by Ricardo
Is any one tried guvnor-5.5 in websphere application server?
What happen to the conponents.xml?
Why guvnor is tightly coupled with jbossAS even each version (jbossAS) got
separate war file?
this seems a big impediment for using guvnor as rule authoring tools.
Is one knows well aware these and already know how to deal this, please
advise me?
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-5-5-tp4022096.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Url Resource Guvnor connection + ProtocolException
by abhinay_agarwal
Hey,
I am trying to reach my guvnor repository using a very simple block of code
UrlResource urlResource = new UrlResource(url);
urlResource.setBasicAuthentication("enabled");
urlResource.setUsername("admin");
urlResource.setPassword("admin");
kbuilder.add(urlResource, ResourceType.PKG);
Now, this code works fine on standalone, but as soon as the code is deployed
with the application, it throws this exception:
*java.net.ProtocolException: Server redirected too many times (20)*
I know there is some problem with server side coding, but I am not able to
get it.
I guess, when I am trying to access the guvnor link through my application,
it gets into an infinite redirection and not able to come out from it.
Might be the Authenticator class of java.net is called and
getPasswordAuthentication() fails, but since I am not an expertise in this
locale so facing issue to resolve it.
Any help is welcome.
Regards,
Abhinay
--
View this message in context: http://drools.46999.n3.nabble.com/Url-Resource-Guvnor-connection-Protocol...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month
Knowledge base Import/Export?
by gilbertoy
Good afternoon everyone,
Since I am inexperienced on using Drools, I would like to ask an
information:
There is a way to export and import rules, variables and such ? I would like
to try using Drools Guvnor validations on another software knowledge base,
but for this I would have to implement a way to both programs communicate
with each other.
There is a something like that already implemented on Drools or it would be
necessary to create a way from scratch?
Any information will be helpful and appreciated.
Thanks in advance!
Yours sincerely,
Gilberto.
--
View this message in context: http://drools.46999.n3.nabble.com/Knowledge-base-Import-Export-tp4024151....
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 1 month