mirror of
https://github.com/langgenius/dify.git
synced 2026-09-24 23:22:26 +08:00
feat(human-input): expose selected action value (#35451)
This commit is contained in:
@@ -1066,8 +1066,13 @@ class WorkflowService:
|
||||
)
|
||||
|
||||
rendered_content = node.render_form_content_before_submission()
|
||||
selected_action = next(
|
||||
(user_action for user_action in node_data.user_actions if user_action.id == action),
|
||||
None,
|
||||
)
|
||||
outputs: dict[str, Any] = dict(form_inputs)
|
||||
outputs["__action_id"] = action
|
||||
outputs["__action_value"] = selected_action.title if selected_action else ""
|
||||
outputs["__rendered_content"] = node.render_form_content_with_outputs(
|
||||
rendered_content, outputs, node_data.outputs_field_names()
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user