Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
workflow
representation
Commits
4513c7e7
Commit
4513c7e7
authored
Jul 31, 2020
by
payno
Browse files
[node] call set_properties if exists
parent
06c5fb30
Changes
1
Hide whitespace changes
Inline
Side-by-side
scheme/node.py
View file @
4513c7e7
...
...
@@ -243,6 +243,10 @@ class Node(object):
node
.
load_handlers
()
logging
.
info
(
'start execution of {0} with {1} through channel {2}'
''
.
format
(
str
(
process_pt
),
input_data
,
input_name
))
if
hasattr
(
node
.
__process_instance
,
'set_properties'
):
node
.
__process_instance
.
set_properties
(
properties
)
else
:
raise
ValueError
(
'no function set properties found'
)
if
input_name
in
node
.
handlers
:
out
=
getattr
(
node
.
__process_instance
,
node
.
handlers
[
input_name
])(
input_data
)
...
...
@@ -258,8 +262,6 @@ class Node(object):
else
:
output_channel
=
node
.
get_output_channel_name
(
out
)
_logger
.
warning
(
'--- output channel from {0} is {1}'
.
format
(
process_pt
,
output_channel
))
_logger
.
warning
(
'--- type(out) is {0}'
.
format
(
type
(
out
)))
if
hasattr
(
out
,
'to_dict'
):
return
output_channel
,
out
.
to_dict
()
else
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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