PA52 generated flows that wait for PA100 update?

 3 Replies
 0 Subscribed to this topic
 52 Subscribed to this forum
Sort:
Author
Messages
Gene B.
Basic Member
Posts: 12
Basic Member
    I am new to workflow. I have flows that notify our user provisioning team of New hires and Re-hires. New hires are entered directly through HR11 and also through PA52.4 Hire an applicant. Rehires through PA52 using a rehire action entered as not immediate.
    I created a flow that runs off the HR11 Add Action. I have flows that kick off for PA52 Rehire and PA52.4 but was wondering if there is a way in general to have a flow kick off after the PA100 Action Update of these transactions? Sometimes these pending transactions get deleted or changed.
    Or if there is just a better way to do this entire thing and be triggered differently?
    David Williams
    Veteran Member
    Posts: 1127
    Veteran Member
      You could run a flow nightly that queries for these types of HR transactions and then send out your notifications from your results.
      David Williams
      Kenn
      Basic Member
      Posts: 11
      Basic Member
        Correct me if I'm wrong, but it seems that your issue is that you want to trigger the notifications after the run of the PA100 is complete.  What you can do is write a flow that kicks off the PA100 then the next node would be a query node to check the QUEUEDJOB table for the PA100 job.  If it is still running, then pause for 1 minute, then loop back around and check again and continue until the job is complete.  Then send the email.

        David Williams
        Veteran Member
        Posts: 1127
        Veteran Member
          If you use a WebRun to run the job, just add &WAIT=true to the end and the flow will wait until the job is completed before moving on. You don't need to check and pause that way.
          David Williams