|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (8)
View Page History...
For our sample installation, the required configuration is:
* a working Apache Tomcat installation. Apache Tomcat can be downloaded at : [http://tomcat.apache.org/],
* a working Apache Tomcat installation. Apache Tomcat can be downloaded at : [http://tomcat.apache.org/],
* Flowable distribution whose the version is the same as the Flowable engine embedded into Petals SE Flowable. This version can be downloaded at : [http://www.flowable.org/downloads.html].
* a Petals container where the Petals SE Flowable is running,
* the Flowable's REST API is enabled on the Petals SE Flowable.
* the Flowable's REST API is enabled on the Petals SE Flowable.
And download the Flowable's distribution whose the version is the same as the Flowable engine embedded into Petals SE Flowable. This version can be downloaded at : [http://www.flowable.org/downloads.html].
{note}
Petals SE Flowable must be configured with a database reachable by external clients. So, using an in-memory or embedded database can be troubling.
{note}
{note}
Petals SE Flowable must be configured with a database reachable by external clients. So, using an in-memory or embedded database can be troubling.
{note}
h3. Installation
h4. Connection between API REST and Flowable UI
Flowable UI Admin requires Flowable UI IDM for its identity management that's why it is needed to deploy both webapplications.
# Go to the Flowable directory previously downloaded, then go inside the "wars" subdirectory.
# Copy "flowable-admin.war" and "flowable-idm.war" files in "/var/lib/tomcatX/webapps" where X is the version of your Apache Tomcat install.
# Go to "/var/lib/tomcatX/lib/".
# In this directory, create a file named "flowable-ui-app.properties". Edit this file copying the text which is available at this address : [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-admin/src/main/resources/META-INF/flowable-ui-app/flowable-ui-app.properties].
# Edit the following properties:
#* rest.process.app.host: DEFAULT_ENGINE_REST_API_ADDRESS (0.0.0.0 by default)
#* rest.process.app.port: DEFAULT_ENGINE_REST_API_PORT (8089 by default)
#* rest.process.app.contextroot: flowable-rest-api
#* rest.process.app.restroot: /
#* rest.process.app.user: api-user
#* rest.process.app.password: user-api-password
#* idm.admin.user: kermit
#* idm.admin.password: kermit
# Copy "flowable-admin.war" and "flowable-idm.war" files in "/var/lib/tomcatX/webapps" where X is the version of your Apache Tomcat install.
# Go to "/var/lib/tomcatX/lib/".
# In this directory, create a file named "flowable-ui-app.properties". Edit this file copying the text which is available at this address : [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-admin/src/main/resources/META-INF/flowable-ui-app/flowable-ui-app.properties].
# Edit the following properties:
#* rest.process.app.host: DEFAULT_ENGINE_REST_API_ADDRESS (0.0.0.0 by default)
#* rest.process.app.port: DEFAULT_ENGINE_REST_API_PORT (8089 by default)
#* rest.process.app.contextroot: flowable-rest-api
#* rest.process.app.restroot: /
#* rest.process.app.user: api-user
#* rest.process.app.password: user-api-password
#* idm.admin.user: kermit
#* idm.admin.password: kermit
Configuration of Flowable UIs is defined in a properties file '{{flowable-ui-app.properties}}' located in Tomcat classpath ({{$TOMCAT_HOME.lib}} or {{/var/lib/tomcatX/lib/}} according to your Tomcat's installation). Create it with the following content (or from [https://github.com/flowable/flowable-engine/blob/master/modules/flowable-ui-admin/src/main/resources/META-INF/flowable-ui-app/flowable-ui-app.properties]):
{code}
datasource.driver=org.h2.Driver
#datasource.url=jdbc:h2:tcp://localhost/flowableadmin
datasource.url=jdbc:h2:mem:flowable;DB_CLOSE_DELAY=-1
{code}
datasource.driver=org.h2.Driver
#datasource.url=jdbc:h2:tcp://localhost/flowableadmin
datasource.url=jdbc:h2:mem:flowable;DB_CLOSE_DELAY=-1
#datasource.driver=com.mysql.jdbc.Driver
#datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8
#datasource.driver=org.postgresql.Driver
#datasource.url=jdbc:postgresql://localhost:5432/flowableadmin
#datasource.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
#datasource.url=jdbc:sqlserver://localhost:1433;databaseName=flowableadmin
#datasource.driver=oracle.jdbc.driver.OracleDriver
#datasource.url=jdbc:oracle:thin:@localhost:1521:FLOWABLEADMIN
#datasource.driver=com.ibm.db2.jcc.DB2Driver
#datasource.url=jdbc:db2://localhost:50000/flowableadmin
datasource.username=sa
datasource.password=
#
# Default REST endpoint configs
#
# Process engine
rest.process.app.name=Flowable Process Engine app
rest.process.app.description=Flowable Process Engine REST config
rest.process.app.host=0.0.0.0
rest.process.app.port=8089
rest.process.app.contextroot=flowable-rest-api
rest.process.app.restroot=/
rest.process.app.user=rest-api-user
rest.process.app.password=user-api-rest-password
idm.app.url=http://localhost:8080/flowable-idm
idm.admin.user=kermit
idm.admin.password=kermit
{code}
First, starts to install the Flowable UI IDM deploying the WAR file '{{flowable-idm.war}}' available in the Flowable's distribution archive with the Tomcat manager ([http://localhost:8080/manager]). Check this installation going to [http://localhost:8080/flowable-idm] and login with a user having an admin role. You should be able to manage users, groups and privileges.
Next, install the Flowable UI Admin deploying the WAR file '{{flowable-admin.war}}' available in the Flowable's distribution archive with the Tomcat manager ([http://localhost:8080/manager]).
#datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8
#datasource.driver=org.postgresql.Driver
#datasource.url=jdbc:postgresql://localhost:5432/flowableadmin
#datasource.driver=com.microsoft.sqlserver.jdbc.SQLServerDriver
#datasource.url=jdbc:sqlserver://localhost:1433;databaseName=flowableadmin
#datasource.driver=oracle.jdbc.driver.OracleDriver
#datasource.url=jdbc:oracle:thin:@localhost:1521:FLOWABLEADMIN
#datasource.driver=com.ibm.db2.jcc.DB2Driver
#datasource.url=jdbc:db2://localhost:50000/flowableadmin
datasource.username=sa
datasource.password=
#
# Default REST endpoint configs
#
# Process engine
rest.process.app.name=Flowable Process Engine app
rest.process.app.description=Flowable Process Engine REST config
rest.process.app.host=0.0.0.0
rest.process.app.port=8089
rest.process.app.contextroot=flowable-rest-api
rest.process.app.restroot=/
rest.process.app.user=rest-api-user
rest.process.app.password=user-api-rest-password
idm.app.url=http://localhost:8080/flowable-idm
idm.admin.user=kermit
idm.admin.password=kermit
{code}
First, starts to install the Flowable UI IDM deploying the WAR file '{{flowable-idm.war}}' available in the Flowable's distribution archive with the Tomcat manager ([http://localhost:8080/manager]). Check this installation going to [http://localhost:8080/flowable-idm] and login with a user having an admin role. You should be able to manage users, groups and privileges.
Next, install the Flowable UI Admin deploying the WAR file '{{flowable-admin.war}}' available in the Flowable's distribution archive with the Tomcat manager ([http://localhost:8080/manager]).
h4. Connection between database and Flowable UI
Several types of database work with Flowable UI:
Several types of database work with Flowable UI:
...