Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Wecube Platform
Commits
fb25362e
Unverified
Commit
fb25362e
authored
3 years ago
by
Roy Wu(伍健君)
Committed by
GitHub
3 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #2236 from WeBankPartners/dev
Dev
parents
e93cb98b
492ca1ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
platform-core/src/main/java/com/webank/wecube/platform/core/model/workflow/InputParamAttr.java
+12
-1
...k/wecube/platform/core/model/workflow/InputParamAttr.java
with
12 additions
and
1 deletion
+12
-1
platform-core/src/main/java/com/webank/wecube/platform/core/model/workflow/InputParamAttr.java
+
12
-
1
View file @
fb25362e
...
@@ -99,7 +99,14 @@ public class InputParamAttr {
...
@@ -99,7 +99,14 @@ public class InputParamAttr {
}
}
if
(
Constants
.
DATA_TYPE_STRING
.
equalsIgnoreCase
(
type
))
{
if
(
Constants
.
DATA_TYPE_STRING
.
equalsIgnoreCase
(
type
))
{
//TODO
if
(
val
instanceof
String
){
return
(
String
)
val
;
}
if
(
val
instanceof
Integer
){
return
String
.
valueOf
(
val
);
}
return
JsonUtils
.
toJsonString
(
val
);
return
JsonUtils
.
toJsonString
(
val
);
}
}
...
@@ -183,6 +190,10 @@ public class InputParamAttr {
...
@@ -183,6 +190,10 @@ public class InputParamAttr {
return
null
;
return
null
;
}
}
if
(
v
instanceof
String
){
return
(
String
)
v
;
}
if
(
(
v
instanceof
PluginParamObject
)
||
(
v
instanceof
Map
)
||
(
v
instanceof
List
)){
if
(
(
v
instanceof
PluginParamObject
)
||
(
v
instanceof
Map
)
||
(
v
instanceof
List
)){
return
JsonUtils
.
toJsonString
(
v
);
return
JsonUtils
.
toJsonString
(
v
);
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help