refactor: improve default global variable retrieval logic for better clarity
This commit is contained in:
parent
e7f61994ec
commit
8d28ac27d2
@ -17,9 +17,11 @@ from application.flow.step_node.start_node.i_start_node import IStarNode
|
|||||||
|
|
||||||
|
|
||||||
def get_default_global_variable(input_field_list: List):
|
def get_default_global_variable(input_field_list: List):
|
||||||
return {item.get('variable'): item.get('default_value') for item in input_field_list if
|
return {
|
||||||
item.get('default_value', None) is not None}
|
item.get('variable') or item.get('field'): item.get('default_value')
|
||||||
|
for item in input_field_list
|
||||||
|
if item.get('default_value', None) is not None
|
||||||
|
}
|
||||||
|
|
||||||
def get_global_variable(node):
|
def get_global_variable(node):
|
||||||
body = node.workflow_manage.get_body()
|
body = node.workflow_manage.get_body()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user