How does contextProcessModels property of a!queryProcessAnalytics() function wor

How does contextProcessModels property of a!queryProcessAnalytics() function work?

My a!queryProcessAnalytics() function works great below when using contextProcessModels, but when I try and switch to contextProcessIds to display just the current process, it returns nothing. So then I backed up and just tried to hard-code the process ID that I want which is 6400, and that doesn't work. I tried using the processId variable and toInteger(6400) but no luck. What gives?

How is the contextProcessIds used correctly to return just those process IDs (pp!id) and can you show an example?

Thanks much!

local!report: a!queryProcessAnalytics(
report:cons!eOff_TASKS_GRID,
/* contextProcessModels: cons!EOB_MAIN_PROCESS_MODEL, */
           contextProcessIds:{tointeger(6400)}
          
           /*
contextProcessIds:
           contextProcessModels:cons!eOFF_MAIN_PROCESS_MODEL
           contextProcessIds:6400,
           ri!processId,*/
          
/*


OriginalPostID-201423

OriginalPostID-201423

  Discussion posts and replies are publicly visible

Parents
  • Thanks for rapid response! The function's report property is to to a Constant (report:cons!eOff_TASKS_GRID) which points to the Report Document under same name and its Report Context: is set to the main process model ("eOff Main Process Model"). So it seems it does have the context of Process does it not? See screenshot.

    I also did already a 'Process ID' column to the report and configured it's value to pp!id. Can you give me an example of using a!queryFilter() with it and a!queryProcessAnalytics()? But I don't understand why it's not working if the report context is a process model. If that worked wouldn't need the a!queryFilter() way.
Reply
  • Thanks for rapid response! The function's report property is to to a Constant (report:cons!eOff_TASKS_GRID) which points to the Report Document under same name and its Report Context: is set to the main process model ("eOff Main Process Model"). So it seems it does have the context of Process does it not? See screenshot.

    I also did already a 'Process ID' column to the report and configured it's value to pp!id. Can you give me an example of using a!queryFilter() with it and a!queryProcessAnalytics()? But I don't understand why it's not working if the report context is a process model. If that worked wouldn't need the a!queryFilter() way.
Children
No Data