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
1886 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
philiposz803
over 8 years ago
@sikhivahans, I really appreciated your help. I followed the second design you suggested and I have created a sub process, place it after start node and did run the asynchronously with the parent process model. I got task Id all time i tested it more than 50 times. but i guess still we can't guarantee as you said.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
philiposz803
over 8 years ago
@sikhivahans, I really appreciated your help. I followed the second design you suggested and I have created a sub process, place it after start node and did run the asynchronously with the parent process model. I got task Id all time i tested it more than 50 times. but i guess still we can't guarantee as you said.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data