Giter Site home page Giter Site logo

juststarnew / activiti7-workflow Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wwdui/activiti7-workflow

0.0 1.0 0.0 7.75 MB

基于Activiti7开发的工作流引擎,使用springboot+Activiti7+myBatis

Java 34.85% JavaScript 54.64% Less 5.28% SCSS 5.23%

activiti7-workflow's Introduction

Acticiti7工作流引擎

项目介绍

查看本课程配套视频教程请,点这里

基于Acticiti7的Web工作流引擎,完整开源。

前端基于layuimini,在github找到项目相关介绍

主要特性

  • 完整的流程部署、创建实例、任务流转
  • 使用Acticiti7新版特性
  • 融合BPMN-JS作为流程绘制工具
  • 整合SpringSecurity安全框架

启动项目流程

1、windows平台获取项目

方案一:(使用GIT命令)

  • 下载GIT并安装
  • 新建本地文件夹
  • 选中文件夹右键,输入命令,文件夹变成Git仓库 git init
  • 复制git项目地址 git clone https://github.com/wwdui/activiti7-workflow.git
  • 输入github账号密码即可下载 Image text

方案二:(使用IDEA)

  • 下载GIT并安装
  • 打开IDEA,【File】->【Settings】->【Version Control】->【Path to Git executable】设置为安装后的git.exe路径
  • 创建IDEA项目,【File】->【New】->【Project from Version Control】->【Git】设置URLhttps://github.com/wwdui/activiti7-workflow.git Image text

2、修改本地Maven为阿里云

  • 打开IDEA,【File】->【Open】找到下载的项目中pom.xml,选择【Open as Project】
  • 【File】->【Settings】->【Build,Execution,Deploymen】->【Maven】,右侧User sttings file查看“settings.xml”位置
  • 打开settings.xml,找到<mirrors>标签,添加下面语句:
<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里maven仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>
  • 保存后重新打开settings.xml确定保存成功

3、修改YML配置文件数据库连接

没有安装过数据库的同学也不要紧张,下一章课程会带领大家安装与配置数据库

  • 打开项目文件src\main\resources\application.yml
  • datasource节点配置username、password、url为自己的数据库配置信息,本项目默认使用MySQL数据库

4、执行user.sql创建用户表并修复Activiti7官方Bug

  • 注意:先运行一次项目,Activiti会自动初始化数据库需要的表,然后再执行下面的sql
  • 使用Navicat等工具执行项目根目录下user.sql

5、运行项目

 测试账号:bajie
 密码:1
 测试账号:wukong
 密码:1
  • 点击IDEA右上方绿色箭头Run项目(或按Shift+F10运行项目)
  • 打开浏览器输入地址localhost:8080/layuimini/page/login-1.html

效果预览

总体预览

Image text

Image text

使用说明

动态表单配置原则(课程里有详细讲解)

控件命名约束:FormProperty_0ueitp2-_!类型-_!名称-_!默认值-_!是否参数
ID:自行标号同一流程定义无重复
类型:string、long、cUser(cUser为自定义类型读取用户列表)
默认值:无、字符、FormProperty_开头定义过的控件ID
是否参数:f为不是参数,s是字符,t是时间(不需要int,因为这里int等价于string)
例子:FormProperty_0lovri0-_!string-_!姓名-_!请输入姓名-_!f
FormProperty_1iu6onu-_!long-_!年龄-_!请输入年龄-_!s
FormProperty_2rd4dtv-_!cUser-_!执行人-_!无-_!s
注意:表单Key必须要任务编号一致
(因为参数需要任务key,但是无法获取,只能获取表单key“task.getFormKey()”当做任务key)

activiti7-workflow's People

Contributors

wangjian1984 avatar

Watchers

 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.