Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: BXMSDOC-6775 Add productized reference implementation to BO Spring Boot doc #257

Merged
merged 11 commits into from
Dec 21, 2020
13 changes: 7 additions & 6 deletions _artifacts/document-attributes.adoc
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@

:REBUILT: Thursday, November 05, 2020
:REBUILT: Tuesday, December 22, 2020

:ENTERPRISE_VERSION: 7.10
:ENTERPRISE_VERSION_LONG: 7.10.0

:ENTERPRISE_VERSION: 7.9
:ENTERPRISE_VERSION_LONG: 7.9.1
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why would you do this for master? Or is this strictly temporary, to remove confusion in SME reviews?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I will manually fix this when I merge with the repo. I commented on this in the ba chat today.

:COMMUNITY_VERSION: 7.44
:COMMUNITY_VERSION_LONG: 7.44.0
:COMMUNITY_VERSION_FINAL: {COMMUNITY_VERSION_LONG}.Final
Expand All @@ -14,8 +15,8 @@

// Maven info, from https://mvnrepository.com (public repo) or https://repository.jboss.org/nexus/index.html#welcome (Nexus repo)
ifdef::DM,PAM[]
:MAVEN_ARTIFACT_VERSION: {COMMUNITY_VERSION_FINAL}-redhat-00003
:BOM_VERSION: {ENTERPRISE_VERSION_LONG}.redhat-00002
:MAVEN_ARTIFACT_VERSION: {COMMUNITY_VERSION_FINAL}-redhat-00005
:BOM_VERSION: {ENTERPRISE_VERSION_LONG}.redhat-00005
endif::[]
ifdef::DROOLS,JBPM,OP[]
:MAVEN_ARTIFACT_VERSION: {COMMUNITY_VERSION_FINAL}
Expand Down Expand Up @@ -155,7 +156,7 @@ endif::OP[]
:GETTING_STARTED_PROCESSES: Getting started with business processes
:GETTING_STARTED_PLANNER: Getting started with {PLANNER}
:CREATING_SPRING_BOOT_APPLICATIONS: Creating {PRODUCT} business applications with Spring Boot
:PLANNER_WITH_SPRING_BOOT: Using {PLANNER} with Spring Boot
:PLANNER_WITH_SPRING_BOOT: Creating a school timetable using {PLANNER} with Spring Boot

:DRL_RULES: Designing a decision service using DRL rules
:GUIDED_DECISION_TABLES: Designing a decision service using guided decision tables
Expand Down
7 changes: 4 additions & 3 deletions assemblies/assembly-business-optimizer-springboot.adoc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[id='assembly-business-optimizer-springboot']
= Using {PLANNER} with Spring Boot
= Creating a school timetable using {PLANNER} with Spring Boot
ifdef::context[:parent-context: {context}]
:context: business-optimizer-spring-boot

Expand Down Expand Up @@ -40,11 +40,12 @@ that deliver a near-optimal solution in a reasonable amount of time. What is con

* OpenJDK 8 or later is installed. Red Hat build of Open JDK is available from the https://access.redhat.com/jbossnetwork/restricted/listSoftware.html[Software Downloads] page in the Red Hat Customer Portal (login required).

* Apache Maven 3.2 or higher or Gradle 4 or higher is installed. Maven is available from the https://maven.apache.org/[Apache Maven Project] website. Gradle is avaialbe from the https://gradle.org/install[Gradle Build Tool] website.
* Apache Maven 3.2 or higher is installed. Maven is available from the https://maven.apache.org/[Apache Maven Project] website.

* An IDE, such as IntelliJ IDEA, VSCode, Eclipse, or NetBeans is available.

include::{enterprise-dir}/optimizer/intializr-proc.adoc[leveloffset=+1]
include::{enterprise-dir}/optimizer/spring-boot-ref-download-proc.adoc[leveloffset=+1]
//include::{enterprise-dir}/optimizer/intializr-proc.adoc[leveloffset=+1]
include::{enterprise-dir}/optimizer/business-optimizr-domain-objects-proc.adoc[leveloffset=+1]

include::{enterprise-dir}/optimizer/business-optimizr-define-contraints-proc.adoc[leveloffset=+1]
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
[id='spring-boot-ref-download-proc_{context}']

= Downloading and building the school timetable reference implementation

If you want to see a completed example of the school timetable project for {PLANNER} with Spring Boot product, download the starter application from the Red Hat Customer Portal.

.Procedure
. Navigate to the https://access.redhat.com/jbossnetwork/restricted/listSoftware.html[Software Downloads] page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:

* Product: {PRODUCT}
* Version: {PRODUCT_VERSION}
. Download *{PRODUCT} {PRODUCT_VERSION} Reference Implementations* (`{PRODUCT_FILE}-reference-implementation.zip`).
. Download *{PRODUCT} {PRODUCT_VERSION} Maven Repository* (`{PRODUCT_FILE}-maven-repository.zip`).
. Extract the `{PRODUCT_FILE}-maven-repository.zip` file.
. Copy the contents of the `{PRODUCT_FILE}-maven-repository/maven-repository` subdirectory into the `~/.m2/repository` directory.
. Extract the `{PRODUCT_FILE}-reference-implementation.zip` file. This archive contains reference implementation ZIP files.
. Extract the `{PRODUCT_FILE}-reference-implementation/{PRODUCT_INIT}-{PRODUCT_VERSION_LONG}-optaplanner-spring-boot-school-timetabling.zip` file.
. Navigate to the `optaplanner-spring-boot-school-{MAVEN_ARTIFACT_VERSION}` directory.
. Enter the following command to build the Spring Boot school timetabling project:
+
[source]
----
mvn clean install -DskipTests
----

. To build the Spring Boot school timetabling project, enter the following command:
+
[source]
----
mvn spring-boot:run -DskipTests
----

. To view the project, enter the following URL in a web browser:
+
[source]
----
http://localhost:8080/
----