Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
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
liyuan
byit-myth-job
Commits
41da58d1
Commit
41da58d1
authored
Dec 15, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理只有子流的情况
parent
ab142f54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
JavaParamWrappedCallback.java
...com/byit/strategy/task/java/JavaParamWrappedCallback.java
+16
-9
No files found.
byit-myth-core/myth-admin-core/src/main/java/com/byit/strategy/task/java/JavaParamWrappedCallback.java
View file @
41da58d1
...
...
@@ -44,23 +44,30 @@ public class JavaParamWrappedCallback implements TaskRunTheLifeCycleCallback {
*/
@Override
public
void
postProcessAfterInitialization
(
JobTaskSchedule
jobTaskSchedule
)
{
RunParamWrapped
runParamWrapped
=
new
RunParamWrapped
();
String
runId
=
jobTaskSchedule
.
getRunId
();
String
flowName
=
jobTaskSchedule
.
getFlowName
();
RunRecording
runRecording
=
runRecordingService
.
findAllByRunIDAndFlowName
(
runId
,
flowName
);
String
extendedConfiguration
=
runRecording
.
getExtendedConfiguration
();
FlowExtendedConfiguration
flowExtendedConfiguration
=
JSON
.
parseObject
(
extendedConfiguration
,
FlowExtendedConfiguration
.
class
);
String
publicParam
=
flowExtendedConfiguration
.
getPublicParam
();
Map
<
String
,
String
>
publicMap
=
JSON
.
parseObject
(
publicParam
,
Map
.
class
);
if
(
publicMap
==
null
)
{
publicMap
=
new
HashMap
<>(
8
);
if
(
runRecording
!=
null
)
{
String
extendedConfiguration
=
runRecording
.
getExtendedConfiguration
();
FlowExtendedConfiguration
flowExtendedConfiguration
=
JSON
.
parseObject
(
extendedConfiguration
,
FlowExtendedConfiguration
.
class
);
String
publicParam
=
flowExtendedConfiguration
.
getPublicParam
();
Map
<
String
,
String
>
publicMap
=
JSON
.
parseObject
(
publicParam
,
Map
.
class
);
if
(
publicMap
==
null
)
{
publicMap
=
new
HashMap
<>(
8
);
}
runParamWrapped
.
setPublicParamMap
(
publicMap
);
}
String
runParam
=
jobTaskSchedule
.
getRunParam
();
RunParamWrapped
runParamWrapped
=
new
RunParamWrapped
();
runParamWrapped
.
setPrivateParam
(
runParam
);
runParamWrapped
.
setPublicParamMap
(
publicMap
);
jobTaskSchedule
.
setRunParam
(
JSON
.
toJSONString
(
runParamWrapped
));
}
}
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