fix: workflow and graphical editor tests failed
This commit is contained in:
parent
ab48aaea3c
commit
4ed9b605fc
2 changed files with 11 additions and 1 deletions
|
|
@ -64,6 +64,16 @@ class MethodContext(MethodBase):
|
||||||
dynamicMode=True,
|
dynamicMode=True,
|
||||||
outputType="UdmDocument",
|
outputType="UdmDocument",
|
||||||
parameters={
|
parameters={
|
||||||
|
"context": WorkflowActionParameter(
|
||||||
|
name="context",
|
||||||
|
type="Any",
|
||||||
|
frontendType=FrontendType.CONTEXT_BUILDER,
|
||||||
|
required=False,
|
||||||
|
description=(
|
||||||
|
"Optional context payload that may contain file/document references. "
|
||||||
|
"Preferred input for extractContent; documentList remains supported for compatibility."
|
||||||
|
),
|
||||||
|
),
|
||||||
"documentList": WorkflowActionParameter(
|
"documentList": WorkflowActionParameter(
|
||||||
name="documentList",
|
name="documentList",
|
||||||
type="DocumentList",
|
type="DocumentList",
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ def test_context_extractContent_node_shape():
|
||||||
assert "LoopItem" in node["inputPorts"][0]["accepts"]
|
assert "LoopItem" in node["inputPorts"][0]["accepts"]
|
||||||
names = [p["name"] for p in node["parameters"]]
|
names = [p["name"] for p in node["parameters"]]
|
||||||
assert names == [
|
assert names == [
|
||||||
"documentList",
|
"context",
|
||||||
"contentFilter",
|
"contentFilter",
|
||||||
"outputMode",
|
"outputMode",
|
||||||
"splitBy",
|
"splitBy",
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue