mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 02:18:08 +08:00
fix(workflow): replace hardcoded trigger node logic with metadata-driven approach
- Add isStart: true to all trigger nodes (TriggerWebhook, TriggerSchedule, TriggerPlugin) - Replace hardcoded BlockEnum checks in use-checklist.ts with metadata-driven logic - Update trigger node tests to validate metadata instead of obsolete methods - Add webhook URL validation to TriggerWebhook node - Ensure backward compatibility with existing workflow configurations This change migrates from hardcoded trigger node identification to a centralized metadata-driven approach, improving maintainability and consistency across the workflow system.
This commit is contained in:
@ -6,6 +6,7 @@ import type { PluginTriggerNodeType } from './types'
|
||||
const metaData = genNodeMetaData({
|
||||
sort: 1,
|
||||
type: BlockEnum.TriggerPlugin,
|
||||
isStart: true,
|
||||
})
|
||||
|
||||
const nodeDefault: NodeDefault<PluginTriggerNodeType> = {
|
||||
|
||||
Reference in New Issue
Block a user