Activiti6 Series (2) - compiled and run


Foreword

Activiti6.0 the official website has been unable to download, you need to download on Github.
Download: https://github.com/Activiti/Activiti/releases/download/activiti-6.0.0/activiti-6.0.0.zip
If for reasons speed download fails, you can go online to download a copy of Baidu.

PS:
1), we use to compile link command mode Git clone down from Github, due to the speed limit and many other reasons, there is provided a clever way to tell friends to download: https://blog.csdn.net/github_37847975/article / the Details / 86,477,343
2), we have adopted aspects of the deployment run the downloaded compressed package of activiti6.0 war package fast direct experience on tomcat.


A, Activiti6 source compiler



1, clone down on GitHub


2, the branch switch to 6.0.0
view local current branch: git branch
view all branch: git branch -a
handover branch: git checkout activiti-6.0.0


3, execute the compiler command, pointing to his own maven configuration file.
mvn compile -Dmaven.test.skip = true -s /myapp/apache-maven-3.5.0/conf/settings.xml

Under the modules folder to store the java source files Activiti6.0 project for all modules


Two, Activiti6 deploy and run



1、找到Activiti6.0.zip中的三个war包
activiti-app.war
activiti-admin.war
activiti-rest.war


2、将三个war包拷贝到Tomcat下,运行后会自行解压为三个文件夹。
PS:这里注意,运行过后,最好将原有war包删除掉,以免后续修改配置重启时war包再次解压将原来的文件夹覆盖。


3、启动tomcat,访问http://127.0.0.1:8080/activiti-app
默认账号密码:admin test


三、总结

1)、研究Activiti一定要学会下载源码和编译源码,Activiti的设计、表结构、核心API的命名及作用,都在源码中毫无保留的体现出来,因此这是必须要做的一步;
2)、Activiti官方提供的war包可以直接在tomcat下运行,这三个war包分别表示流程设计器、管理端、rest接口,可以让使用者更直观的感受到流程引擎的魅力。


下一节,将会对部署在tomcat的Activiti进行一个简单的流程设计,来达到快速体验流程引擎的目的。


Guess you like

Origin www.cnblogs.com/fulongyuanjushi/p/11269879.html
Recommended