...
Maven users will need to add the following dependency to their pom.xml
for this component:
Code Block |
---|
|
<dependency>
<groupId>org.apache.camel</groupId>
<artifactId>camel-optaplanner</artifactId>
<version>x.x.x</version><!-- use the same version as your Camel core version -->
</dependency>
|
URI format
Code Block |
---|
optaplanner:solverConfig[?options]
|
...
The solving will take as long as specified in the solverConfig
.
Code Block |
---|
|
<solver>
...
<termination>
<!-- Terminate after 10 seconds, unless it's not feasible by then yet -->
<terminationCompositionStyle>AND</terminationCompositionStyle>
<maximumSecondsSpend>10<<secondsSpentLimit>10</maximumSecondsSpend>secondsSpentLimit>
<scoreAttained><bestScoreLimit>-1hard/0soft</scoreAttained>bestScoreLimit>
</termination>
...
<solver>
|
...
Solve an planning problem that's on the ActiveMQ queue with OptaPlanner:
Code Block |
---|
from("activemq:My.Queue").
.to("optaplanner:/org/foo/barSolverConfig.xml");
|
Expose OptaPlanner as a REST service:
Code Block |
---|
from("cxfrs:bean:rsServer?bindingStyle=SimpleConsumer")
.to("optaplanner:/org/foo/barSolverConfig.xml");
|
Include Page |
---|
| Endpoint See Also |
---|
| Endpoint See Also |
---|
|