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
  • @greggl Actually going through the documentation at https://forum.appian.com/suite/help/16.1/Process_Reports.html ('Report Descriptions' section in particular) will help you understand which type of Process Reports need a context and which doesn't.

    And you can also identify from the category as well, for instance 'All Processes' Process Report is intended to report on all processes but not against a specific process and so it doesn't require a context. Also Appian won't ask you for a context for those Process Reports that execute independent of the context.
Reply
  • @greggl Actually going through the documentation at https://forum.appian.com/suite/help/16.1/Process_Reports.html ('Report Descriptions' section in particular) will help you understand which type of Process Reports need a context and which doesn't.

    And you can also identify from the category as well, for instance 'All Processes' Process Report is intended to report on all processes but not against a specific process and so it doesn't require a context. Also Appian won't ask you for a context for those Process Reports that execute independent of the context.
Children
No Data