Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow-core
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow-core
Commits
7ca1f467
提交
7ca1f467
authored
3月 18, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[工作流模块]解决判断是否是最后一个节点的bug
上级
6d4c747a
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
27 行增加
和
10 行删除
+27
-10
FormPageController.java
...owcore/workflow_editer/controller/FormPageController.java
+0
-2
FlowsInfo.java
...m/tykj/workflowcore/workflow_editer/entity/FlowsInfo.java
+1
-0
FormPage.java
...om/tykj/workflowcore/workflow_editer/entity/FormPage.java
+5
-5
FormPageService.java
...workflowcore/workflow_editer/service/FormPageService.java
+2
-2
FormPageServiceImpl.java
...ore/workflow_editer/service/impl/FormPageServiceImpl.java
+1
-1
WorkFlowServiceImpl.java
...ore/workflow_editer/service/impl/WorkFlowServiceImpl.java
+18
-0
没有找到文件。
src/main/java/com/tykj/workflowcore/workflow_editer/controller/FormPageController.java
浏览文件 @
7ca1f467
...
@@ -32,8 +32,6 @@ public class FormPageController {
...
@@ -32,8 +32,6 @@ public class FormPageController {
@Autowired
@Autowired
private
FormPageService
formPageService
;
private
FormPageService
formPageService
;
// @Autowired
// private PageEntityService pageEntityService;
@ApiOperation
(
"保存页面"
)
@ApiOperation
(
"保存页面"
)
@PostMapping
(
"/savePage"
)
@PostMapping
(
"/savePage"
)
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/entity/FlowsInfo.java
浏览文件 @
7ca1f467
...
@@ -30,6 +30,7 @@ import javax.persistence.Entity;
...
@@ -30,6 +30,7 @@ import javax.persistence.Entity;
@Api
(
"流程表"
)
@Api
(
"流程表"
)
public
class
FlowsInfo
extends
BaseEntity
{
public
class
FlowsInfo
extends
BaseEntity
{
@ApiModelProperty
(
"发起人的Id"
)
@ApiModelProperty
(
"发起人的Id"
)
private
Integer
userId
;
private
Integer
userId
;
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/entity/FormPage.java
浏览文件 @
7ca1f467
...
@@ -52,11 +52,11 @@ public class FormPage extends BaseEntity {
...
@@ -52,11 +52,11 @@ public class FormPage extends BaseEntity {
@Lob
@Lob
private
String
css
;
private
String
css
;
@ApiModelProperty
(
"创建的时间"
)
//
@ApiModelProperty("创建的时间")
private
Date
createTime
;
//
private Date createTime;
//
@ApiModelProperty
(
"修改的时间"
)
//
@ApiModelProperty("修改的时间")
private
Date
updateTime
;
//
private Date updateTime;
@ApiModelProperty
(
"json描述文件"
)
@ApiModelProperty
(
"json描述文件"
)
private
String
descFile
;
private
String
descFile
;
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/service/FormPageService.java
浏览文件 @
7ca1f467
...
@@ -28,7 +28,7 @@ public interface FormPageService {
...
@@ -28,7 +28,7 @@ public interface FormPageService {
Integer
savePage
(
@RequestBody
InFormPageVo
inFormPageVo
);
Integer
savePage
(
@RequestBody
InFormPageVo
inFormPageVo
);
/**
/**
*
保存
页面
*
更新
页面
* @param formPage 页面实体
* @param formPage 页面实体
* @return 主键id
* @return 主键id
*/
*/
...
@@ -38,7 +38,7 @@ public interface FormPageService {
...
@@ -38,7 +38,7 @@ public interface FormPageService {
* @param id 页面id
* @param id 页面id
* @return 页面信息
* @return 页面信息
*/
*/
FormPage
getPage
(
@PathVariable
(
"id"
)
Integer
id
);
FormPage
getPage
(
Integer
id
);
/**
/**
* 根据页面id删除页面
* 根据页面id删除页面
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/FormPageServiceImpl.java
浏览文件 @
7ca1f467
...
@@ -50,7 +50,7 @@ public class FormPageServiceImpl implements FormPageService {
...
@@ -50,7 +50,7 @@ public class FormPageServiceImpl implements FormPageService {
}
}
@Override
@Override
public
FormPage
getPage
(
@PathVariable
(
"id"
)
Integer
id
)
{
public
FormPage
getPage
(
Integer
id
)
{
FormPage
formPage
=
formPageMapper
.
findById
(
id
).
get
();
FormPage
formPage
=
formPageMapper
.
findById
(
id
).
get
();
//时间排序
//时间排序
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/WorkFlowServiceImpl.java
浏览文件 @
7ca1f467
...
@@ -286,11 +286,29 @@ public class WorkFlowServiceImpl implements WorkFlowService {
...
@@ -286,11 +286,29 @@ public class WorkFlowServiceImpl implements WorkFlowService {
if
(
taskVo
.
getConditionalExpression
()
!=
null
)
{
if
(
taskVo
.
getConditionalExpression
()
!=
null
)
{
claimTask
(
task
.
getId
(),
userService
.
getCurrentUser
().
getId
());
claimTask
(
task
.
getId
(),
userService
.
getCurrentUser
().
getId
());
taskService
.
complete
(
task
.
getId
());
taskService
.
complete
(
task
.
getId
());
}
else
{
}
else
{
map
.
put
(
"handlingOpinion"
,
taskVo
.
getHandlingOpinion
());
map
.
put
(
"handlingOpinion"
,
taskVo
.
getHandlingOpinion
());
claimTask
(
task
.
getId
(),
userService
.
getCurrentUser
().
getId
());
claimTask
(
task
.
getId
(),
userService
.
getCurrentUser
().
getId
());
taskService
.
complete
(
task
.
getId
(),
map
);
taskService
.
complete
(
task
.
getId
(),
map
);
}
}
// 流程结束了
ProcessInstance
processInstance
=
runtimeService
.
createProcessInstanceQuery
().
processInstanceId
(
processInstanceId
).
singleResult
();
if
(
processInstance
==
null
){
//通过processInstanceId查询出flowKey
FlowsInfo
flowsInfo
=
flowsInfoMapper
.
findByProcessInstanceId
(
processInstanceId
);
//查询调用接口的配置
List
<
VariableStorage
>
variableStorageList
=
variableStorageService
.
searchVariableStorageList
(
new
SearchVariableStorageVo
(
flowsInfo
.
getFlowKey
()));
for
(
VariableStorage
variableStorage
:
variableStorageList
)
{
InvokeRequestVo
variableInfo
=
variableStorage
.
getInvokeRequest
();
//调用服务接口
getApiInvokeParam
(
variableInfo
);
}
}
//查询是否为最后一个节点
//查询是否为最后一个节点
// ExecutionEntity ee = (ExecutionEntity) processEngine.getRuntimeService().createExecutionQuery()
// ExecutionEntity ee = (ExecutionEntity) processEngine.getRuntimeService().createExecutionQuery()
// .executionId(task.getExecutionId()).singleResult();
// .executionId(task.getExecutionId()).singleResult();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论