Skip to main content
November 3, 2022
Solved

ProcessTaskLink

  • November 3, 2022
  • 8 replies
  • 0 views

Hello,

I am trying to incorporate a milestone report that links to different tasks in a process model:

a!milestoneField(

links: {
a!processTaskLink(
label: "Tasks in progress",
task: 536875568
),

a!processTaskLink(
label: "Tasks in progress",
task: 3808
)

My problem is that the task report ID changes every time the process is run. Is there a way to query my process report for the dynamic task ID?

Thanks,

Best answer by stefanhelzle0001

No. Task IDs are not reused. But tasks have a UUID which is static.

8 replies

stefanhelzle0001
November 3, 2022

No. Task IDs are not reused. But tasks have a UUID which is static.

November 3, 2022

Thanks so much for answering!

Where can I find the UUID? I am going to try to see if a!processTaskLink will accept that in the parameters.

If not, my backup plan is to set up a query for the process report object that (HOPEFULLY) returns the dynamic task ID.

thanks again

stefanhelzle0001
November 3, 2022

The source for any task information is a process report. In that report, just add two columns with the task ID and the task UUID and maybe an identifier for your case. Then you can query that report to return the ID for a given task UUID and case identifier.