Fix workflow condition evaluation to support comparison operators

- Implemented proper parsing for conditions like '$.trigger.doc.content == "value"'
- Added support for comparison operators: ==, !=, >, <, >=, <=
- Fixed JSONPath condition evaluation that was treating entire expressions as JSONPath queries
- Added support for string literals, numbers, booleans in condition values
- Conditions now correctly resolve JSONPath expressions and perform comparisons

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-01 19:42:21 +02:00
parent f3f18d5b4c
commit 4adc5cbdaa
2 changed files with 185 additions and 40 deletions

View File

@@ -103,7 +103,8 @@ const buildConfigWithMemoryDB = async () => {
plugins: [
workflowsPlugin<CollectionSlug>({
collectionTriggers: {
posts: true
posts: true,
media: true
},
steps: [
HttpRequestStepTask,