reducer path to strengthen too

This commit is contained in:
lda
2026-05-21 04:19:50 +07:00 Verified
parent 444b5735c1
commit d089e28c15
9 changed files with 201 additions and 38 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ from __future__ import annotations
from wf_authoring import WorkflowBuilder
from wf_authoring.dsl import PathExpr
from wf_core import JoinNode, Workflow
from wf_core.paths import GraphSourcePath
from .models import (
DraftChooseStep,
@@ -81,7 +82,7 @@ def _add_step(builder: WorkflowBuilder, step_id: str, step: DraftStep):
).entry
if isinstance(step, DraftMatchStep):
return builder.match(
PathExpr(step.match.value),
PathExpr(GraphSourcePath.parse(step.match.value)),
{case.equals: case.then for case in step.match.cases},
id=step_id,
default=step.match.default,