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
5 replies
Subscribers
7 subscribers
Views
1884 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
#webAPI#queryProcessAnalytics I got a requirement to return a taskId (tp!id
philiposz803
over 8 years ago
#webAPI#queryProcessAnalytics
I got a requirement to return a taskId (tp!id) in a process model for a webAPI(use startProcess()) call. I use Process task report and queryProcessAnalytics to get the task id of a process and use repression rule to filter the task id's using process instance id,(please see attached below), but the execution time of response of web API is faster than process model execution until it hits the input task node. when the instant id is passed to an expression rule, it returns a null tp!id sometimes. (it returns task id when Process model processing time than webapi response). How can I handle this issue so that i will always get a task id?
Thank you.
question.docx
OriginalPostID-223066
OriginalPostID-223066
Discussion posts and replies are publicly visible
Parents
0
sikhivahans
over 8 years ago
I believe I have done something similar to thoughts of @stefanh. Simply speaking, we aren't relying on anything as the asynchronous calls aren't trustworthy.
@philiposz Mostly you may get the taskId as the task is triggered immediately but make sure that you also test it in the environments such as Live where the volume of processes is high.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
sikhivahans
over 8 years ago
I believe I have done something similar to thoughts of @stefanh. Simply speaking, we aren't relying on anything as the asynchronous calls aren't trustworthy.
@philiposz Mostly you may get the taskId as the task is triggered immediately but make sure that you also test it in the environments such as Live where the volume of processes is high.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data