1. 從官網下載 flowable-6.5.0 : https://flowable.com/open-source/downloads/
下載完,解壓後,打開目錄 wars
2.找個乾淨的 tomcat8
把 wars 文件目錄裏面的
flowable-admin.war flowable-idm.war flowable-modeler.war flowable-rest.war flowable-task.war
共 5 個 war包放到tomact的 webapps 目錄
3. 然後找到 tomcat / bin / startup.bat 啓動 tomcat
會等待一段時間,所有war包都解壓後
4.找到每個項目中的
比如:\webapps\flowable-admin\WEB-INF\classes application-dev.properties 這樣的配置文件
修改:改成自己的數據庫鏈接地址,數據庫名flowable 自己創建,從flowable-6.5.0.zip裏面database下面的creat/all 下的sql 腳本執行去建表 86張表
spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8 spring.datasource.username=root spring.datasource.password=root flowable.admin.app.server-config.process.port=9999 flowable.admin.app.server-config.cmmn.port=9999 flowable.admin.app.server-config.app.port=9999 flowable.admin.app.server-config.dmn.port=9999 flowable.admin.app.server-config.form.port=9999 flowable.admin.app.server-config.content.port=9999
修改\webapps\flowable-admin\WEB-INF\classes flowable-default.properties, 主要就是修改數據庫鏈接上,改成mysql的. java 框架大全 :www.1b23.com
server.port=9988 server.servlet.context-path=/flowable-admin management.endpoints.jmx.unique-names=true # This is needed to force use of JDK proxies instead of using CGLIB spring.aop.proxy-target-class=false spring.aop.auto=false spring.application.name=flowable-ui-admin spring.liquibase.enabled=false spring.servlet.multipart.max-file-size=10MB spring.banner.location=classpath:/org/flowable/spring/boot/flowable-banner.txt # The default domain for generating ObjectNames must be specified. Otherwise when multiple Spring Boot applications start in the same servlet container # all would be created with the same name (com.zaxxer.hikari:name=dataSource,type=HikariDataSource) for example spring.jmx.default-domain=${spring.application.name} # Expose all actuator endpoints to the web # They are exposed, but only authenticated users can see /info and /health abd users with access-admin can see the others management.endpoints.web.exposure.include=* # Full health details should only be displayed when a user is authorized management.endpoint.health.show-details=when_authorized # Only users with role access-admin can access full health details management.endpoint.health.roles=access-admin # Spring prefixes the roles with ROLE_. However, Flowable does not have that concept yet, so we need to override that with an empty string flowable.common.app.role-prefix= # H2 example (default) #spring.datasource.driver-class-name=org.h2.Driver #spring.datasource.url=jdbc:h2:tcp://localhost/flowableadmin #spring.datasource.url=jdbc:h2:~/flowable-db/db;AUTO_SERVER=TRUE;AUTO_SERVER_PORT=9091;DB_CLOSE_DELAY=-1 spring.datasource.driver-class-name=com.mysql.jdbc.Driver spring.datasource.url=jdbc:mysql://127.0.0.1:3306/flowable?characterEncoding=UTF-8 #spring.datasource.driver-class-name=org.postgresql.Driver #spring.datasource.url=jdbc:postgresql://localhost:5432/flowableadmin #spring.datasource.driver-class-name=com.microsoft.sqlserver.jdbc.SQLServerDriver #spring.datasource.url=jdbc:sqlserver://localhost:1433;databaseName=flowableadmin #spring.datasource.driver-class-name=oracle.jdbc.driver.OracleDriver #spring.datasource.url=jdbc:oracle:thin:@localhost:1521:FLOWABLEADMIN #spring.datasource.driver-class-name=com.ibm.db2.jcc.DB2Driver #spring.datasource.url=jdbc:db2://localhost:50000/flowableadmin spring.datasource.username=root spring.datasource.password=root
5. 幾個項目的都修改完,關閉之前運行的tomcat ,重新啓動
都正常啓動後,需要時間久點
訪問 http://127.0.0.1:8080/flowable-admin 用戶名 admin 密碼 text
訪問 http://127.0.0.1:8080/flowable-idm 用戶名 admin 密碼 text
訪問 http://127.0.0.1:8080/flowable-modeler 用戶名 admin 密碼 text