Dataweave脚本错误-无法解析对函数Batch :: getStepExceptions()的引用

问题描述 投票:0回答:1

我有一个具有批处理程序的Mule流。最后一个批处理步骤旨在捕获失败的记录并将其发送到ActiveMQ队列。该步骤中的第一个处理器是带有以下代码的Set-Payload:

<batch:step
                    name="FailedCustomerUpsertHandlingBatchStep"
                    doc:id="2bcfc78a-57b9-4be5-a2fd-3c15da720f95"
                    acceptPolicy="ONLY_FAILURES">
                    <set-payload
                        value="#[Batch::getStepExceptions()]"
                        doc:name="Set Payload"
                        doc:id="a71dd374-4623-4989-b938-53f1825e7d9d" />

在Anypoint Studio的“问题”窗格中,列出了以下错误:

Scripting language error on expression 'Batch::getStepExceptions()'. Reason: Unable to resolve reference of Batch::getStepExceptions..  salesforce-to-mysql-sync-with-batch.xml /salesforce-to-MySQL-DB-using-Batch-Processing/src/main/mule    Set Payload Message Flow Error

我在Mulesoft文档here中找到了这样的示例

该应用程序在Mule运行时4.2.1上并且已安装脚本模块1.1.2。

为什么任何人都无法识别DW功能?Batch::getStepExceptions()

mule batch-processing
1个回答
0
投票

这将/仍将在运行时工作。目前,它无法在Studio中解决。您可以忽略该错误。

© www.soinside.com 2019 - 2024. All rights reserved.