• OpenLog

    By Colin Williams 2 decades ago

    Just wondering if anyone has made an attempt to integrate OpenLog into RealWorkFlow for logging? My Java skills are non-existent and I can't workout how I might do this in such complex Java agent.



    I've implemented server side processing of the workflow agent to get around some network bottlenecks in a particular workflow however I notice that I'm getting stack traces in the server logs and would prefer to catch these in OpenLog.

    • Open Log

      By Phillip A Kahrl 2 decades ago

      Colin,



      Integrating Open Log is an excellent suggestion. I will have a new release out soon, but unfortunately I haven't had time to tackle integration with Open Log. I have starting using Open Log with other applications, and it is a very useful tool.


      • Phil
      • Add OpenLog into RWFExceptions

        By erich romo 2 decades ago

        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(&quot;Form&quot;,EXCEPTION_FORM);<br/>
            e.replaceItemValue(EXCEPTION_TYPE_FIELD,&quot;Workflow Exception&quot;);<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/>
        

        }

        …….

        • Note: my preferred account name <eom>

          By Eric H Romo 2 decades ago