We are using pega v8.7.2 and in Pega OOTB Activity ‘Code-Pega-eForm.WriteEFormToFile’ FileStorageManger & RAFile classes are referred, however when try do private edit & save the activity it is throwing errors as below. Any inputs??
com.pega.pegarules.storage.FileStorageManager cannot be resolved to a type
com.pega.pegarules.storage.fs.resadapter RAFile cannot be resolved to a type
@StevenY7 the above ticket was logged for 8.7.2. I’ve checked for the status and the ticket was closed at the start of May.
For that particular scenario the Root Cause was found to be a configuration issue.
The Solution was to replace the below java code in the java step in the activity ‘pyAttachAsPDF’
Replace below block:
com.pega.pegarules.storage.fs.resadaptor.RAFile destinationFile = null;
java.io.OutputStream output = null;
destinationFile = new com.pega.pegarules.storage.fs.resadaptor.RAFile(LetterStoragePath, Filename);
output = new com.pega.pegarules.storage.fs.resadaptor.OutputStreamWrapper(destinationFile);
With:
java.io.OutputStream output = null;
if (LetterStoragePath.startsWith(“file://”)) {
output = new PROutputStream(LetterStoragePath);
} else {
output = new java.io.FileOutputStream(LetterStoragePath);
}
The user noted that along with that change they also replaced:
destinationFile = new com.pega.pegarules.storage.fs.resadaptor.RAFile( LetterStoragePath,FileName );
With:
getAbsolutepath().
We would suggest that you check the code to see if you can make the changes. The previous bug referenced related to Internal API’s which were excluded from visibility from activity assembly code, causing assembly errors in the legacy java code.
The fix was already implemented in 8.8: BUG-724023 (see the readme for INC-224268)
I would suggest that you log a support incident if you need further help with your code.