Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
representation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
workflow
representation
Commits
4513c7e7
Commit
4513c7e7
authored
Jul 31, 2020
by
payno
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[node] call set_properties if exists
parent
06c5fb30
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
scheme/node.py
scheme/node.py
+4
-2
No files found.
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
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