GitHub user dave-csc edited a discussion: Usage of addResultFile() in User
Defined Java Class
Hello,
I'm trying to add the result files functionality in a custom transform made
with **User defined Java Class**.
To do so, I added this code in the `processRow()` method (`f` is the
`java.io.File` object related to the file I just processed):
```
addResultFile(new ResultFile(
ResultFile.FILE_TYPE_GENERAL,
org.apache.hop.core.vfs.HopVfs.getFileObject(f.getPath()),
getPipelineMeta().getName(),
getTransformName()));
```
However, when I execute the code I have no errors (even the files are correctly
created), but a **Get files from result** in a subsequent pipeline can't find
the files that I "added" to the files result. What am I doing wrong?
Thanks for your support :)
GitHub link: https://github.com/apache/hop/discussions/6399
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]