An AGS challenge... (ags approval)

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Shane Jones
Veteran Member
Posts: 460
Veteran Member

    Okay....

    I have a challenging task that I have been told by Lawson is impossible but I disagree and have been doing research.   I am hoping someone else may have thoughts on my idea....

    I want to have send the approver of a processflow an email that includes a link to either approve or decline an action RIGHT FROM THE EMAIL.   I have asked Lawson and was told it is impossible but the "display exec" includes an okay button updates something in a table to tell ProcessFlow that approval was granted for the action.  

    I am thinking that I should be able to include a link that does an AGS CALL to update the action to approved.  http://server/servlet/ags?_PDL.......

    Ideas... thoughts....

    Thanks

     

    Shane Jones
    Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
    Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
    ** Teach others to fish...
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member

      I have done this but the down side is the approver is required to log into Lawson after clicking the link. But the upside is that instead of having to select their Task, select the WorkUnit, select the Action, okay the Action and then confirm the Action all they have to do is key their login and password.

      To make this easier to design I created a seperate flow for the HTML Email and used a WorkObject in my approval flow to trigger it. I used a query to get the information I needed for each UserAction (the Activity ID can change from WorkUnit to WorkUnit) and put that into my hyperlink.

      href="http://!host/bpm/inbasket?FUNCTION=dispatch&WORKUNIT=!QUE_WORKUNIT&TASK=!QUE_WFQUETASK_TASK&APPRODLINE=!appProdline&RDUSER=!TaskID&PROCID=!QUE_PROCESS_ID&PROCNAME=!QUE_WFWORKUNIT_PROCESS_NAME&ACTID=!QUE_ACTIVITY_ID&ACTNAME=!ActivityName&ACTION=Approve" TITLE="Click this link to approve the task below">Approve

      I had to remove the angle brackets < > to get this to display with the variable names.

       

      David Williams
      Shane Jones
      Veteran Member
      Posts: 460
      Veteran Member
        Looks like I need to get the following information....

        !QUE_WORKUNIT
        !QUE_WFQUETASK_TASK
        !TaskID
        !QUE_PROCESS_ID
        !QUE_WFWORKUNIT_PROCESS_NAME
        !QUE_ACTIVITY_ID
        !ActivityName


        PROD=LOGAN&FILE=WFWUQUEUE&FIELD=WORKUNIT;TASK;PROCESS-ID;ACTIVITY-ID;ID;WFWORKUNIT.PROCESS-NAME&OUT=CSV&DELIM=~


        I am not sure where to get the following information:

        !QUE_WORKUNIT
        !QUE_WFQUETASK_TASK ---- I don't have a WFQUETASK file to pull from
        !TaskID ---- I am not sure where you defined this variable (file and field)
        !QUE_PROCESS_ID
        !QUE_WFWORKUNIT_PROCESS_NAME
        !QUE_ACTIVITY_ID
        !ActivityName ---- I am not sure where you defined this variable (file and field)


        Thanks
        Shane
        Shane Jones
        Tools: HR, Payroll, Benefits, PFI, Smart Office, BSI, Portal and Self-Service
        Systems: Lawson, Open Hire, Kronos, Crystal Reporting, SumTotal Learning
        ** Teach others to fish...
        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          I queried against the WFWUQUEUE table to get most of my variable values. The related tables are WFQUETASK and WFWORKUNIT. The TaskID was pulled from the WFUSERCAT table (using ActivityName and the category filter value). The ActivityName (and category filter value) was passed to this flow from my original flow and is the UserAction Task for the approver.
          David Williams