工作流就是面向流程控制的引擎 一般公司是用: Activity 比较适合mybatis风格的 从JBPM4发展来的 会往数据库插入23张表 JBPM 基于JPA规范 它和hibernate是配套使用的 Activity工作流调用过程: 1.在pom.xml在添加依赖 <groupId>org.activiti</groupId> <artifactId>activiti-engine</artifactId> <version>5.15.1</version> <!--activiti 与Spring 集成--> <groupId>org.activiti</groupId> <artifactId>activiti-spring</artifactId> <version>5.15.1</version>
2.在spring-cfg.xml里面配置 <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="dataSource" ref="dataSource"/> <property name="transactionManager" ref="transactionManager" /> <property name="databaseSchemaUpdate" value="true" /> <property name="jobExecutorActivate" value="false" /> <property name="activityFontName" value="宋体"/> <property name="labelFontName" value="宋体"/> <property name="deploymentResources"> <!--<value>classpath*:workflow/*.bpmn</value>--> <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> <property name="processEngineConfiguration" ref="processEngineConfiguration" /> <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService" /> <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService" /> <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService" /> <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService" /> <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService" /> <bean id="IdentityService" factory-bean="processEngine" factory-method="getIdentityService" />
3.运行程序 自动往数据库里插入了23张表  4.在IDEA上装 actiBPM 图形化设计界面 可用于设计流程
按IDEA左上角 File->Settings->Plugins 在搜索框里输入actiBPM 然后会显示 No plugins found.Search in repositories 点击篮字 点击Install 等待安装插件成功 整合完毕 O(∩_∩)O
|