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
yecl
wecube
Commits
bb0eb038
Commit
bb0eb038
authored
4 years ago
by
royl88
Browse files
Options
Download
Email Patches
Plain Diff
2027 Fix workflow plugin params render
parent
257a20db
master
2109_support_taskman
2154_enhance_workflow_data_preview
2189_fix_system_bug
2222_deployment_confirmation
2230_plugin_invocation_confirm_token
2233_workflow_context_parameters_refactor
2289_workflow_interf_enhance
2313_add_timestamp_to_node_log
2317_fix_bug_of_faulted_proc_inst
2321_fix_itsm_reported_defects
2321_fix_itsm_reported_issues
dependabot/maven/platform-auth-client/org.bouncycastle-bcprov-ext-jdk15on-1.67
dependabot/maven/platform-auth-client/org.bouncycastle-bcprov-jdk15on-1.67
dependabot/maven/platform-auth-server/commons-io-commons-io-2.7
dependabot/maven/platform-auth-server/org.bouncycastle-bcprov-jdk15on-1.67
dependabot/maven/platform-core/com.google.guava-guava-29.0-jre
dependabot/maven/platform-core/commons-io-commons-io-2.7
dependabot/maven/platform-workflow/commons-io-commons-io-2.7
dev
dev_fix
dev_test
flow_exec_bug
master_UBA
mixed
pobu168-patch-1
remove_node_sass
revert-2184-upgrade_work_orch
timed_execution
web_monitor_demo
workflow_report
v3.2.2
v3.2.1
v3.2.0
v3.1.0
v3.0.1
v3.0.0
v2.9.2
v2.9.1
v2.9.0
v2.8.1
v2.8.0
v2.7.1
v2.7.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wecube-portal/src/pages/collaboration/workflow-orchestration.vue
+54
-29
...portal/src/pages/collaboration/workflow-orchestration.vue
with
54 additions
and
29 deletions
+54
-29
wecube-portal/src/pages/collaboration/workflow-orchestration.vue
+
54
-
29
View file @
bb0eb038
...
...
@@ -125,7 +125,7 @@
clearable
v-model=
"pluginForm.serviceId"
@
on-open-change=
"getFilteredPluginInterfaceList(pluginForm.routineExpression)"
@
on-change=
"ge
t
PluginInterfaceList
(false)
"
@
on-change=
"
chan
gePluginInterfaceList"
>
<Option
v-for=
"(item, index) in filteredPlugins"
:value=
"item.serviceName"
:key=
"index"
>
{{
item
.
serviceDisplayName
...
...
@@ -251,7 +251,7 @@ import {
getFlowNodes
,
getParamsInfosByFlowIdAndNodeId
,
getAllDataModels
,
getPluginInterfaceList
,
//
getPluginInterfaceList,
removeProcessDefinition
,
// getFilteredPluginInterfaceList,
getPluginsByTargetEntityFilterRule
,
...
...
@@ -318,6 +318,7 @@ export default {
rootPkg
:
''
,
rootEntity
:
''
,
pluginForm
:
{},
routineExpressionCache
:
''
,
defaultPluginForm
:
{
description
:
''
,
nodeDefId
:
''
,
...
...
@@ -336,7 +337,7 @@ export default {
timeoutExpression
:
'
30
'
},
serviceTaskBindInfos
:
[],
allPlugins
:
[],
//
allPlugins: [],
filteredPlugins
:
[],
timeSelection
:
[
{
...
...
@@ -561,7 +562,7 @@ export default {
init
()
{
this
.
getAllDataModels
()
this
.
getAllFlows
(
true
)
this
.
getPluginInterfaceList
()
//
this.getPluginInterfaceList()
},
async
getAllDataModels
()
{
let
{
data
,
status
}
=
await
getAllDataModels
()
...
...
@@ -570,9 +571,13 @@ export default {
}
},
async
getFilteredPluginInterfaceList
(
path
)
{
if
(
path
===
this
.
routineExpressionCache
)
{
return
}
let
pkg
=
''
let
entity
=
''
let
payload
=
{}
this
.
filteredPlugins
=
[]
if
(
path
)
{
// eslint-disable-next-line no-useless-escape
const
pathList
=
path
.
split
(
/
[
.~
]
+
(?=[^\}]
*
(\{
|$
))
/
).
filter
(
p
=>
p
.
length
>
1
)
...
...
@@ -604,31 +609,48 @@ export default {
if
(
status
===
'
OK
'
)
{
this
.
filteredPlugins
=
data
}
this
.
routineExpressionCache
=
path
},
async
getPluginInterfaceList
(
isUseOriginParamsInfo
=
true
)
{
let
{
status
,
data
}
=
await
getPluginInterfaceList
()
if
(
status
===
'
OK
'
)
{
this
.
allPlugins
=
data
let
found
=
data
.
find
(
_
=>
_
.
serviceName
===
this
.
pluginForm
.
serviceId
)
if
(
found
)
{
let
needParams
=
found
.
inputParameters
.
filter
(
_
=>
_
.
mappingType
===
'
context
'
||
_
.
mappingType
===
'
constant
'
)
if
(
isUseOriginParamsInfo
)
return
this
.
pluginForm
.
paramInfos
=
needParams
.
map
(
_
=>
{
return
{
paramName
:
_
.
name
,
bindNodeId
:
''
,
bindParamType
:
'
INPUT
'
,
bindParamName
:
''
,
bindType
:
_
.
mappingType
,
bindValue
:
''
}
})
}
async
changePluginInterfaceList
(
val
)
{
let
found
=
this
.
filteredPlugins
.
find
(
_
=>
_
.
serviceName
===
this
.
pluginForm
.
serviceId
)
if
(
found
)
{
let
needParams
=
found
.
inputParameters
.
filter
(
_
=>
_
.
mappingType
===
'
context
'
||
_
.
mappingType
===
'
constant
'
)
this
.
pluginForm
.
paramInfos
=
needParams
.
map
(
_
=>
{
return
{
paramName
:
_
.
name
,
bindNodeId
:
''
,
bindParamType
:
'
INPUT
'
,
bindParamName
:
''
,
bindType
:
_
.
mappingType
,
bindValue
:
''
}
})
}
},
// async getPluginInterfaceList (isUseOriginParamsInfo = true) {
// let { status, data } = await getPluginInterfaceList()
// if (status === 'OK') {
// this.allPlugins = data
// let found = data.find(_ => _.serviceName === this.pluginForm.serviceId)
// if (found) {
// let needParams = found.inputParameters.filter(
// _ => _.mappingType === 'context' || _.mappingType === 'constant'
// )
// if (isUseOriginParamsInfo) return
// this.pluginForm.paramInfos = needParams.map(_ => {
// return {
// paramName: _.name,
// bindNodeId: '',
// bindParamType: 'INPUT',
// bindParamName: '',
// bindType: _.mappingType,
// bindValue: ''
// }
// })
// }
// }
// },
async
getAllFlows
(
s
)
{
if
(
s
)
{
const
{
data
,
status
}
=
await
getAllFlow
()
...
...
@@ -791,7 +813,7 @@ export default {
this
.
serviceTaskBindInfos
.
splice
(
index
,
1
)
}
let
found
=
this
.
all
Plugins
.
find
(
_
=>
_
.
serviceName
===
this
.
pluginForm
.
serviceId
)
let
found
=
this
.
filtered
Plugins
.
find
(
_
=>
_
.
serviceName
===
this
.
pluginForm
.
serviceId
)
let
pluginFormCopy
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
pluginForm
))
this
.
serviceTaskBindInfos
.
push
({
...
...
@@ -823,7 +845,7 @@ export default {
if
(
pathList
[
0
]
!==
this
.
currentSelectedEntity
)
{
this
.
pluginForm
.
routineExpression
=
this
.
currentSelectedEntity
}
this
.
getPluginInterfaceList
()
//
this.getPluginInterfaceList()
// get flow's params infos
this
.
getFlowsNodes
()
...
...
@@ -899,7 +921,10 @@ export default {
canvas
.
onmouseup
=
e
=>
{
this
.
show
=
false
this
.
bindCurrentNode
(
e
)
if
(
this
.
currentNode
.
id
.
startsWith
(
'
SubProcess_
'
)
||
this
.
currentNode
.
id
.
startsWith
(
'
Task_
'
))
{
if
(
this
.
currentNode
.
id
&&
(
this
.
currentNode
.
id
.
startsWith
(
'
SubProcess_
'
)
||
this
.
currentNode
.
id
.
startsWith
(
'
Task_
'
))
)
{
this
.
openPluginModal
(
e
)
}
}
...
...
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