0

我正在尝试设置WrittenDestination.NameOutputLocalEnvironment.Variables.zipFileName. 但是当我尝试运行和跟踪消息时,zipFileName值为null.

这是我的 ESQL 代码。

CREATE COMPUTE MODULE TFM_ERecruit_compare
    CREATE FUNCTION Main() RETURNS BOOLEAN
    BEGIN
        SET OutputLocalEnvironment = InputLocalEnvironment;
        SET OutputLocalEnvironment.Variables.zipFileName = InputLocalEnvironment.WrittenDestination.Name;
        SET OutputLocalEnvironment.Variables.entryFileName = 'test.xml';
        SET OutputLocalEnvironment.Variables.srcPath = InputLocalEnvironment.WrittenDestination.Directory;
        SET OutputLocalEnvironment.Variables.logger_name = InputLocalEnvironment.Variables.logger_name;
        RETURN TRUE;
    END;
END MODULE;

我确定这OutputLocalEnvironment.WrittenDestination.Name不是空的,因为我已经跟踪过了。

4

1 回答 1

0

我找到了。我缺少File表达InputLocalEnvironment.WrittenDestination.Name。应该是 InputLocalEnvironment.WrittenDestination.File.Name

于 2014-11-21T03:54:09.977 回答