• Approval Delegation

    By Ken Hawkins 2 decades ago

    I"m having difficulty getting the Approval Delegation feature to function in the Notes client (6.5.2). I have created a Delegation document using the rwfApprovalDelegation subform. The document displays correctly in the rwf Approval Delegation view using the 3 versions of the user's Notes name as recommended in the documentation (3/15/2005).



    The delegated approver does not receive any notifications nor has their name been included in the rwfDocApprovers field.



    We've been using RealWorkFlow (v2.4) for several weeks in this applications with great success. I sure would like to get the Approval Delegation piece functioning as well.



    Any suggestions would be welcome.



    Note: All design elements were signed by the applicable server ID.

    • Fixed in version 2.5

      By Phillip A Kahrl 2 decades ago

      Ken,



      Thanks for catching that, there was a bug for approval delegation for Notes client. It's fixed in version 2.5. You only need to swap out the "rwf All Classes" to get the fix. Let me know if there are any problems.


      • Phil
      • rwfDelegates empty

        By Ken Hawkins 2 decades ago

        The rwfDelegates field isn't getting populated after upgrading to the 2.5 release. Any quick checks I can perform?



        Ken

        • Approval delegation in sample and things to check.

          By Phillip A Kahrl 2 decades ago

          Ken,



          I'm not sure what the problem is. I just tested in a sample app. and it approval delegation works for both Notes client and web. I included approval delegation in an updated version of the sample, filename "rworkflow25_example.nsf" so you may want to take a look at the sample in the Docs section:



          http://www.openntf.org/projects/pmt.nsf/852fcfa76eb36baa85256bae00100855/23ebbee9ab2920b68625704300693e1c!OpenDocument



          Otherwise, if you are running in Notes client use "File-Tools-Show Java Debug Console" , approve a document that should have approval delegation. If there is any output from the debug console, post it in this forum and I will take a look at it.



          Otherwise things to check for.


          1. Double check to make sure you are using the 2.5 version of the "rwfAllClasses" library.


          2. Check for the existence of a field named: "rwfApprovalDelegationDb" in the document being approved. This field is used to tell the engine to look for an approval delegation view in another .nsf file. If you are using an approval delegatition view in the same .nsf, then remove this field from your forms.


          3. Make sure the view "rwf Approval Delegation" exists in the database and that the first sorted column has names that match the names that of the approvers who are delegating


          4. There is always a Date Range associated with approval delegation, so make sure that valid dates are entered for fields "rwfStartDt_X" and "rwfEndDt_X" for each delegate in the "rwfApprovalDelegation" subform.


          5. Phil
          • Embarrassed . . .

            By Ken Hawkins 2 decades ago

            Did you ever reference a view by it's alias, but didn't actually assign the alias? I was referencing rwfApprovalDelegation, but hadn't entered the name in the alias box of the view properties.



            The view was named "Workflow\rwfApprovalDelegation".



            Another lesson learned the hard way.



            Thanks for your help,



            Ken

            • Enhancement idea - test harness

              By Phillip A Kahrl 2 decades ago

              Ken,



              If there is a way to make a mistake when developing an application, I'm sure I've done it at least once.



              I thought it might be useful to add a test harness to the template, in the form of an agent that analyzes the current application and looks for potential problems. I've added a request for this and I will incorporate it in a future release.



              http://www.openntf.org/projects/pmt.nsf/894fe3a057d40c2885256bae003d7dd6/e606cfc02a2db4868625706d006fc8a2!OpenDocument



              I've tried to make the code to RealWorkFlow smart so that I don't have to be, but there is always work to be done in this area.



              Thanks for the feeback.


              • Phil
      • rwfDelegates empty

        By Ken Hawkins 2 decades ago

        The rwfDelegates field isn't getting populated after upgrading to the 2.5 release. Any quick checks I can perform?



        Ken