简体   繁体   English

WSO2 ESB EI611 VFS ActionAfterProcess和ActionAfterFailure-选项

[英]WSO2 ESB EI611 VFS ActionAfterProcess & ActionAfterFailure - options

Requirement is, not to move or delete the files after copying to a different folder, leave it as it is, after copying the file and pick up the latest files only 要求是,复制到另一个文件夹后,请勿移动或删除文件,请保持原样,复制文件后仅选择最新文件

    <parameter name="transport.vfs.ActionAfterFailure">MOVE</parameter>
    <parameter name="transport.vfs.ActionAfterProcess">MOVE</parameter>
    <parameter name="transport.vfs.ActionAfterFailure">DELETE</parameter>
    <parameter name="transport.vfs.ActionAfterProcess">DELETE</parameter>

For inbound enpoint with protocol="file" the above paramaters and the options MOVE & DELETE are allowed. 对于使用protocol="file"的入站输入,上面的参数和选项MOVE & DELETE是允许的。 How do I add the option of NO ACTION ? 如何添加“不采取NO ACTION ”选项?

If this option(NO ACTION) is not possible with inbound endpoint, can we use proxy-service with transports="vfs" and use the no-action option? 如果入站端点无法使用此选项(NO ACTION),我们可以将proxy-service与transports="vfs"使用,并使用no-action选项吗? What's the syntax? 语法是什么?

Documentation of WSO2 says, no action is possible as third option, but there's no syntax or format to it. WSO2的文档说,没有选择作为第三种选择,但是没有语法或格式。 Inbound Endpoint IDE properties, support only MOVE or DELETE. 入站端点IDE属性仅支持MOVE或DELETE。 Proxy-service is a name-value pair. 代理服务是一个名称/值对。

不确定它是否可以在EI6中运行,但是在ESB 4.8.1中,您可以像下面那样进行操作。

<parameter name="transport.vfs.ActionAfterProcess">NONE</parameter>

Thanks, I kinda expected that WSO2 purposely kept MOVE & DELETE as the only option, to avoid redundancy. 谢谢,我有点希望WSO2故意将MOVE&DELETE作为唯一选择,以避免冗余。 Otherwise, the behavior or file polling will be erroneous. 否则,行为或文件轮询将是错误的。 That's why they dropped "NONE", maybe to avoid picking up old files or files existing in the folder already. 这就是为什么他们删除“ NONE”的原因,也许是为了避免拾取旧文件或文件夹中已经存在的文件。 But, this should have been clear in the documentations, God, their docs is killing me. 但是,这在文档中应该很清楚,上帝,他们的文档正在杀了我。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM