Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
23 replies
Subscribers
6 subscribers
Views
10057 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
AI and Rules
How does contextProcessModels property of a!queryProcessAnalytics() function wor
greggl
over 8 years ago
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
0
sikhivahans
over 8 years ago
Here is the expalnation re why the usage of 'contextProcessIds' isn't making a difference:
So, a context parameter(contextGroups/contextProcessIds/contextProcessModels/contextUsers) being passed to the a!queryProcessAnalytics() should match the category of the context of the Process Report.
For instance, if the category of Process Report is 'Process Model' (as per the attached example), then you can only use 'contextProcessModels' but not contextGroups/contextProcessIds/contextUsers. Infact using any other categories won't work and makes no difference. Simply speaking, a!queryProcessAnalytics() can accept AT MOST only one context and that too, it should match the category of the context in the Process Report(which is Process Model as per the report).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
Here is the expalnation re why the usage of 'contextProcessIds' isn't making a difference:
So, a context parameter(contextGroups/contextProcessIds/contextProcessModels/contextUsers) being passed to the a!queryProcessAnalytics() should match the category of the context of the Process Report.
For instance, if the category of Process Report is 'Process Model' (as per the attached example), then you can only use 'contextProcessModels' but not contextGroups/contextProcessIds/contextUsers. Infact using any other categories won't work and makes no difference. Simply speaking, a!queryProcessAnalytics() can accept AT MOST only one context and that too, it should match the category of the context in the Process Report(which is Process Model as per the report).
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data