Hi all!
I’m trying to create an CAF interface to get multiple files and process them.
I’ve created a simple flow service, receiving an objectList, looping through it and appending the content to an stringList to show it on the screen.
My point here is just to know how to pass it to the service, later i’ll upload it to the server, etc.
I succeeded in get 1 file, but when i set true to “multiple” in the File Input and change the structure to List, i’m getting the below error:
Here’s the code i’m using:
public String uploadAction() {
int j = getFileItem().size();
for (int i = 0; i<j; i++) {
this.getUploadFile1().getParameters().getUploadFile().getUploadFile().addFileContent(this.getFileItem().get(i));
}
getUploadFile1().refresh();
return null;
}
Appreciate your help!
#MWS-CAF-Task-Engine#webMethods#BPM