Skip to main content
September 14, 2021
Question

Task reports - Get parent and child task

  • September 14, 2021
  • 2 replies
  • 0 views

I have a task report.

My process has 2 tasks and in parallel has a subtask that has 3 task..

When the process starts all 5 tasks started at the same time.

Parent pp!id: 1010

Child pp!id: 1011

How do I query the task report for both child and parent at the same time?

I have tried making a cdt that includes parentID and passing it to child, but can not query on it as in the report cdt.parrentId is returning a list of text within list of variant when queried.

And I can't use a query filter on a list of text within a list of variant. as includes, and = operators are not suitable from what i have seen.

2 replies

richardm900458
September 15, 2021

I would recomment a task report over multiple processmodels:


Get the processes for a process model by passing a process model to the context:

a!queryProcessAnalytics(
  report: cons!PROCESSES_FOR_PM,
  contextProcessModels: cons!PURCHASE_REQUEST
)

 cons!PURCHASE_REQUEST -> constant with multiple process models. -> your main process and the sub process.

check

docs.appian.com/.../fnc_system_a_queryprocessanalytics.html

September 15, 2021

This is an alternative to setting the report to include subprocesses which I am doing at the moment.

This does not help with querying the tasks of a particular active process and its subprocesses.