3.2. Configuring the application.properties file
After you create your business application, you can configure several components through the application.properties
file to customize your application.
Prerequisites
-
You have a
<business-application>.zip
file that you created using the business application website.
Procedure
-
Unzip the
<business-application>.zip
file and navigate to the<business-application>/<business-application>-service/src/main/resources
folder. -
Open the
application.properties
file in a text editor. Configure the host, port, and path for the REST endpoints, for example:
server.address=localhost server.port=8090 cxf.path=/rest
Configure the Decision Server (
kieserver
) so that it can be easily identified, for example:kieserver.serverId=<business-application>-service kieserver.serverName=<business-application>-service kieserver.location=http://localhost:8090/rest/server kieserver.controllers=http://localhost:8080/decision-central/rest/controller
The following table lists the Decision Server parameters that you can configure in your business application:
表3.1 kieserver parameters
Parameter Values Description kieserver.serverId
string
The ID used to identify the business application when connecting to the Decision Manager controller.
kieserver.serverName
string
The name used to identify the business application when connecting to the Decision Manager controller. Can be the same string used for the
kieserver.serverId
parameter.kieserver.location
URL
Used by other components that use the REST API to identify the location of this server. Do not use the location as defined by
server.address
andserver.port
.kieserver.controllers
URLs
A comma-separated list of controller URLs.
If you selected Business Automation when you created your business application, specify which of the following components that you want to start at runtime:
表3.2
kieserver
capabilities parametersParameter Values Description kieserver.drools.enabled
true, false
Enables or disables the Decision Manager component.
kieserver.dmn.enabled
true, false
Enables or disables the Decision Model and Notation (DMN) component.