### 1. mysql install
- install address:https://dev.mysql.com/downloads/file/?id=511553
- username and password example:
> - username:root
> - password:123456
- mysql statement init
```myql
create database jbpm;
DROP TABLE IF EXISTS `kpi_role`;
CREATE TABLE `kpi_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`rolename` varchar(255) NOT NULL,
`status` int(11) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=6 DEFAULT CHARSET=utf8;
/*Data for the table `kpi_role` */
insert into `kpi_role`(`id`,`rolename`,`status`) values
(1,'Administrators',1),
(2,'PM',1),
(3,'SVP',1),
(4,'EVP',1),
(5,'Admin',1);
/*Table structure for table `kpi_user` */
DROP TABLE IF EXISTS `kpi_user`;
CREATE TABLE `kpi_user` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`username` varchar(255) NOT NULL,
`password` varchar(255) NOT NULL,
`age` int(11) DEFAULT NULL,
`status` int(11) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8;
/*Data for the table `kpi_user` */
insert into `kpi_user`(`id`,`username`,`password`,`age`,`status`) values
(1,'Nero','$2a$10$6NQ7ZWOGHT.W7JhlIa6hQOpABmGlBW7Essr5m78Pu.S3Gav7rha/K',23,1),
(2,'JOJO','$2a$10$6NQ7ZWOGHT.W7JhlIa6hQOpABmGlBW7Essr5m78Pu.S3Gav7rha/K',17,1),
(3,'Test','$2a$10$6NQ7ZWOGHT.W7JhlIa6hQOpABmGlBW7Essr5m78Pu.S3Gav7rha/K',99,1),
(4,'Administrator','$2a$10$6NQ7ZWOGHT.W7JhlIa6hQOpABmGlBW7Essr5m78Pu.S3Gav7rha/K',100,1);
/*Table structure for table `kpi_user_role` */
DROP TABLE IF EXISTS `kpi_user_role`;
CREATE TABLE `kpi_user_role` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`uid` int(11) NOT NULL,
`rid` int(11) NOT NULL,
PRIMARY KEY (`id`),
KEY `uid` (`uid`),
KEY `rid` (`rid`),
CONSTRAINT `kpi_user_role_ibfk_2` FOREIGN KEY (`rid`) REFERENCES `kpi_role` (`id`),
CONSTRAINT `kpi_user_role_ibfk_1` FOREIGN KEY (`uid`) REFERENCES `kpi_user` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8;
/*Data for the table `kpi_user_role` */
insert into `kpi_user_role`(`id`,`uid`,`rid`) values
(1,1,1),
(2,2,3),
(3,3,4),
(4,1,2),
(5,1,3),
(6,2,4),
(7,2,1),
(8,1,5),
(9,2,5),
(10,3,5),
(11,4,1);
- ```
### 2. start mysql server:
### 3. run spring boot application, see Application.java
use user.properties login
### 4. visit follow url:
- case 0: validate jpa query:http://localhost:8080/spring/kpi/getUserByUsername/Nero
- case 1: http://localhost:8080/spring/kpi/error
- case 2:http://localhost:8080/spring/kpi/index
// Test 用户先登录,且startProcess,后Nero再登录,进行 getTask
- case 3:http://localhost:8080/spring/login?username=Test&password=123456
- case 4:http://localhost:8080/spring/kpi/startProcess?userId=Test
- case 5: http://localhost:8080/spring/login?username=Nero&password=123456
- case 6:http://localhost:8080/spring/kpi/getTask
note:in process UserTask_1 is executed by PM role, UserTask_2 is executed by AM role,
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
流程引擎jBPM demo及Spring Boot示例 (271个子文件)
0281c31e68f4bcc94ba379c7a8b5d7d244c286 191B
0834f2d607afe55e6104d8aa2cdfffb713f688 263B
0b8635858dc7ad44b93df54b762707ce49eefc 158B
60084b985e046cc4ae0e411e86a551b86a54aa 267B
7acea53eb091cf5b30518802c3073f544adeed 214B
bdec2d71b6a5ce4ae49efc37516809c50e4d5e 160B
sample.bpmn 10KB
sample.bpmn 10KB
sample.bpmn 10KB
sample.bpmn 10KB
sample.bpmn2 13KB
sample.bpmn2 13KB
user2.bpmn2 13KB
kbase.cache 5KB
ProcessJPATest.class 7KB
UserTaskController.class 6KB
Call_Kjar_Test_01.class 5KB
ProcessTest.class 5KB
Call_Kjar_Test_02.class 3KB
DeployController.class 3KB
ProcessInstanceController.class 3KB
ProcessDefController.class 3KB
Application.class 2KB
SpringSecurityIdentityProvider.class 2KB
MyWorkItemHandler.class 1KB
ApplicationTests.class 283B
mvnw.cmd 5KB
config 317B
description 73B
.DS_Store 6KB
exclude 240B
f5e42a060b6483fa49ee03d6aea4213c56f96e 192B
.gitignore 268B
.gitignore 176B
.gitignore 47B
.gitignore 47B
.gitignore 47B
.gitignore 47B
.gitignore 47B
.gitignore 47B
HEAD 204B
HEAD 204B
HEAD 32B
HEAD 23B
pack-f52ed01f210977f4dcef73c25489de44eabd366b.idx 10KB
jbpm-kjar-deploy-01.iml 746B
jbpm-kjar-example.iml 336B
jbpm-examples.iml 336B
index 34KB
kmodule.info 121B
spring-boot-jbpm-0.0.1-SNAPSHOT.jar 50.82MB
jbpm-kjar-deploy-01-1.0-SNAPSHOT.jar 7KB
jbpm-persistence-example-1.0-SNAPSHOT.jar 5KB
jbpm-base-example-1.0-SNAPSHOT.jar 4KB
jbpm-base-example-1.0-SNAPSHOT-sources.jar 3KB
jbpm-kjar-main-1.0-SNAPSHOT.jar 2KB
ProcessJPATest.java 6KB
UserTaskController.java 4KB
DefaultWebSecurityConfig.java 3KB
TomcatConfig.java 3KB
Call_Kjar_Test_01.java 3KB
User.java 3KB
JbpmConfig.java 3KB
UserController.java 2KB
ProcessTest.java 2KB
DeployController.java 2KB
ProcessInstanceController.java 2KB
ProcessDefController.java 2KB
Application.java 2KB
SpringSecurityIdentityProvider.java 1KB
Role.java 1003B
BrokenWorkItemHandler.java 890B
UserRole.java 724B
UserService.java 692B
MyWorkItemHandler.java 628B
TestController.java 602B
ApplicationTests.java 527B
SpringBootJNDIApplication.java 520B
UserRepository.java 407B
SpringBootJackrabbitApplicationTests.java 369B
UserRoleRepository.java 275B
RoleRepository.java 262B
application-debug.log 74KB
inputFiles.lst 583B
createdFiles.lst 283B
inputFiles.lst 131B
inputFiles.lst 126B
inputFiles.lst 94B
inputFiles.lst 86B
inputFiles.lst 78B
createdFiles.lst 28B
createdFiles.lst 21B
createdFiles.lst 18B
createdFiles.lst 0B
createdFiles.lst 0B
inputFiles.lst 0B
inputFiles.lst 0B
createdFiles.lst 0B
createdFiles.lst 0B
inputFiles.lst 0B
共 271 条
- 1
- 2
- 3
资源评论
bboyzqh
- 粉丝: 8083
- 资源: 23
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功