Drools installation issues
by kylekg93 .
Hello,
I'm having some issues starting up drools within Eclipse. I am running
windows 8 with the Luna version of Eclipse. I have installed the GEF plugin
and installed the DROOLS plugin using the update site. However, when I try
and load examples, it appears I am missing dependencies/plugins. When I
import anything in regards to KieServices, it fails. I also get an error
that says 1.8 is not a valid language. Maybe I am just missing a big step,
but I did follow the documentation. I would really appreciate some
assistance. Like I said, maybe I've just missed a step...
Thank you,
Kyle Gillen
11 years, 8 months
conditions getting removed from Guided Rule
by Sumit Dhaniya
I'm creating a rule in which I'm comparing properties of two objects. All
works well I'm able to compare their properties and rule gets validated as
well and then I close the rule, but when I open the rule again properties of
second object in condition don't show up in guided editor however they are
present if I check the source of the guided rule.
Moreover it also doesn't allows me to use _id variable which is present in
my class whereas there is no issue if I use any other variable name id this
due to "_"?
--
View this message in context: http://drools.46999.n3.nabble.com/conditions-getting-removed-from-Guided-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
check list size
by Sumit Dhaniya
I have a class which contains some lists, I want to apply rules on size of
list and want to use functions like first(), last() but list objects which
are in my class are identified as collections and only collection related
functions are shown.
For eg.
class A {
java.util.List bList = new ArrayList();
}
now it shows bList as collection type and it doesn't shows size and related
list function instead shows collection functions like contains etc.
Can't I use it like both a collection as well as List?
I tried importing java.util.List but it still don't recognize my List
objects as List
--
View this message in context: http://drools.46999.n3.nabble.com/check-list-size-tp4030303.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
drools-wb 6.1.0.CR1-wildfly - error when upload jar M2 Repo
by jps
Hello,
I've installed kie-drools-wb-distribution-wars-6.1.0.CR1-wildfly with all
the defaults - i.e m2 repo is in WIDLFLY_HOME/bin/repositories/kie) and
everything works fine so, except that I can't manage to upload a JAR.
The JAR I'm trying to upload is a mavenized JAR, it has no dependencies but
a parent pom. I get this Exception in the logs :
16:33:54,459 ERROR [io.undertow.request] (default task-9) UT005023:
Exception handling request to
/kie-drools-wb-distribution-wars-6.1.0.CR1-wildfly/org.kie.workbench.drools.KIEDroolsWebapp/m2repo/file:
java.lang.LinkageError:
com/ning/http/client/providers/netty/NettyAsyncHttpProvider
at
org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
[wagon-ahc-1.2.1.jar:]
at
org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
[wagon-provider-api-1.0.jar:1.0]
at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
[wagon-provider-api-1.0.jar:1.0]
at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
[aether-connector-wagon-1.13.1.jar:]
at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
[aether-connector-wagon-1.13.1.jar:]
at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
[aether-connector-wagon-1.13.1.jar:]
at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
[aether-util-1.13.1.jar:]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
[rt.jar:1.7.0_11]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
[rt.jar:1.7.0_11]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_11]
16:33:54,463 ERROR [stderr] (pool-14-thread-1) Exception in thread
"pool-14-thread-1" java.lang.LinkageError:
com/ning/http/client/providers/netty/NettyAsyncHttpProvider
16:33:54,464 ERROR [stderr] (pool-14-thread-1) at
org.sonatype.maven.wagon.AhcWagon.openConnectionInternal(AhcWagon.java:150)
16:33:54,464 ERROR [stderr] (pool-14-thread-1) at
org.apache.maven.wagon.AbstractWagon.openConnection(AbstractWagon.java:105)
16:33:54,471 ERROR [stderr] (pool-14-thread-1) at
org.apache.maven.wagon.AbstractWagon.connect(AbstractWagon.java:207)
16:33:54,472 ERROR [stderr] (pool-14-thread-1) at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.connectWagon(WagonRepositoryConnector.java:345)
16:33:54,473 ERROR [stderr] (pool-14-thread-1) at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector.pollWagon(WagonRepositoryConnector.java:385)
16:33:54,473 ERROR [stderr] (pool-14-thread-1) at
org.sonatype.aether.connector.wagon.WagonRepositoryConnector$GetTask.run(WagonRepositoryConnector.java:571)
16:33:54,474 ERROR [stderr] (pool-14-thread-1) at
org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)
16:33:54,474 ERROR [stderr] (pool-14-thread-1) at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
16:33:54,474 ERROR [stderr] (pool-14-thread-1) at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
16:33:54,475 ERROR [stderr] (pool-14-thread-1) at
java.lang.Thread.run(Thread.java:722)
I also try to upload my parent pom ... but I get an error message "The JAR
does not contain a valid pom" ... of course it's not a JAR, it's just a
pom.xml
Can someone give me some hints on how to do this ?
Can I workaround and do a "mvn install" to put the JAR in the REPO under
WIDLFLY_HOME/bin/repositories/kie ?
Any help or hint would be appreciated.
Regards
-JPS
--
View this message in context: http://drools.46999.n3.nabble.com/drools-wb-6-1-0-CR1-wildfly-error-when-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months
Hang in Drools Builder during Building Workspace with Eclipse
by Borris
If I have
global java.util.List <com.blah.CountedValue <> > countsList;
then Drools Builder never finishes. If I have
global java.util.List <com.blah.CountedValue > countsList;
Then the problem does not occur. So it's the diamond brackets <> causing
the hang.
I'm not claiming this is the code I want - I was part way through
changing some stuff between Drools and Java and ended up with the <>
present whilst I was thinking. Either auto-save or my fingers doing the
equivalent a bit later triggered the hang.
The impact is massive, unfortunately, as Eclipse tries to build the
workspace (by default) on starting, and you need to have finished
workspace building before you can get the the dlg to disable the
automatic workspace building or the use of Drools Builder.
This happens in 6.1.0.201407130611 - but I was using 6.1.0.201407061813
when it went wrong.
Is there anything else I can add to be helpful?
Borris
11 years, 8 months
Error due to same class name
by Sumit Dhaniya
I've two classes with same name but in different packages.
I created several guided rules which use these classes when I validate
individual rules they get validated but when I try to Build and Deploy the
project it fails cause it try to find a field in another class.
Unable to create Field Extractor for 'isPH'Field/method 'isPH' not found for
cla
ss 'com.****.****.db.user.TmSlot'
: [Rule name='ProducerHour']
org.drools.core.RuntimeDroolsException: Field/method 'isPH' not found for
class
'com.****.****.db.user.TmSlot'
Unable to Analyse Expression isPH == true:
[Error: unable to resolve method using strict-mode:
com.****.****.db.user.TmSlot.isPH()]
[Near : {... isPH == true ....}]
--
View this message in context: http://drools.46999.n3.nabble.com/Error-due-to-same-class-name-tp4030304....
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 8 months