finding related workflow....

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

    Anyone know how to find the workflow in IRC that is connected to a PA52 action?    The situation is we have an action on PA52 that has workflow attached to it and I can not find the linked workunit.   it is easy to go the other direction when you know a workunit number so there has to be an easy way to search for a workunit when you know the PA52 action.
    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
      You can use the WorkUnits Pending Action view to narrow your search down, and from there you should be able to filter down to date or some other key WorkUnit criteria field to limit the number of records you have to search through.
      David Williams
      Tim Cochrane
      Veteran Member
      Posts: 154
      Veteran Member
        Have you tried building a key string (Company+Process Level +Employee+Action+Action Nbr+Effective Date), then as the work unit is being built in the trigger code, write this key string value as a work unit variable. You can use the key string in a number of different tools (sql, COBOL, Design Studio, etc) and query the Work Unit Variable table or Object, depending if you're using PFI or IPA, later on to find the work unit.
        Tim Cochrane - Principal LM/IPA Consultant
        John Henley
        Posts: 3353
          Tim, that's a good solution, however it only works if you have control over the workunit trigger code. In the case of Lawson-delivered ones, such as for PA52 and Requisitions, would require doing something similar, but rather than putting it in the trigger code, it could be done as the first step in the flow itself.

          Shane, David's solution is the only way I know. You can do a scan of the workunits table, and in the "key string" you will find the variables strung together that will match to a personnel action. In other words, take the PA fields (company, 'E', eff date, action code, employee, etc. etc.) -- you will need to look at the workunits table to get the exact format -- and work backwards.
          Thanks for using the LawsonGuru.com forums!
          John