| # sync draft workflow | # sync draft workflow | ||||
| environment_variables_list = workflow_data.get('environment_variables') or [] | environment_variables_list = workflow_data.get('environment_variables') or [] | ||||
| environment_variables = [factory.build_variable_from_mapping(obj) for obj in environment_variables_list] | environment_variables = [factory.build_variable_from_mapping(obj) for obj in environment_variables_list] | ||||
| conversation_variables_list = workflow_data.get('conversation_variables') or [] | |||||
| conversation_variables = [factory.build_variable_from_mapping(obj) for obj in conversation_variables_list] | |||||
| draft_workflow = workflow_service.sync_draft_workflow( | draft_workflow = workflow_service.sync_draft_workflow( | ||||
| app_model=app_model, | app_model=app_model, | ||||
| graph=workflow_data.get('graph', {}), | graph=workflow_data.get('graph', {}), | ||||
| unique_hash=unique_hash, | unique_hash=unique_hash, | ||||
| account=account, | account=account, | ||||
| environment_variables=environment_variables, | environment_variables=environment_variables, | ||||
| conversation_variables=conversation_variables, | |||||
| ) | ) | ||||
| return draft_workflow | return draft_workflow |