Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzwf
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzwf
提交
3bfd3f66
提交
3bfd3f66
编写于
5月 21, 2020
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ehange
上级
4e9d884d
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
27 行增加
和
4 行删除
+27
-4
pom.xml
ibzwf-core/pom.xml
+1
-1
ProcessInstanceListener.java
...lab/core/extensions/listener/ProcessInstanceListener.java
+7
-0
WFCoreService.java
...ava/cn/ibizlab/core/extensions/service/WFCoreService.java
+17
-1
WFCoreResource.java
...n/java/cn/ibizlab/api/rest/extensions/WFCoreResource.java
+2
-2
未找到文件。
ibzwf-core/pom.xml
浏览文件 @
3bfd3f66
...
...
@@ -180,7 +180,7 @@
<verbose>
true
</verbose>
<logging>
debug
</logging>
<contexts>
!test
</contexts>
<diffExcludeObjects>
Index:.*,
table:IBZFILE,IBZUSER,IBZDATAAUDIT
</diffExcludeObjects>
<diffExcludeObjects>
Index:.*,
foreignKey:FK_RELATION_CHILD,FK_RELATION_PARENT,table:ibzpssystem,ibzfile,ibzuser,ibzdataaudit,act_de_databasechangelog,act_de_databasechangeloglock,act_de_model,act_de_model_history,act_de_model_relation,IBZPSSYSTEM,IBZFILE,IBZUSER,IBZDATAAUDIT,ACT_DE_DATABASECHANGELOG,ACT_DE_DATABASECHANGELOGLOCK,ACT_DE_MODEL,ACT_DE_MODEL_HISTORY,ACT_DE_MODEL_RELATION
</diffExcludeObjects>
</configuration>
<phase>
process-resources
</phase>
<goals>
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/extensions/listener/ProcessInstanceListener.java
浏览文件 @
3bfd3f66
...
...
@@ -151,6 +151,13 @@ public class ProcessInstanceListener implements FlowableEventListener {
event
.
getEntity
();
System
.
out
.
println
(
"流程异常结束"
);
}
if
(
eventType
==
FlowableEngineEventType
.
TASK_COMPLETED
){
TaskEntity
taskEntity
=
(
TaskEntity
)
event
.
getEntity
();
event
.
getEntity
();
System
.
out
.
println
(
"流程异常结束"
);
}
}
else
if
(
evt
instanceof
FlowableActivityEventImpl
)
{
...
...
ibzwf-core/src/main/java/cn/ibizlab/core/extensions/service/WFCoreService.java
浏览文件 @
3bfd3f66
...
...
@@ -330,14 +330,30 @@ public class WFCoreService
String
processInstanceBusinessKey
=
system
+
":"
+
entity
+
":k-"
+
businessKey
;
Map
<
String
,
Object
>
variables
=
new
LinkedHashMap
<>();
variables
.
put
(
"sequenceFlowId"
,
taskWay
.
getSequenceflowid
());
variables
.
put
(
"sequenceFlowName"
,
taskWay
.
getSequenceflowname
());
variables
.
put
(
"cloud-serviceid"
,
system
+
"-"
+
appname
);
Map
activedata
=
null
;
if
(
taskWay
.
get
(
"activedata"
)!=
null
&&
taskWay
.
get
(
"activedata"
)
instanceof
Map
)
{
activedata
=(
Map
)
taskWay
.
get
(
"activedata"
);
}
else
{
activedata
=
new
LinkedHashMap
();
}
Map
<
String
,
Object
>
transientVariables
=
new
LinkedHashMap
<>();
transientVariables
.
put
(
"activedata"
,
taskWay
.
get
(
"activedata"
)
);
transientVariables
.
put
(
"activedata"
,
activedata
);
transientVariables
.
put
(
"curuser"
,
getCurUser
());
//根据流程定义启动流程
Authentication
.
setAuthenticatedUserId
(
userId
);
String
wfprocdesc
=
""
;
if
(
activedata
.
get
(
"wfprocdesc"
)!=
null
)
wfprocdesc
=
activedata
.
get
(
"wfprocdesc"
).
toString
();
taskService
.
addComment
(
taskId
,
taskWay
.
getProcessinstanceid
(),
taskWay
.
getSequenceflowname
(),
wfprocdesc
);
taskService
.
complete
(
taskId
,
variables
,
transientVariables
);
WFProcessInstance
instance
=
new
WFProcessInstance
();
instance
.
setBusinesskey
(
processInstanceBusinessKey
);
...
...
ibzwf-provider/ibzwf-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/WFCoreResource.java
浏览文件 @
3bfd3f66
...
...
@@ -39,7 +39,7 @@ public class WFCoreResource
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
wfCoreService
.
getWFStep
(
system
,
appname
,
entity
));
}
@PreAuthorize
(
"hasPermission(#entity,'WFSTART',this.getEntity())"
)
//
@PreAuthorize("hasPermission(#entity,'WFSTART',this.getEntity())")
@ApiOperation
(
value
=
"wfstart"
,
tags
=
{
"WFProcessInstance"
},
notes
=
"启动工作流"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-app-{appname}/{entity}/{businessKey}/process-instances"
)
public
ResponseEntity
<
WFProcessInstance
>
wfstart
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"appname"
)
String
appname
,
...
...
@@ -65,7 +65,7 @@ public class WFCoreResource
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
wfCoreService
.
getTaskLink
(
system
,
appname
,
entity
,
businessKey
,
taskId
));
}
@PreAuthorize
(
"hasPermission(#entity,'WFSTART',this.getEntity())"
)
//
@PreAuthorize("hasPermission(#entity,'WFSTART',this.getEntity())")
@ApiOperation
(
value
=
"wfsubmit"
,
tags
=
{
"WFProcessInstance"
},
notes
=
"工作流执行步骤"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-app-{appname}/{entity}/{businessKey}/tasks/{taskId}"
)
public
ResponseEntity
<
WFProcessInstance
>
wfsubmit
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"appname"
)
String
appname
,
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录