Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
8ebb75cd
Commit
8ebb75cd
authored
Sep 27, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改查询历史操作节点的历史执行角色组的方法
parent
8c78ce46
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
13 deletions
+35
-13
WorkflowExcuteServiceImpl.java
...ot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
+23
-11
WorkflowFeignService.java
.../boot/biz/common/workflow/feign/WorkflowFeignService.java
+12
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/service/impl/WorkflowExcuteServiceImpl.java
View file @
8ebb75cd
...
@@ -171,19 +171,31 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
...
@@ -171,19 +171,31 @@ public class WorkflowExcuteServiceImpl implements IWorkflowExcuteService {
}
}
return
newDate
+
result
;
return
newDate
+
result
;
}
}
/**
* 描述: 获取在流程启动时,直接完成的特定任务的执行角色信息。
/**
* 作用:用来判断当前登录用户在任务回退到启动并完成的哪一步任务的执行权限,以及获取当前登录用户所属角色能够处理的当前任务的列表数据
* 描述: 获取在流程启动时,直接完成的特定任务的执行角色信息。
* @param processInstanceId
* 作用:用来判断当前登录用户在任务回退到启动并完成的哪一步任务的执行权限,以及获取当前登录用户所属角色能够处理的当前任务的列表数据
* @return
*
*/
* @param processInstanceId
* @return
*/
public
String
getFristFlowDetail
(
String
processInstanceId
)
{
public
String
getFristFlowDetail
(
String
processInstanceId
)
{
try
{
try
{
JSONObject
detail
=
workflowFeignService
.
getHistoricIdentityLinksForProcessInstance
(
processInstanceId
);
if
(
ObjectUtils
.
isNotEmpty
(
detail
.
getJSONArray
(
"data"
)))
{
JSONObject
historyTaskJsonObject
=
workflowFeignService
JSONObject
json
=
detail
.
getJSONArray
(
"data"
).
getJSONObject
(
1
);
.
getHistoricTaskForProcessInstanceId
(
processInstanceId
);
if
(
json
.
getBooleanValue
(
"group"
))
{
if
(
ObjectUtils
.
isEmpty
(
historyTaskJsonObject
.
getJSONArray
(
"data"
)))
{
return
json
.
getString
(
"groupId"
);
return
null
;
}
JSONObject
historyTaskObject
=
historyTaskJsonObject
.
getJSONArray
(
"data"
).
getJSONObject
(
0
);
JSONObject
detail
=
workflowFeignService
.
getHistoricIdentityLinksForTask
(
historyTaskObject
.
getString
(
"id"
));
JSONArray
resultArray
=
detail
.
getJSONArray
(
"data"
);
if
(
ObjectUtils
.
isNotEmpty
(
resultArray
))
{
for
(
int
i
=
0
;
i
<
resultArray
.
size
();
i
++)
{
JSONObject
result
=
resultArray
.
getJSONObject
(
i
);
if
(
result
.
getBooleanValue
(
"group"
))
{
return
result
.
getString
(
"groupId"
);
}
}
}
}
}
}
catch
(
ParseException
e
)
{
}
catch
(
ParseException
e
)
{
...
...
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/workflow/feign/WorkflowFeignService.java
View file @
8ebb75cd
...
@@ -191,6 +191,16 @@ public interface WorkflowFeignService {
...
@@ -191,6 +191,16 @@ public interface WorkflowFeignService {
* @return
* @return
* @throws ParseException
* @throws ParseException
*/
*/
@RequestMapping
(
value
=
"/activitiHistory/processes/historytasks/getGroupNamelist/{processInstanceId}"
,
method
=
RequestMethod
.
GET
)
@RequestMapping
(
value
=
"/activitiHistory/processes/historytasks/getGroupNamelist/{taskId}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getHistoricIdentityLinksForProcessInstance
(
@PathVariable
(
"processInstanceId"
)
String
processInstanceId
)
throws
ParseException
;
JSONObject
getHistoricIdentityLinksForTask
(
@PathVariable
(
"taskId"
)
String
taskId
)
throws
ParseException
;
/**
*获取指定流程定义下所有的历史流程任务任务执行信息 --获取historytask表数据
* @param processInstanceId
* @return
* @throws ParseException
*/
@RequestMapping
(
value
=
"/processes/historytasks/getHistoricTaskForProcessInstanceId/{processInstanceId}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getHistoricTaskForProcessInstanceId
(
@PathVariable
(
"processInstanceId"
)
String
processInstanceId
)
throws
ParseException
;
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment