We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 461a948 commit f16b676Copy full SHA for f16b676
JavaEE/activiti/activiti.md
@@ -0,0 +1,45 @@
1
+
2
+## 用户任务属性
3
4
+assignee 指定用户任务处理人
5
6
+candidateUsers 指定用户任务的候选人,多个用户分开
7
8
+candidateGroups 用来指定候选组,多个要用户分开
9
10
+dueDate 设置用户任务到期日,通常用变量代替而不是指定一个具体的到期日
11
12
+priority 用户任务的优先级,取值区间 [0,100]
13
14
+## 脚本任务属性
15
16
+scriptFormat 指定符合 JSR-223 规范脚本语言
17
18
+resultvariable 把脚本处理结果保存在一个变量中
19
20
21
22
23
+***
24
25
+## 添加用户
26
+```
27
+ @Test
28
+ public void testAddNewUser() {
29
+ User user = identityService.newUser("stackfing");
30
+ identityService.saveUser(user);
31
+ }
32
33
34
+## 添加用户组
35
36
37
38
+ Group group = identityService.newGroup("admin");
39
+ identityService.saveGroup(group);
40
41
42
+## 将用户添加到用户组
43
44
+identityService.createMembership("stackfing", "admin");
45
0 commit comments