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.
11 years, 6 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.
11 years, 6 months
Need help in build the war file from the guvnor-6.0.1.Final source code
by LaKhI ReDdY!!!!!!!!!!!
Hi,
Need help in build the war file from the guvnor-6.0.1.Final source code. I
downloaded the guvnor-6.0.1.Final.zip and extracted it, i see the following
folders in it.
guvnor-inbox
guvnor-m2repo-editor
guvnor-project
guvnor-services-api
guvnor-services-backend
guvnor-workset-api
guvnor-workingset-clent
src
I ran the maven command(mvn install -DskipTests=true) in the mail folder
guvnor-6.0.1.Final, it ran successfully and generate jar files.
I did not find the target to build war in any of the pom.xml files.
If anybody knows how to build war from the guvnor-6.0.1.Final source code,
please pass me the information.
If need to change the any pom.xml please let me know.
Regards,
Lakshmi Reddy
11 years, 6 months
Need BRMS migration tool download zip file location to download
by LaKhI ReDdY!!!!!!!!!!!
Hi ,
I need to migrate repository from BRMS 5.1.1 to BRMS 6.0.1.
In BRMS 6.0.1 Administration And Configuration Guide , i read we can do
migrating using data migration tool.
I could not able to find where this migration tool download zip available.
IF anybody knows, please provide me the path/location/url to download the
migration tool zip file?
Thanks,
Lakshmi Reddy
11 years, 6 months
accumulate function not registered
by rogerL
After upgrade to 6.1.0.CR1 rule compilation is generating a pluggable
accumulate function registration error.
Partial stack dump:
Caused by: java.lang.RuntimeException: Error while creating KieBase[Message
[id=1, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Unknown accumulate function: 'topPriority' on rule 'Insert highest
priority campaign'. All accumulate functions must be registered before
building a resource.], Message [id=2, level=ERROR,
path=com/s/c/manager/rules/campaign/priority/prioritize.drl, line=31,
column=0
text=Rule Compilation error $tc cannot be resolved to a variable]]
The associated rule and accumulate import are:
import accumulate com.s.c.util.HighestPriorityCampaignAccumulateFunction
topPriority;
rule "Insert highest priority campaign"
when
not TopCampaign()
accumulate(TargetCampaigns($list : list, list.size >0), $tc :
topPriority( $list ) )
then
insert(new TopCampaign($tc));
end
Is this syntax no longer correct?
--
View this message in context: http://drools.46999.n3.nabble.com/accumulate-function-not-registered-tp40...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
Comparing Objects of same class.
by naresh.t
HI Team,
We came in situation where we need to compare our objects of same class.
For example, we have a class like SampleData.java. It has fields like 1) No
2) Student Name 3) DOJ(date of join)
Now, we want to write a Rule to get the Student Details like
1) if any 5 students joined in 2 days of span
This rule might changed dynamically like for now it is 2 days but in future
it may be 1 day or 3 days etc.,
Please provide any suggestions on this...
Thanks & Regards
Naresh
--
View this message in context: http://drools.46999.n3.nabble.com/Comparing-Objects-of-same-class-tp40300...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
Workbench not Working in Resilient Environment
by Zahid Ahmed
Hi,
I am trying to setup Drools6 Workbench ion a resilient mode but am unable to sync the assets amongst the resilient members. Kindly have a look at the detailed question posted earlier.
Subject in Drools Forum "Drools Workbench | VFS Clustering Error | NoNode for jbpm-cluster"
Regards,
Zahid Ahmed
11 years, 6 months
Possible problem in PathMemory
by rjh
Hello,
I developed a system where dynamic salience for some particular rules
doesn't rules. However, it is very hard for me to create a simple test case
unless I publish the entire rule files. In the system, some rules using
dynamic salience work and some don't, but I don't know why.
I debugged into the drools-core source code, and found out the following
code in branch 6.0.x.
(https://github.com/droolsjbpm/drools/blob/6.0.x/drools-core/src/main/java...)
Line 98 - org.drools.core.reteoo.PathMemory::doLinkRule
int salience = ( rtn.getRule().getSalience() instanceof
MVELSalienceExpression)
? 0
: rtn.getRule().getSalience().getValue(null,
rtn.getRule(), wm);
Line 113 - org.drools.core.reteoo.PathMemory::doUnlinkRule
int salience = ( rtn.getRule().getSalience() instanceof
MVELSalienceExpression)
? 0
: rtn.getRule().getSalience().getValue(null,
rtn.getRule(), wm);
I wonder if this is a bug that put the first value and the second value
reversed. At least I fixed my problem after reversing them.
Thanks.
Jinghai
--
View this message in context: http://drools.46999.n3.nabble.com/Possible-problem-in-PathMemory-tp403002...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
Noob question: graph searching, query, root node for a given node
by Borris
I'm after a quick bit of help on how to do something that I think should be
easy but I can't work out how.
I have a Java-side class that essentially is something like
declare Datum
description: String
broader: List <Datum>
narrower: List <Datum>
end
These are arranged in a graph. Root nodes have no items in their broader
list. I want a query that takes a datum and yields the root nodes for that
datum. I think this should look something like
query rootDatumsFor( Datum datum, Datum result )
not Datum() from $datum.broader
or
rootDatumsFor( $datum.broader, $result )
end
but I then get confused. When there are no broader items, I am unclear how
to assign $datum to $result. And I'm not convinced I'm doing the recursion
correctly either.
If an experienced Drools author could spend a minute and show me how to do
this sensibly, I would be very grateful.
--
View this message in context: http://drools.46999.n3.nabble.com/Noob-question-graph-searching-query-roo...
Sent from the Drools: User forum mailing list archive at Nabble.com.
11 years, 6 months
Need help in understanding Data enumeration’s drop down list configuration
by Shrinath Managuli
Hi Drools,
Need help in understanding Data enumeration’s drop down list configuration,
I had created a simple data enumeration as,
[cid:image001.png@01CF8A37.D4053860]
For this, I also created a Customer object with a code field as String at org.kie.example.project1 package.
While creating guided rule, I’m unable to view the enumeration as drop down as like below,
[cid:image002.png@01CF8A37.D4053860]
I had tried this scenario with JBoss BRMS 6. Please help me to understand on how to populate the drop down using data enumeration.
Thanks,
srinath
[Aspire Systems]
This e-mail message and any attachments are for the sole use of the intended recipient(s) and may contain proprietary, confidential, trade secret or privileged information. Any unauthorized review, use, disclosure or distribution is prohibited and may be a violation of law. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
11 years, 7 months