Rerouting of RFP's incase supervisor is on Leave

 7 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Vijay S
Veteran Member
Posts: 174
Veteran Member
    Hi,
    I am working on Process flow for RFP's, In case the supervisor is
    on Vacation, I need to reroute the same, Where Actually I need to do the Set Up for the same. Suggestions are welcome.

    Thanks,
    Vijay 
    BarbR
    Veteran Member
    Posts: 306
    Veteran Member
      One way to handle it is to set a timeout on the UserAction node and have it time out to a back-office task or a different route (path).
      jamesraceson
      Veteran Member
      Posts: 52
      Veteran Member
        Vijay,

        The best way to accomplish this is to set up the second or backup approver with the same tasks as the primary approver (supervisor in this case) through the online ProcessFlow Administrator Tool. Then on the User Task Definition page, set up the Start Date and Stop Date for the backup approver to coiencide with with vacation dates of the primary approver. This way you can set this ahead of time (if you know the vacation dates) and it "turn off" automatically after the Stop Date for the backup approver. Also ensure that the backup approver has the same settings on their profile as the primary approver (for example, if using LS 9 make sure the Workflow User is set to 1).
        Rob Conrad
        Veteran Member
        Posts: 73
        Veteran Member
          Hi Vijay -

          The BPM/Menu.do console settings can also be accessed programmatically using the Lawson API's - so you might consider a PF Vacation Custom Portal Page for your Approvers (Bookmarked) which allows them to choose the dates they are out of the office; and then programmatically make the User Task backup approver changes James talks about using the API calls to BPM Menu settings from your Vacation Custom Portal Page.

          So, you would pull the Approver Lawson User ID off the Lawson Portal page, and use that to look up their User Tasks/Category Filters and copy them to add a Backup approver with the Start/Stop dates the Original approver chose. You would just need the Original approver to select their Backup approver and their vacation Start/Stop dates on the Portal page and you're off to the races...

          Might make it a bit easier to maintain the process without any IT Administrative tactical effort?

          RC

          Vijay S
          Veteran Member
          Posts: 174
          Veteran Member
            Thanks to all of you !!!, Now i am able to set up the same!! I have one more doubt. I am pulling data from WFMETRICS and reading the RM-ID, pulling the employee info from RM Query with the help of RM ID and subsequently updating Pa42 with the supervisor info. Its working fine, If the count of approver is 1, in case it is more than 1 , i need to pull the latest record via DME query from WFMETRICS but it is always pulling the first record for the particular work unit (No suitable indexes for the criteria). Is there some global variable in the Pf that stores either Activity-Id that WFMETRICS stores? Or is there a way out so that i can pull up the latest record via DME ? Thanks Vijay
            jamesraceson
            Veteran Member
            Posts: 52
            Veteran Member
              Look in the WFACTIVITY table and see if it has what you need. You can also look in the WFACTVAR and get the information broken out by variable if needed.
              KK - Infor
              Veteran Member
              Posts: 61
              Veteran Member
                Vijay,
                You have a couple of different options
                - Use SQL
                - Use SORT-BY in the DME and MAX=1
                - Assuming the DME returns all the records, have your assign node outside the DME. That way; it will just use the last value returned.

                Hope this helps!
                - KK
                Vijay S
                Veteran Member
                Posts: 174
                Veteran Member
                  Thanks KK , I got past this one, since i need to select the last record, I put a assign statement within a loop.... So when it comes out it will always have the values from the last one.... tough it is not a good practice but it worked perfectly( at most there will be 3 records)