MaMuDragon
MaMuDragon

Reputation: 95

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. How do I add the option of 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? What's the syntax?

Documentation of WSO2 says, no action is possible as third option, but there's no syntax or format to it. Inbound Endpoint IDE properties, support only MOVE or DELETE. Proxy-service is a name-value pair.

Upvotes: 0

Views: 249

Answers (2)

MaMuDragon
MaMuDragon

Reputation: 95

Thanks, I kinda expected that WSO2 purposely kept MOVE & DELETE as the only option, to avoid redundancy. 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. But, this should have been clear in the documentations, God, their docs is killing me.

Upvotes: 0

Martin Hald
Martin Hald

Reputation: 676

Not sure it it works in EI6, but in ESB 4.8.1 you can do it like the following.

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

Upvotes: 0

Related Questions