Just thinking out loud…
A minimal set of changes could be made in RWFException.java, by adding in some LogError and LogErrorEx calls from the OpenLog java class…
…perhaps not the most elegant solution, but at least a starting point…suggestions???
Example:
public class RWFException extends Exception {
// Field mappings for documents generated for the exception log.
static final long serialVersionUID = -5575428265885984355L;
public static final String EXCEPTION_TYPE_FIELD = "rwfExceptionType";
public static final String EXCEPTION_MSG_FIELD = "rwfExceptionMsg";
public static final String EXCEPTION_DOCLINK_FIELD = "rwfDocLinks";
public static final String EXCEPTION_FORM = "rwfException";
//// The below are used for displaying error pages to web users.
public static final String EXCEPTION_VIEW = "(rwfExceptionMsgWebPages)";
String = "RWFException";
private OpenLogItem oli;
/
RWFException constructor
@param - msg, String the error message to be used.
@param Database d the current database
@param Document doc the context document.
/
public RWFException(String msg, Database d, Document doc){
super(msg);<br/>
try{<br/>
Document e = d.createDocument();<br/>
e.replaceItemValue("Form",EXCEPTION_FORM);<br/>
e.replaceItemValue(EXCEPTION_TYPE_FIELD,"Workflow Exception");<br/>
e.replaceItemValue(EXCEPTION_MSG_FIELD,msg);<br/>
RichTextItem rt = e.createRichTextItem(EXCEPTION_DOCLINK_FIELD);<br/>
rt.appendDocLink(doc);<br/>
e.save();<br/>
oli.logErrorEx(super, msg, 999, doc);<br/>
} catch(NotesException e){e.printStackTrace(); System.out.println(e.text);}<br/>
}
…….