Any suggestions ?
public WFMWorkflow execute(WFMWorkflow workFlow, Map params) {.....................WFMFile[] attachedFiles = workFlow.getFiles();for (WFMFile file : attachedFiles) {//some processlogger.debug("Removing file");workFlow.removeFile(file);logger.debug("Removed file");}return workFlow;
that looks right, are you sure this is executing as a preprocessor?try adding some logic in there to "double" check, like do another workflow.getfiles() after your for loop is done.
I'm sure that this is executing as pre processor . I have tried double checking but the file was not removed. So is this a bug ?