Lock-on-active and FROM
by FrankVhh
Hello all
It has been a while since I posted on this forum as I was assigned to other
tasks for a while. Anyway, I have not forgotten about the source of
knowledge that is this user forum!
We are using Drools 5.3.0. In the expert manual, section 5.8.3.6.2, the odd
behavior of lock-on-active and FROM is highlighted.
However, we cannot reproduce this reported behaviour. See annex for .java
file and drl file.
In the documentation, it is sated that only one rule should fire, in the
example and as we run it, we can get both rule activations to execute. Could
anyone cast the bright light of explanation on this phenomenon?
It would also be helpful if someone could provide us with some additional
information about why you should expect only one rule to fire.
Thank you very much for your time and highly appreciated explanations!
Sample.drl <http://drools.46999.n3.nabble.com/file/n4030146/Sample.drl>
DroolsTest.java
<http://drools.46999.n3.nabble.com/file/n4030146/DroolsTest.java>
--
View this message in context: http://drools.46999.n3.nabble.com/Lock-on-active-and-FROM-tp4030146.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
(no subject)
by Konstantinos Souvatzopoulos
konsouv(a)gmail.com
10 years, 5 months
Drools 6 Fusion Example
by rjr201
Hi,
Does anyone know of a simple (complete) working example of a Drools Fusion
project using Drools 6?
My kModule.xml file so far looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<kmodule
xmlns="http://jboss.org/kie/6.0.0/kmodule">
<kbase name="KBase1" default="false" eventProcessingMode="stream"
equalsBehavior="equality" declarativeAgenda="enabled"
packages="org.domain.pkg2, org.domain.pkg3" includes="KBase1">
<ksession name="KSession1" type="stateful" default="false"
clockType="realtime">
</ksession>
</kbase>
</kmodule>
However, I think I need to define an entryPoint in the kmodule.xml.. but
can't find an example of how to do this.
If anyone can point me to an example it would be greatly appreciated.
Cheers,
Rich
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-6-Fusion-Example-tp4030139.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
Guvnor on weblogic
by konsouv
Hello guys,
A little help please.
I want to deploy guvnor on weblogic version 12.1.2.0.0. I downloaded
guvnor-distribution-wars-5.6.1-20140618.143413-14-weblogic-12c
from
http://snapshots.jboss.org/maven2/org/drools/guvnor-distribution-wars/5.6...
When I deploy it I get the following stack trace.
<Error> <Console> <Souvatzop-HP> <myserver> <[ACTIVE] ExecuteThread: '1' for
queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <>
<1403598617528> <BEA-240003> <Administration Console encountered the
following error: weblogic.application.ModuleException:
java.lang.UnsupportedOperationException: ERROR: GWT.create() is only usable
in client code! It cannot be called, for example, from server code. If you
are running a unit test, check that your test case extends GWTTestCase and
that GWT.create() is not called from within an initializer or constructor.
at
weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:114)
at
weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:100)
at
weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:172)
at
weblogic.application.internal.flow.ModuleStateDriver$1.next(ModuleStateDriver.java:167)
at
weblogic.application.utils.StateMachineDriver$ParallelChange.run(StateMachineDriver.java:80)
at weblogic.work.ContextWrap.run(ContextWrap.java:40)
at
weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:550)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
Caused by: java.lang.UnsupportedOperationException: ERROR: GWT.create() is
only usable in client code! It cannot be called, for example, from server
code. If you are running a unit test, check that your test case extends
GWTTestCase and that GWT.create() is not called from within an initializer
or constructor.
at com.google.gwt.core.client.GWT.create(GWT.java:91)
at com.google.gwt.user.client.ui.UIObject.<clinit>(UIObject.java:187)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:270)
at
com.oracle.injection.integration.CDIModuleExtension.addClassToSet(CDIModuleExtension.java:439)
at
com.oracle.injection.integration.CDIModuleExtension.getWebInfClassesManagedBeanClasses(CDIModuleExtension.java:381)
at
com.oracle.injection.integration.CDIModuleExtension.loadManagedBeanClassesFromWebArchive(CDIModuleExtension.java:338)
at
com.oracle.injection.integration.CDIModuleExtension.createWebModuleInjectionArchive(CDIModuleExtension.java:191)
at
com.oracle.injection.integration.CDIModuleExtension.createInjectionArchive(CDIModuleExtension.java:179)
at
com.oracle.injection.integration.CDIModuleExtension.postPrepare(CDIModuleExtension.java:85)
at
weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:297)
at
weblogic.application.internal.ExtensibleModuleWrapper$PrepareStateChange.next(ExtensibleModuleWrapper.java:285)
at
weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:42)
at
weblogic.application.internal.ExtensibleModuleWrapper.prepare(ExtensibleModuleWrapper.java:109)
After some research I think that the problem is that the beans.xml file in
WEB-INF folder is not read during deployment. It is not considered at all.
Is there any advice for me that could help me complete the deployment?
Thank you in advance.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-on-weblogic-tp4030143.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
Size and contains methods of List in Drools
by Sumit Dhaniya
Is it possible write conditions on the basis of size of a list using guided
editors (either guided decision table or guided rule) and to check if any
element is present in the list?
For eg.
User {
List of badges;
}
now I want to apply condition on number of badges and if a specific badge is
in user's list of badges.
Also can I compare to objects. For eg. condition on count of badges of two
users?
I'm using KIE Drools Workbench
Here's how source code should look like :-
import com.demo.dto.User;
import com.demo.dto.Badge;
rule "Compare two variables"
when
$user: User(name == "Sam")
$badge: Badge() memberOf $user.getBadges()
then
$user.setImpact($user.getImpact + $user.getBadges().size())
--
View this message in context: http://drools.46999.n3.nabble.com/Size-and-contains-methods-of-List-in-Dr...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
unsubscribed from the rules-users mailing list
by Wolfgang Laun
Friends,
this is to let you know that I have done as the subject says.
I'd like to thank all that have contributed for their continuing
efforts. As for myself: I think that this is a good moment to retire,
with my rapidly diminishing capability of understanding what's going
on in Guvnor, Optaplanner and other newfangled extensions. Hitting the
"delete" button on some incoming email has been the one thing I've
managed to do faithfully, and frequently.
Thanks again, and it's been *very* nice meeting you.
Wolfgang
10 years, 5 months
Getting Error while building the war from kie-wb-distributions-master source code
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I am trying to run mvn clean install on the kie-wb-distributions-master
source code, getting the below error.Please find the attachment for more
details on the error.
C:\Users\reddyl\RECOSYS\BRMS6\kie-wb\kie-wb-webapp\target\.
generated, *org.kie.workbench.FastCompiledKIEWebapp]: Error while executing
process. Cannot run program "C:\Program Files\Java\jdk1.6.0_27\jre\bin\java*
*": CreateProcess error=206, The filename or extension is too long*
could you please let me know any workaround on this issue?
Regards,
Lakshmi Reddy
10 years, 5 months
Optaplanner - Linking time windows of vendors and the depot
by alainb
Dear All,
I'm trying to model multiple time windows of the same vendor by multiplying
the vendors with different time windows and demand. This seems to work.
However, I can do the same with the depot but it doesn't represent what I
need.
I'm using salomon tw example, but i need certain demand to be there in one
time window of the depot, and other demand at the other time window of the
depot. In other words, I would need to link demand at a time window of a
vendor to a specific time window of the depot.
Does anyone know if there is any possibility to do this? Or can somebody
suggest me some further steps. I would be really thankful.
Thank you all in advance,
Kind Regards,
Alain
--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-Linking-time-windows-of-ven...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months
SelectionFilter<ChangeMove> question
by dBijkoo
i have a class ChangeMoveFilter which implements
SelectionFilter<ChangeMoveSelector> to sort out moves that break hard
constraints.
In the config it looks like this
<constructionHeuristic>
<queuedEntityPlacer>
<entitySelector id="placerEntitySelector">
<cacheType>PHASE</cacheType>
</entitySelector>
<changeMoveSelector>
*<filterClass>solver.move.ChangeMoveFilter</filterClass>*
<entitySelector mimicSelectorRef="placerEntitySelector"/>
<valueSelector>
<cacheType>PHASE</cacheType>
</valueSelector>
</changeMoveSelector>
</queuedEntityPlacer>
</constructionHeuristic>
However I am getting the impression that the overridden accept function is
called before anything changed in the entity. Because the (only)
planningvariable of the entity is still null, which would never be able to
happen in my understanding.
Am i missing something or is the filter move called before anything changes
in the given entity?
--
View this message in context: http://drools.46999.n3.nabble.com/SelectionFilter-ChangeMove-question-tp4...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 5 months