流程设计是工作流的入口,开发者可以通过eclipse插件等来设计流程,但是用户并不会使用。所以可以在线设计的流程才是我们想要的,幸好activiti提供了在线设计功能,我们只需要把它集成到我们项目中就行了。
最终效果
image.png
集成Actviti
添加依赖
pom.xml
<?xml version="1.0" encoding="UTF-8"?>4.0.0org.springframework.boot spring-boot-starter-parent 2.1.1.RELEASEcom.walle activity-service 0.0.1-SNAPSHOTactivity-serviceDemo project for Spring Boot1.82.1.1Greenwich.RC2 5.22.0 org.springframework.boot spring-boot-starter-actuator org.springframework.boot spring-boot-starter-web org.mybatis.spring.boot mybatis-spring-boot-starter 1.3.2org.springframework.cloud spring-cloud-starter-netflix-eureka-client org.springframework.cloud spring-cloud-starter-openfeign org.springframework.cloud spring-cloud-starter-sleuth org.springframework.cloud spring-cloud-starter-zipkin mysql mysql-connector-java runtimeorg.springframework.boot spring-boot-starter-test testcom.alibaba druid-spring-boot-sta