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
fc33c086
Commit
fc33c086
authored
Aug 17, 2021
by
chenhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加查询当前流程的方法
parent
22928f71
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
2 deletions
+22
-2
WorkflowFeignService.java
.../boot/biz/common/workflow/feign/WorkflowFeignService.java
+3
-0
FailureDetailsServiceImpl.java
...le/common/biz/service/impl/FailureDetailsServiceImpl.java
+19
-2
No files found.
amos-boot-biz-common/src/main/java/com/yeejoin/amos/boot/biz/common/workflow/feign/WorkflowFeignService.java
View file @
fc33c086
...
@@ -91,5 +91,8 @@ public interface WorkflowFeignService {
...
@@ -91,5 +91,8 @@ public interface WorkflowFeignService {
*/
*/
@RequestMapping
(
value
=
"/task/complete/{taskId}"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/task/complete/{taskId}"
,
method
=
RequestMethod
.
POST
)
JSONObject
completeByVariable
(
@PathVariable
(
"taskId"
)
String
taskId
,
@RequestBody
HashMap
<
String
,
Object
>
variable
);
JSONObject
completeByVariable
(
@PathVariable
(
"taskId"
)
String
taskId
,
@RequestBody
HashMap
<
String
,
Object
>
variable
);
@RequestMapping
(
value
=
"/task/getTaskAssign/{taskId}"
,
method
=
RequestMethod
.
GET
)
JSONObject
getTaskAssign
(
@PathVariable
(
"taskId"
)
String
taskId
)
;
}
}
amos-boot-module/amos-boot-module-biz/amos-boot-module-common-biz/src/main/java/com/yeejoin/amos/boot/module/common/biz/service/impl/FailureDetailsServiceImpl.java
View file @
fc33c086
...
@@ -427,7 +427,8 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -427,7 +427,8 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
JSONObject
detail
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
obj
));
JSONObject
detail
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
obj
));
String
name
=
detail
.
getString
(
"name"
);
String
name
=
detail
.
getString
(
"name"
);
if
(
name
.
startsWith
(
PROCESS_NAME
[
4
]))
{
if
(
name
.
startsWith
(
PROCESS_NAME
[
4
]))
{
return
detail
.
getString
(
"id"
);
String
id
=
detail
.
getString
(
"id"
);
return
id
;
}
}
}
}
}
}
...
@@ -615,14 +616,30 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
...
@@ -615,14 +616,30 @@ public class FailureDetailsServiceImpl extends BaseService<FailureDetailsDto, Fa
}
}
public
Object
getCurrentTask
(
Long
sequenceNbr
)
{
public
Object
getCurrentTask
(
Long
sequenceNbr
)
{
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<
Map
<
String
,
String
>>();
JSONArray
taskDetailArray
=
null
;
JSONArray
taskDetailArray
=
null
;
FailureDetails
details
=
this
.
baseMapper
.
selectById
(
sequenceNbr
);
FailureDetails
details
=
this
.
baseMapper
.
selectById
(
sequenceNbr
);
String
procressId
=
details
.
getProcessId
();
String
procressId
=
details
.
getProcessId
();
JSONObject
teskObject
=
workflowFeignService
.
getTaskList
(
procressId
);
JSONObject
teskObject
=
workflowFeignService
.
getTaskList
(
procressId
);
if
(
ObjectUtils
.
isNotEmpty
(
teskObject
))
{
if
(
ObjectUtils
.
isNotEmpty
(
teskObject
))
{
taskDetailArray
=
teskObject
.
getJSONArray
(
"data"
);
taskDetailArray
=
teskObject
.
getJSONArray
(
"data"
);
for
(
Object
obj
:
taskDetailArray
)
{
JSONObject
detail
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
obj
));
String
name
=
detail
.
getString
(
"name"
);
Map
<
String
,
String
>
map
=
new
HashMap
<
String
,
String
>();
map
.
put
(
"name"
,
name
);
if
(
name
.
startsWith
(
PROCESS_NAME
[
4
]))
{
String
id
=
detail
.
getString
(
"id"
);
JSONObject
assignObject
=
workflowFeignService
.
getTaskAssign
(
id
);
JSONObject
resultObject
=
assignObject
.
getJSONObject
(
"data"
);
if
(
resultObject
!=
null
)
{
map
.
put
(
"assignee"
,
resultObject
.
getString
(
"assignee"
));
}
}
list
.
add
(
map
);
}
}
}
return
taskDetailArray
;
return
list
;
}
}
...
...
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