Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
workflow
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
2
议题
2
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
黄夏豪
workflow
Commits
8220af95
提交
8220af95
authored
4月 22, 2021
作者:
黄夏豪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[流程模块] 修改了回调函数时会发生类型错误的Bug
上级
f0d4f878
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
29 行增加
和
20 行删除
+29
-20
WorkflowCoreApplication.java
...n/java/com/tykj/workflowcore/WorkflowCoreApplication.java
+2
-0
Parameter.java
...main/java/com/tykj/workflowcore/api/entity/Parameter.java
+1
-1
ApiService.java
...in/java/com/tykj/workflowcore/api/service/ApiService.java
+3
-2
ApiException.java
.../java/com/tykj/workflowcore/base/result/ApiException.java
+1
-1
SearchTableInfoVo.java
...workflowcore/model_layer/entity/vo/SearchTableInfoVo.java
+1
-1
ModelImpl.java
...tykj/workflowcore/model_layer/service/impl/ModelImpl.java
+1
-1
FlowsInfoController.java
...wcore/workflow_editer/controller/FlowsInfoController.java
+4
-4
VariableStorage.java
.../workflowcore/workflow_editer/entity/VariableStorage.java
+9
-6
ParameterVo.java
...j/workflowcore/workflow_editer/entity/vo/ParameterVo.java
+1
-1
VariableStorageVo.java
...flowcore/workflow_editer/entity/vo/VariableStorageVo.java
+4
-1
ProcessEndListener.java
...flowcore/workflow_editer/listener/ProcessEndListener.java
+0
-0
VariableStorageServiceImpl.java
...kflow_editer/service/impl/VariableStorageServiceImpl.java
+2
-2
没有找到文件。
src/main/java/com/tykj/workflowcore/WorkflowCoreApplication.java
浏览文件 @
8220af95
...
...
@@ -13,6 +13,8 @@ import org.springframework.transaction.annotation.EnableTransactionManagement;
public
class
WorkflowCoreApplication
{
public
static
void
main
(
String
[]
args
)
{
SpringApplication
.
run
(
WorkflowCoreApplication
.
class
,
args
);
System
.
out
.
println
(
"█▀▀▀▀▀▀▀█▀▀▀█▀▀▀█▀▀▀█▀█▀▀▀▀▀▀▀█\n"
+
...
...
src/main/java/com/tykj/workflowcore/api/entity/Parameter.java
浏览文件 @
8220af95
...
...
@@ -23,6 +23,6 @@ public class Parameter {
* key为字段名 value为字段值
*/
@ApiModelProperty
(
value
=
"实例对象"
)
private
Map
<
String
,
Object
>
instance
;
private
Object
instance
;
}
src/main/java/com/tykj/workflowcore/api/service/ApiService.java
浏览文件 @
8220af95
...
...
@@ -161,8 +161,8 @@ public class ApiService {
/**
* 把map转成指定类型的JavaBean对象
*/
public
static
<
T
>
T
toBean
(
Map
<
String
,
Object
>
map
,
Class
<
T
>
clazz
)
{
return
JSON
.
parseObject
(
JSON
.
toJSONString
(
map
),
clazz
);
public
static
<
T
>
T
toBean
(
Object
o
,
Class
<
T
>
clazz
)
{
return
JSON
.
parseObject
(
JSON
.
toJSONString
(
o
),
clazz
);
}
}
\ No newline at end of file
src/main/java/com/tykj/workflowcore/base/result/ApiException.java
浏览文件 @
8220af95
...
...
@@ -16,7 +16,7 @@ public class ApiException extends RuntimeException {
}
public
ApiException
(
String
message
)
{
this
.
responseEntity
=
ResponseEntity
.
status
(
500
).
body
(
new
ResultObj
(
message
));
this
.
responseEntity
=
ResponseEntity
.
status
(
500
).
body
(
new
ResultObj
(
""
,
message
));
}
public
ApiException
(
Object
data
,
String
message
)
{
...
...
src/main/java/com/tykj/workflowcore/model_layer/entity/vo/SearchTableInfoVo.java
浏览文件 @
8220af95
...
...
@@ -25,5 +25,5 @@ public class SearchTableInfoVo extends JpaCustomPage {
private
String
modelTitle
;
private
List
<
Integer
>
modelType
;
private
Integer
[]
modelType
;
}
src/main/java/com/tykj/workflowcore/model_layer/service/impl/ModelImpl.java
浏览文件 @
8220af95
...
...
@@ -95,7 +95,7 @@ public class ModelImpl implements ModelService {
PredicateBuilder
<
TableInfo
>
and
=
Specifications
.
and
();
and
.
like
(
searchTableInfoVo
.
getModelName
()
!=
null
&&
StringUtils
.
isNotEmpty
(
searchTableInfoVo
.
getModelName
()),
"modelName"
,
"%"
+
searchTableInfoVo
.
getModelName
()
+
"%"
);
and
.
like
(
searchTableInfoVo
.
getModelTitle
()
!=
null
&&
StringUtils
.
isNotEmpty
(
searchTableInfoVo
.
getModelTitle
()),
"modelTitle"
,
"%"
+
searchTableInfoVo
.
getModelTitle
()
+
"%"
);
and
.
in
(
searchTableInfoVo
.
getModelType
()
!=
null
&&
searchTableInfoVo
.
getModelType
().
size
()
>
0
,
"modelType"
,
searchTableInfoVo
.
getModelType
());
and
.
in
(
searchTableInfoVo
.
getModelType
()
!=
null
&&
searchTableInfoVo
.
getModelType
().
length
>
0
,
"modelType"
,
searchTableInfoVo
.
getModelType
());
return
tableInfoDao
.
findAll
(
and
.
build
(),
searchTableInfoVo
.
getPageable
());
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/controller/FlowsInfoController.java
浏览文件 @
8220af95
...
...
@@ -97,26 +97,26 @@ public class FlowsInfoController {
}
@PostMapping
(
"/createFlow"
)
@Api
ModelProperty
(
"创建流程"
)
@Api
Operation
(
"创建流程"
)
public
ResponseEntity
createFlow
(
@RequestBody
FlowsInfoVo
flowsInfovo
){
return
ResultUtil
.
success
(
workFlowService
.
createFlow
(
flowsInfovo
.
toEntity
()),
"流程创建成功"
);
}
@PostMapping
(
"/saveVariableStorage"
)
@Api
ModelProperty
(
"保存函数调用配置"
)
@Api
Operation
(
"保存函数调用配置"
)
public
ResponseEntity
saveVariableStorage
(
@RequestBody
VariableStorageVo
variableStorageVo
){
VariableStorage
variableStorage
=
variableStorageService
.
saveVariableStorageService
(
variableStorageVo
.
toEntity
());
return
ResultUtil
.
success
(
variableStorage
,
"保存接口调用配置成功"
);
}
@PostMapping
(
"/searchVariableStorage"
)
@Api
ModelProperty
(
"查找函数调用配置"
)
@Api
Operation
(
"查找函数调用配置"
)
public
ResponseEntity
searchVariableStorage
(
@RequestBody
SearchVariableStorageVo
searchVariableStorageVo
){
return
ResultUtil
.
success
(
variableStorageService
.
searchVariableStoragePage
(
searchVariableStorageVo
),
"查询接口调用配置成功"
);
}
@GetMapping
(
"/searchVariableStorage"
)
@Api
ModelProperty
(
"根据ID查找函数调用配置"
)
@Api
Operation
(
"根据ID查找函数调用配置"
)
public
ResponseEntity
searchVariableStorageById
(
Integer
id
){
return
ResultUtil
.
success
(
variableStorageService
.
searchVariableById
(
id
),
"查询接口调用配置成功"
);
}
...
...
src/main/java/com/tykj/workflowcore/workflow_editer/entity/VariableStorage.java
浏览文件 @
8220af95
...
...
@@ -14,6 +14,7 @@ import lombok.Data;
import
lombok.NoArgsConstructor
;
import
javax.persistence.Entity
;
import
javax.persistence.Lob
;
import
java.util.List
;
/**
...
...
@@ -41,14 +42,16 @@ public class VariableStorage extends BaseEntity {
private
String
className
;
@ApiModelProperty
(
"调用方法"
)
private
String
method
;
private
String
name
;
@ApiModelProperty
(
"方法描述"
)
private
String
description
;
@Lob
@ApiModelProperty
(
"详情json"
)
private
String
param
eterInfo
;
private
String
param
s
;
@JsonGetter
public
List
<
ParameterVo
>
getParameterInfo
()
{
return
JSON
.
parseObject
(
parameterInfo
,
new
TypeReference
<
List
<
ParameterVo
>>(){});
public
List
<
ParameterVo
>
getParams
()
{
return
JSON
.
parseObject
(
params
,
new
TypeReference
<
List
<
ParameterVo
>>(){});
}
}
src/main/java/com/tykj/workflowcore/workflow_editer/entity/vo/ParameterVo.java
浏览文件 @
8220af95
...
...
@@ -24,6 +24,6 @@ public class ParameterVo {
private
String
name
;
private
List
<
ParameterVo
>
param
s
;
private
List
<
ParameterVo
>
field
s
;
}
src/main/java/com/tykj/workflowcore/workflow_editer/entity/vo/VariableStorageVo.java
浏览文件 @
8220af95
...
...
@@ -38,12 +38,15 @@ public class VariableStorageVo {
@ApiModelProperty
(
"调用方法名"
)
private
String
name
;
@ApiModelProperty
(
"方法描述"
)
private
String
description
;
private
List
<
ParameterVo
>
params
;
public
VariableStorage
toEntity
(){
VariableStorage
variableStorage
=
new
VariableStorage
();
BeanUtils
.
copyProperties
(
this
,
variableStorage
);
variableStorage
.
setParam
eterInfo
(
JSON
.
toJSONString
(
params
));
variableStorage
.
setParam
s
(
JSON
.
toJSONString
(
params
));
return
variableStorage
;
}
}
src/main/java/com/tykj/workflowcore/workflow_editer/listener/ProcessEndListener.java
浏览文件 @
8220af95
差异被折叠。
点击展开。
src/main/java/com/tykj/workflowcore/workflow_editer/service/impl/VariableStorageServiceImpl.java
浏览文件 @
8220af95
...
...
@@ -56,8 +56,8 @@ public class VariableStorageServiceImpl implements VariableStorageService {
PredicateBuilder
predicateBuilder
=
Specifications
.
and
();
if
(
searchVariableStorageVo
!=
null
){
predicateBuilder
.
eq
(
searchVariableStorageVo
.
getId
()!=
null
,
"id"
,
searchVariableStorageVo
.
getId
());
predicateBuilder
.
eq
(
StringUtils
.
isEmpty
(
searchVariableStorageVo
.
getFlowKey
()),
"flowKey"
,
searchVariableStorageVo
.
getFlowKey
());
predicateBuilder
.
eq
(
StringUtils
.
isEmpty
(
searchVariableStorageVo
.
getActivityId
()),
"activityId"
,
searchVariableStorageVo
.
getActivityId
());
predicateBuilder
.
eq
(
!
StringUtils
.
isEmpty
(
searchVariableStorageVo
.
getFlowKey
()),
"flowKey"
,
searchVariableStorageVo
.
getFlowKey
());
predicateBuilder
.
eq
(
!
StringUtils
.
isEmpty
(
searchVariableStorageVo
.
getActivityId
()),
"activityId"
,
searchVariableStorageVo
.
getActivityId
());
}
return
variableStorageMapper
.
findAll
(
predicateBuilder
.
build
(),
searchVariableStorageVo
.
getPageable
());
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论