工作流activti使用简单样例
来源:互联网 发布:金华比奇网络充值诈骗 编辑:程序博客网 时间:2024/05/23 01:57
绘制流程图:
为idea下载 bpmn插件:
绘制流程图:
数据库配置:
1.新建activiti.cfg.xml文件,mysql配置如下:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd"> <bean id="processEngineConfiguration" class="org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration"> <!--为true时如果表未建会自动建立--> <property name="databaseSchemaUpdate" value="false" /> <property name="jdbcUrl" value="jdbc:mysql://127.0.0.1:3306/actviti_test?createDatabaseIfNotExist=true&useSSL=false" /> <property name="jdbcDriver" value="com.mysql.jdbc.Driver" /> <property name="jdbcUsername" value="root" /> <property name="jdbcPassword" value="123" /> </bean></beans>
代码:
package test;import org.activiti.engine.delegate.DelegateTask;import org.activiti.engine.delegate.TaskListener;import org.activiti.engine.identity.Group;/** * Created by yan on 17-3-24. */public class SimpleListener implements TaskListener { @Override public void notify(DelegateTask delegateTask) { //设置候选组 Group group = ActivtiSmilpeServer.identityService.createGroupQuery().groupId("1").singleResult(); delegateTask.addCandidateGroup(group.getId()); }}
1 0
- 工作流activti使用简单样例
- activti 5.1.16 工作流引擎学习帮助手册
- activti工作流表数据与用户自建表的数据的联合查询
- Plone的一个简单工作流使用示例
- 使用Spring来创建一个简单的工作流引擎
- 使用Spring来创建一个简单的工作流引擎
- 使用Spring来创建一个简单的工作流引擎
- 工作流的原理和JBPM的简单使用
- 使用Spring来创建一个简单的工作流引擎
- 使用Spring来创建一个简单的工作流引擎
- 使用Spring来创建一个简单的工作流引擎
- 使用Spring来创建一个简单的工作流引擎
- 清空Activti脚本
- 一个简单的工作流
- Struts简单工作流
- 简单工作流实现
- Activiti工作流简单入门
- Activiti工作流简单入门
- Rocketmq集群消费测试
- 历届试题 连号区间数 获取关键信息
- 目前常用的加密解密算法
- Largest Rectangle in Histogram & Maximal Rectangle
- keil MDK汇编关系运算符
- 工作流activti使用简单样例
- 分层第一章
- 坚持#第153天~感觉不错,有压力就解决!
- 实验一 数据库定义与操作语言——数据库管理系统原理与设计
- mysql锁机制
- Big Data
- 上传单个文件的代码
- 小猴子下落
- 设置console字体