[Optaplanner] Help on drl
by Tales Costa
Hi,
I am new to Drools and Optaplanner and have built a first model and
succeeded running with java score calculation. Now am struggling trying to
use rules for score.
Have read "Drools Expert User Guide" and looked through Optaplanner
examples but am still confused. Main difficult is discovering what can do
and can´t do with java dialect within the "when" and "then" blocks. Are
there tutorial and/or other references I could look into for more
information on this ?
regards
Tales
10 years, 12 months
Drools Integration with Apache Camel and Spring ...
by profversaggi
Can anyone point me to 'proper' tutorial or example of Drools web Integration
with Apache Camel and Spring that shows the soup to nuts "big picture". I'm
getting solid bits and pieces of information well enough through the
standard process - the Docs, the Camel Book, web links, etc ... I just need
the larger overall 'context' with which to places all of the pieces
together, and I'm having difficulty with that ....
Many thanks in advance ... :-)
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Integration-with-Apache-Camel-an...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 12 months
Optaplanner ShiftAssignment Employee is null
by ns
Hi,
I have a strange error. When I get my final roster, I do:
System.out.println(final_roster.getShiftAssignmentList());
I get a list of all the employees (with their names) assigned to a certain
shift on a certain date.
Now I would like to iterate over this list to save it to my database, so I
do the following to test:
for (ShiftAssignment shiftAssignment : roster.getShiftAssignmentList())
{
System.out.println("Shift assignment: " + shiftAssignment.getEmployee()
+ " - " + shiftAssignment.getShiftDate() + " - " +
shiftAssignment.getShift().getLabel());
}
But now the shiftAssignment.getEmployee() returns null. How can this happen?
Thanks
--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-ShiftAssignment-Employee-is...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 12 months
Fwd: [ljc] Call for Help - OSS projects
by Stephen Masters
Hi Mark and the gang,
Not sure whether you guys have seen this already (I’m guessing some of you must in in LJC), but if you’re looking for more London-based developers to get involved in the community side of Drools/KIE related projects, then it might be worth checking this out.
Steve
Begin forwarded message:
> From: Barry Cranford <bc(a)recworks.co.uk>
> Subject: [ljc] Call for Help - OSS projects
> Date: 29 November 2013 06:39:11 GMT
> To: ljc-list(a)meetup.com
> Reply-To: ljc-list(a)meetup.com
>
> TL;DR
>
> - We have had 44 LJC events this year. Woo!
> - We need to connect with more OSS projects for an upcoming Meet a Project event
>
>
> Hi All,
>
> We are nearly at the end of our year of events (we have had 44 LJC events so far this year). Our very last one of the year is a 'Meet a Project' event scheduled and are looking for some budding project leads that are going to come down and present their projects to small groups of developers, eager to find a new OSS project or similar to get their teeth into.
>
> Date: 11th December
> Time: 6:30
> Venue: UCL, London
>
> If you are interested please reply to me directly.
>
> To give you a bit of background to these events and why we started this initiative - one thing I have observed over the years, both as a recruiter and as a community leader is that there is a gap in the software industry, around open source software. There are a lot of developers in the industry, from students to experienced developers that are interested to get involved in something in addition to their day time position, but aren't really sure where to start. There are also a great deal of interesting projects covering everything from popular open source frameworks to the Adopt a JSR program launched by the LJC. Many of these projects rely on support/enthusiasm from developers and are keen to get more enthusiastic people involved. Not to mention that most candidates that get involved in personal projects seem to escalate their careers, salaries, day rates and passion for the industry (which all makes our job easier ;-)).
>
> Having been involved in several sporadic events over the last few years that aim to plug this gap, we started a series of events called LJC Meet a Project (#LJCMaP). They are run in a speed networking style, similar to the GDC Meet a Mentor events, they involve Project Ambassadors speaking to small groups of 3-6 developers. Giving a pitch of the project, then answering questions before moving on to another group. The events are intended to answer potential committers' questions around the projects, focussed mainly around starting points. These are not recruitment events or opportunities for companies to find new employees, but to help offer a way for developers to work alongside their existing positions to gain experience and develop communications and technical skills. The events are organised by RecWorks, the events team here will take care of all of the organisation/facilitation of the events to ensure that all is well organised and the process is as smooth as possible, so all you need to do is turn up on the day.
>
> Thanks all, let me know if you have any questions.
>
> Warm regards,
> Barry
>
>
>
>
> | recworks.co.uk | bc(a)recworks.co.uk | LinkedIn | Skype barrycranford | +44 7876 355215 |
> | Office +44 20 7866 8155 | Fax: +44 20 7379 0801 |
>
> If you like what we do please tweet about it. Just use the hashtag #recworksreco
>
> RecWorks Ltd | Registered in England and Wales. Registered No. 05864437
>
> Email disclaimer: This email contains information which may be confidential. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) do not copy this communication, or disclose it to any other person. If you have received this email in error please notify the sender immediately, delete the message from your computer system and destroy any copies. Except where this email is sent in the usual course of our business, any views or opinions presented are solely those of the author and do not necessarily represent those of RecWorks Ltd. Although RecWorks Ltd operates anti-virus programs, it does not accept responsibility for any damage whatsoever that is caused by viruses being passed. Replies to this email may be monitored and/or recorded by RecWorks Ltd for operational or business reasons.
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> Please Note: If you hit "REPLY", your message will be sent to everyone on this mailing list (ljc-list(a)meetup.com)
> This message was sent by Barry Cranford (bc(a)recworks.co.uk) from LJC - London Java Community.
> To learn more about Barry Cranford, visit his/her member profile
> To report this message or block the sender, please click here
> Set my mailing list to email me As they are sent | In one daily email | Don't send me mailing list messages
>
> Meetup, POB 4668 #37895 NY NY USA 10163 | support(a)meetup.com
10 years, 12 months
BEST_FIT Null Pointer Exception
by newbie
I am currently using final 6.0 and I used
<constructionHeuristicType>BEST_FIT</constructionHeuristicType> but after I
have run it propmts java.lang.NullPointerException pointing to my
PlanningVariableStrengComparator. Did I miss something? My planning variable
comparator by the way is :
public class MyVariableStrengthComparator implements Comparator<MyVariable>,
Serializable {
public int compare(MyVariable a, MyVariable b) {
return new CompareToBuilder()
.append(a.getId(), b.getId())
.toComparison();
}
}
--
View this message in context: http://drools.46999.n3.nabble.com/BEST-FIT-Null-Pointer-Exception-tp40269...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 12 months
Optaplanner with Apache Commons Collections 4.0
by jonathan.labin
Apache Commons Collections 4.0 has been released and has some data structures
that I'm interested in using in my application.
To your knowledge can Optaplanner function with version 4.0 swapped in place
of 3.2.1?
I have tried this and not encountered any issues at build or run time but
that of course doesn't mean they aren't there.
Will the next release of Optaplanner leverage this more recent release of
Collections?
Thanks,
Jon
--
View this message in context: http://drools.46999.n3.nabble.com/Optaplanner-with-Apache-Commons-Collect...
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 12 months
Binding mysteries
by Sonata
Hi, got a few questions about binding variables, hope someone can help out,
thanks.
1. Does binding actually cache the result for the RHS?
example:
rule "no binding"
when c : MyClass(member1 != member2)
then c.somemethod(imp.getMember1());
end
rule "with binding"
when c : MyClass(m : member1, member1 != member2)
then c.somemethod(m);
end
Does "no binding" call getMember1() twice while "with binding" calls
getMember1() once and cache the result to m? Or are both the same?
2. Is the practice to bind before or after?
example
rule "binding after"
when c : MyClass(member1 != member2, m : member1)
then c.somemethod(m);
end
Is there any difference between "with binding" and "binding after"?
3. Is bind and use in the LHS any better?
example
rule "binding and use"
when c : MyClass(m : member1, m != member2)
then c.somemethod(m);
end
Is there any difference between "with binding" and "binding and use"?
4. Why binding with constraint is not recommended?
example
rule "binding with constraint"
when c : MyClass(m : member1 != member2)
then c.somemethod(m);
end
In the expert manual, Drools 5.5.0 section 4.8.3.3.5. Binding variables, it
said
// Not recommended
Person( $age : age * 2 < 100 )
// Recommended (separates bindings and constraint expressions)
Person( age * 2 < 100, $age : age )
Although I know $age : age * 2 < 100 is binding $age to age *ONLY*, while
$age : (age * 2 < 100) is binding $age to the result of (age * 2 < 100). Is
the recommendation only about this safety precaution?
Thank you so much for answering.
--
View this message in context: http://drools.46999.n3.nabble.com/Binding-mysteries-tp4026999.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
10 years, 12 months