GenProcID of dbqueue started from a Schedule

Hi,

I have a process that calls the StartNow method of a schedule to trigger recalculation of specific company policies whenever I like rather than at regular intervals.

I'd like to know when the company policies have finished before starting other jobs.

I thought I could do this in my process by checking the DBQueue  for POL-K-QERPolicyFill tasks with the specific GenProcID, but I've not found a way to return the correct GenProcID.

Is this possible? Any thoughts/advice would be appreciated.

Craig