我的流程是这样的:
File Input -> File Read -> Compute -> Mapping -> Compute -> File Output
从文件读取节点,我将数据保存到${LocalEnvironment}。也尝试过${Environment}。这就是计算节点背后发生的事情:
这种偏移是如何可能的?${LocalEnvironment}应该在请求流的时候重新设置。
编辑:
不要使用环境变量。局部变量应该存储在$LocalEnvironment/Variables中。
明白了。即使现在我觉得我的变量还没有被清除。文件读取仍然会产生以前运行的$LocalEnvironment/Variables/BLOB/BLOB。
EDIT2 2:*节点设置:文件输入:
Input directory: C:\Users\User1\Documents\In
File pattern: *
Action on successful processing: move to mqsiarchive
Message domain: XMLNS (I know it should be XMLNSC but it works)
Use XMLNSC compact parser...: check文件读:
Input directory: C:\Users\User1\Documents\In\mqsiarchive
File name or pattern: *
Action: Delete
Request directory property location: $LocalEnvironment/Destination/File/Directory
Request filename property location: $LocalEnvironment/Destination/File/Name
Offset property location: $LocalEnvironment/Destination/File/Offset
Length property location: $LocalEnvironment/Destination/File/Length
Result data location: $ResultRoot
Output data location: $OutputLocalEnvironment/Variables
Copy local environment: check
Record selection expression: true()计算节点:
Compute mode: LocalEnvironment and Message文件输出(这一项并不重要,因为即使没有问题也会出现问题):
Output directory: C:\Users\User1\Documents\Out
Filename or pattern: test.txt
Stage in mqsitransit...: check
Data location: $Body
Request directory property location: $LocalEnvironment/Destination/File/Directory
Request filename property location: $LocalEnvironment/Destination/File/Name我没有提到的属性:默认
发布于 2020-01-17 10:47:52
我认为它是这样运作的:
https://stackoverflow.com/questions/59778100
复制相似问题