Hi All,
Can someone please help me solve this issue?
Thanks and Regards,
Suresh Kumar Mutyala
________________________________
From: "rules-users-request(a)lists.jboss.org"
<rules-users-request(a)lists.jboss.org>
To: rules-users(a)lists.jboss.org
Sent: Thursday, 20 September 2012 4:17 AM
Subject: rules-users Digest, Vol 70, Issue 65
Send rules-users mailing list submissions to
rules-users(a)lists.jboss.org
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.jboss.org/mailman/listinfo/rules-users
or, via email, send a message with subject or body 'help' to
rules-users-request(a)lists.jboss.org
You can reach the person managing the list at
rules-users-owner(a)lists.jboss.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of rules-users digest..."
Today's Topics:
1. Planner Planning Entity difficulty comparator Vs difficulty
weight factory (Ricardo)
2. Examination drools-planner example (kostis)
3. Re: Examination drools-planner example (Geoffrey De Smet)
4. Re: Planner Planning Entity difficulty comparator Vs
difficulty weight factory (Geoffrey De Smet)
5. Re: Planner Planning Entity difficulty comparator Vs
difficulty weight factory (ge0ffrey)
6. Re: planning difficulty problem (Geoffrey De Smet)
7. Classcast exception in Drools ant task (Mutyala Suresh kumar)
----------------------------------------------------------------------
Message: 1
Date: Wed, 19 Sep 2012 16:49:39 -0700 (PDT)
From: Ricardo <sprabakkar(a)gmail.com>
Subject: [rules-users] Planner Planning Entity difficulty comparator
Vs difficulty weight factory
To: rules-users(a)lists.jboss.org
Message-ID: <1348098579210-4019858.post(a)n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
when to use Planner Planning Entity difficulty comparator and difficulty
weight factory? is any guidelines?
-----
with kind regards,
--
View this message in context:
http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
------------------------------
Message: 2
Date: Wed, 19 Sep 2012 23:06:22 -0700 (PDT)
From: kostis <epp687(a)gmail.com>
Subject: [rules-users] Examination drools-planner example
To: rules-users(a)lists.jboss.org
Message-ID: <1348121182201-4019859.post(a)n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
Hello,
Is there any guidance about the domain model of the examination example?
The class InstitutionalWeighting has some properties that I cannot undestand
the purpose of them
Thank you
--
View this message in context:
http://drools.46999.n3.nabble.com/Examination-drools-planner-example-tp40...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
------------------------------
Message: 3
Date: Thu, 20 Sep 2012 09:19:05 +0200
From: Geoffrey De Smet <ge0ffrey.spam(a)gmail.com>
Subject: Re: [rules-users] Examination drools-planner example
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID: <505AC369.8040004(a)gmail.com>
Content-Type: text/plain; charset="us-ascii"
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120920/e77b5ef...
------------------------------
Message: 4
Date: Thu, 20 Sep 2012 09:23:07 +0200
From: Geoffrey De Smet <ge0ffrey.spam(a)gmail.com>
Subject: Re: [rules-users] Planner Planning Entity difficulty
comparator Vs difficulty weight factory
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID: <505AC45B.9080605(a)gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
[I locally answered this question last time already, but it looks like
my mail never reached the mailing list due to a local misconfiguration
at the time]
Op 20-09-12 01:49, Ricardo schreef:
when to use Planner Planning Entity difficulty comparator and
difficulty
weight factory? is any guidelines?
Use a difficulty comparator if you can: it's
the easy variant.
A difficulty weight factory is needed only if you need the entire
Solution (not just the entity) to calculate the difficulty of a given
entity.
In the examples, look for *DifficultyComparator and
*DifficultyWeightFactory.
-----
with kind regards,
--
View this message in context:
http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------
Message: 5
Date: Thu, 20 Sep 2012 00:23:56 -0700 (PDT)
From: ge0ffrey <ge0ffrey.spam(a)gmail.com>
Subject: Re: [rules-users] Planner Planning Entity difficulty
comparator Vs difficulty weight factory
To: rules-users(a)lists.jboss.org
Message-ID: <1348125836746-4019861.post(a)n3.nabble.com>
Content-Type: text/plain; charset=us-ascii
See
http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comp...
<
http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comp...
--
View this message in context:
http://drools.46999.n3.nabble.com/Planner-Planning-Entity-difficulty-comp...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
------------------------------
Message: 6
Date: Thu, 20 Sep 2012 09:26:16 +0200
From: Geoffrey De Smet <ge0ffrey.spam(a)gmail.com>
Subject: Re: [rules-users] planning difficulty problem
To: Rules Users List <rules-users(a)lists.jboss.org>
Message-ID: <505AC518.9030001(a)gmail.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
[I locally answered this question last time already, but it looks like
my mail never reached the mailing list due to a local misconfiguration
at the time]
If it's in anything like the nurse rostering example, I would presume
the following domain:
- Planning entity: ShiftAssignment. There are 9 (3 shifts for 3 hospitals)
- Planning variable: ShiftAssignment.get/setDoctor()
- Planning values for that variable: 10 doctors
So Planner will put a doctor in each of those 9 ShiftAssignments and 1
doctor won't be assigned to any shift.
Actually, Planner might assign the same 2 doctor to 2 different
ShiftAssignments if none of the constraints are broken (such as "no 2
ShiftAssignements at the same time for the same doctor").
See nurse rostering example. Play around with it. Take a look at this
video about contentious planning with nurse rostering:
http://blog.athico.com/2012/08/continuous-planning-video.html
Mentally replace "nurse" with "doctor" and "department" with
"hospital".
Op 20-09-12 01:46, Ricardo schreef:
For example , I have 10 doctors planning for 3 hospitals in three
shifts,
each hospital take maximum limit of 3 doctors only, In this case I have one
remaining doctor unassigned. My doubt is how planner handle this data? will
it be rejected or consider in other cycle or overwrite the planner solution?
please advise...
thanks,
-----
with kind regards,
--
View this message in context:
http://drools.46999.n3.nabble.com/planning-difficulty-problem-tp4019857.html
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
------------------------------
Message: 7
Date: Thu, 20 Sep 2012 16:17:33 +0800 (SGT)
From: Mutyala Suresh kumar <sk_mutyala(a)yahoo.co.in>
Subject: [rules-users] Classcast exception in Drools ant task
To: "rules-users(a)lists.jboss.org" <rules-users(a)lists.jboss.org>
Message-ID:
<1348129053.80952.YahooMailNeo(a)web190805.mail.sg3.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi All,
I am trying to build a sample drools project using ant and getting the below error. I am
using "drools-distribution-5.4.0.Final" release jars in my project. Unable to
get this issue resolved as not sure what really went wrong.
RuleBaseTask failed: Unable to load dialect
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration'
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:159)
? ? ? ? at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
? ? ? ? at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
? ? ? ? at java.lang.reflect.Method.invoke(Method.java:597)
? ? ? ? at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
? ? ? ? at org.apache.tools.ant.Task.perform(Task.java:348)
? ? ? ? at org.apache.tools.ant.Target.execute(Target.java:357)
? ? ? ? at org.apache.tools.ant.Target.performTasks(Target.java:385)
? ? ? ? at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
? ? ? ? at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
? ? ? ? at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
? ? ? ? at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:33)
? ? ? ? at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
? ? ? ? at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
? ? ? ? at
org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.drools.RuntimeDroolsException: Unable to load dialect
'org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration:mvel:org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration'
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:313)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:298)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:187)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:140)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.getPackageBuilder(DroolsCompilerAntTask.java:556)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.createWithPackageBuilder(DroolsCompilerAntTask.java:266)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:156)
? ? ? ? at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
? ? ? ? at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
? ? ? ? at java.lang.reflect.Method.invoke(Method.java:597)
? ? ? ? at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
? ? ? ? at org.apache.tools.ant.Task.perform(Task.java:348)
? ? ? ? at org.apache.tools.ant.Target.execute(Target.java:357)
? ? ? ? at org.apache.tools.ant.Target.performTasks(Target.java:385)
? ? ? ? at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
? ? ? ? at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
? ? ? ? at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
? ? ? ? at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
? ? ? ? at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
? ? ? ? ... 2 more
Caused by: java.lang.ClassCastException:
org.drools.rule.builder.dialect.mvel.MVELDialectConfiguration
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.addDialect(PackageBuilderConfiguration.java:308)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.buildDialectConfigurationMap(PackageBuilderConfiguration.java:298)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.init(PackageBuilderConfiguration.java:189)
? ? ? ? at
org.drools.compiler.PackageBuilderConfiguration.<init>(PackageBuilderConfiguration.java:142)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.getPackageBuilder(DroolsCompilerAntTask.java:558)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.createWithPackageBuilder(DroolsCompilerAntTask.java:266)
? ? ? ? at
org.drools.contrib.DroolsCompilerAntTask.execute(DroolsCompilerAntTask.java:156)
? ? ? ? at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
? ? ? ? at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
? ? ? ? at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
? ? ? ? at java.lang.reflect.Method.invoke(Method.java:597)
? ? ? ? at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
? ? ? ? at org.apache.tools.ant.Task.perform(Task.java:348)
? ? ? ? at org.apache.tools.ant.Target.execute(Target.java:357)
? ? ? ? at org.apache.tools.ant.Target.performTasks(Target.java:385)
? ? ? ? at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
? ? ? ? at org.apache.tools.ant.Project.executeTarget(Project.java:1307)
? ? ? ? at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
? ? ? ? at
org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:33)
? ? ? ? at org.apache.tools.ant.Project.executeTargets(Project.java:1191)
? ? ? ? ... 2 more
Below is the list of jars added to my classpath,
--------------------------------------------
antlr-runtime.jar
drools-ant-5.4.0.Final.jar
drools-compiler-5.4.0.Final.jar
drools-core-5.4.0.Final.jar
drools-decisiontables-5.4.0.Final.jar
drools-jsr94-5.4.0.Final.jar
drools-persistence-jpa-5.4.0.Final.jar
drools-templates-5.4.0.Final.jar
drools-verifier-5.4.0.Final.jar
droolsjbpm-ide-common-5.4.0.Final.jar
jbpm-bpmn2.jar
jbpm-flow-builder.jar
jbpm-flow.jar
jsr94.jar
junit.jar
jxl.jar
knowledge-api.jar
knowledge-internal-api.jar
mvel2.jar
org.eclipse.jdt.core_3.6.1.v_A68_R36x.jar
xmlpull.jar
xpp3_min.jar
xstream.jar
build.xml
---------
<project name="DroolsProto" default="dist"
basedir=".">
? ? ? ? <property name="build.src" location="src"/>
? ? ? ? <property name="build.target" location="target"/>
? ? ? ? <property name="build.dist" ?location="dist"/>
? ? ? ? <path id="build.lib.path">
? ? ? ? ? ? ? ? <fileset dir="${build.src}/lib">
? ? ? ? ? ? ? ? ? ? ? ? <include name="**/*.jar"/>
? ? ? ? ? ? ? ? </fileset>
? ? ? ? </path>
? ? ? ?
? ? ? ? <taskdef name="droolscompiler"
classname="org.drools.contrib.DroolsCompilerAntTask">
? ? ? ? ? ? ? ? <classpath refid="build.lib.path"/>
? ? ? ? </taskdef>
? ? ? ? <target name="clean">
? ? ? ? ? ? ? ? <delete dir="${build.target}"/>
? ? ? ? ? ? ? ? <delete dir="${build.dist}"/>
? ? ? ? </target>
? ? ? ? <target name="init">
? ? ? ? ? ? ? ? <tstamp/>
? ? ? ? ? ? ? ? <mkdir dir="${build.target}"/>
? ? ? ? ? ? ? ? <mkdir dir="${build.dist}"/>
? ? ? ? ? ? ? ? <record name="build.log" loglevel="verbose"
append="false"/>
? ? ? ? </target>
? ? ? ? <target name="compile" depends="init">
? ? ? ? ? ? ? ? <mkdir dir="${build.target}/classes"/>
? ? ? ? ? ? ? ? <javac srcdir="${build.src}/main/java"
destdir="${build.target}/classes">
? ? ? ? ? ? ? ? ? ? ? ? <classpath refid="build.lib.path"/>
? ? ? ? ? ? ? ? ? ? ? ? <include name="**/*.java"/>
? ? ? ? ? ? ? ? </javac>
? ? ? ? </target>
? ? ? ? <target name="compile-rules">
? ? ? ? ? ? ? ? <property name="pathelements"
refid="build.lib.path"/>
? ? ? ? ? ? ? ? <droolscompiler srcDir="${build.src}/main/rules"
? ? ? ? ? ? ? ? ? ? ? ? toFile="${build.target}/classes/drl.pkg"
? ? ? ? ? ? ? ? ? ? ? ? classpathref="build.lib.path">
? ? ? ? ? ? ? ? ? ? ? ? <include name="*.drl" />
? ? ? ? ? ? ? ? </droolscompiler>
? ? ? ? </target>
? ? ? ?
? ? ? ? <target name="bundle-resources"
depends="compile-rules">
? ? ? ? ? ? ? ? <copy todir="${build.target}/classes">
? ? ? ? ? ? ? ? ? ? ? ? <fileset dir="${build.src}/main/resources"/>
? ? ? ? ? ? ? ? </copy>
? ? ? ? </target>
? ? ? ?
? ? ? ? <target name="dist"
depends="compile,bundle-resources"/>
</project>
Thanks in advance,
Suresh
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://lists.jboss.org/pipermail/rules-users/attachments/20120920/b5fb38c...
------------------------------
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
End of rules-users Digest, Vol 70, Issue 65
*******************************************