feat(trigger): system variables for trigger nodes

Added a timestamp field to the SystemVariable model and updated the WorkflowAppRunner to include the current timestamp during execution. Enhanced node type checks to recognize trigger nodes in various services, ensuring proper handling of system variables and node outputs in TriggerEventNode and TriggerScheduleNode. This improves the overall workflow execution context and maintains consistency across node types.
This commit is contained in:
Harry
2025-10-29 18:06:41 +08:00
parent db2c6678e4
commit fb12f31df2
8 changed files with 42 additions and 11 deletions

View File

@ -1026,7 +1026,7 @@ class DraftVariableSaver:
return
if self._node_type == NodeType.VARIABLE_ASSIGNER:
draft_vars = self._build_from_variable_assigner_mapping(process_data=process_data)
elif self._node_type == NodeType.START:
elif self._node_type == NodeType.START or self._node_type.is_trigger_node:
draft_vars = self._build_variables_from_start_mapping(outputs)
else:
draft_vars = self._build_variables_from_mapping(outputs)