1.下载路径
https://github.com/Activiti/Activiti/releases/download/activiti-6.0.0/activiti-6.0.0.zip
2.在同一台电脑中搭建以下环境
a、jdk版本是:1.8
b、Tomcat版本是:9,端口是:8080
c、postgre版本是:9.6,端口是:5432
d、在activiti-6.0.0/wars中,把activiti-admin.war、activiti-app.war、activiti-rest.war分别解压到Tomcat中webapps目录下的activiti-admin、activiti-app、activiti-rest目录
3.配置activiti-admin
a、在postgre中创建activiti_admin数据库
b、进入activiti-admin/WEB-INF/classes/META-INF/activiti-admin目录,修改activiti-admin.properties文件:
datasource.driver=org.postgresql.Driver
datasource.url=jdbc:postgresql://localhost:5432/activiti_admin
datasource.username=postgres
datasource.password=123456
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
rest.app.name=Activiti app
rest.app.description=Activiti app Rest config
rest.app.host=http://localhost
rest.app.port=8080
rest.app.contextroot=activiti-app
rest.app.restroot=api
rest.app.user=admin
rest.app.password=test
c、下载postgresql-42.2.5.jar文件到activiti-admin/WEB-INF/lib目录
d、访问路径:http://localhost:8080/activiti-admin
账号密码:admin/admin
5.配置activiti-app
a、在postgre中创建activiti_app数据库
b、进入activiti-app/WEB-INF/classes/META-INF/activiti-app目录,修改activiti-app.properties文件:
datasource.driver=org.postgresql.Driver
datasource.url=jdbc:postgresql:/localhost/:5432/activiti_app
datasource.username=postgres
datasource.password=123456
c、下载postgresql-42.2.5.jar文件到activiti-app/WEB-INF/lib目录
d、访问路径:http://localhost:8080/activiti-app
账号密码:admin/test
5.配置activiti-rest
a、把docs文件夹下的所有文件,剪切到activiti-rest目录下,修改activiti.json和activiti.yaml文件:
"host" : "localhost:8080"
b、进入activiti-rest/WEB-INF/classes目录,修改db.properties文件:
db=postgre
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://localhost:5432/activiti_app
jdbc.username=postgres
jdbc.password=123456
c、下载postgresql-42.2.5.jar文件到activiti-rest/WEB-INF/lib目录
d、访问路径:http://localhost:8080/activiti-rest
账号密码:admin/test