Giter Site home page Giter Site logo

activiti-demo's Introduction

一个简单的使用Activiti实现的请假流程项目

功能

  • 查看流程图
  • 查看流程处理批注
  • 驳回

启动

  1. git clone 项目
  2. 创建数据库(创建脚本在下面)
  3. 启动项目(这一步会创建表)
  4. 执行下面初始化sql语句
  5. 重启项目, 使用员工角色登录系统
  6. 创建请假流程并提交申请
  7. 换成部门经理登录, 查看我的任务处理任务
  8. 换成总经理登录, 查看我的任务处理任务
  9. 员工重新登录, 查看请假流程的处理结果以及批注信息

执行下面sql创建数据库

create database `activiti-demo` CHARACTER SET 'utf8';

执行下面sql初始化用户关系

--INSERT INTO `activiti-demo`.`user`(`id`, `in_time`, `password`, `rank`, `username`, `leader_id`) VALUES (1, '2019-04-22 19:14:12', '123123', '管理员', 'admin', NULL);
INSERT INTO `user` (`id`, `password`, `rank`, `username`, `leader_id`, `in_time`)
VALUES
	(1, '123123', '管理员', 'admin', NULL, '2019-04-22 14:19:23'),
	(3, '123123', '总经理', 'user1', NULL, '2019-04-22 14:19:23'),
	(2, '123123', '部门经理', 'user2', 3, '2019-04-22 14:19:23'),
	(5, '123123', '员工', 'user3', 2, '2019-04-22 14:21:38'),
	(6, '123123', '员工', 'user4', 2, '2019-04-22 14:22:56');

博客

关于 Activiti 的相关博客可以查看 activiti学习笔记

贡献

本项目现在只内置了一个请假流程的实现,如果你对流程控制感兴趣,或者正在学习,欢迎以本项目为例开发其它功能的流程,然后pr到本项目

activiti-demo's People

Contributors

atjiu avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.