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
7 replies
Subscribers
6 subscribers
Views
4366 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Is it possible to retrieve the tp!id (task id) from a task when its assigned? I
mikec
over 9 years ago
Is it possible to retrieve the tp!id (task id) from a task when its assigned? I have an ac value "taskid" where I am assigning the value as tp!id and saving off into pv!taskid all on the input. I need the task Id to pass to a notifications sub-process to generate a link to that task to put in the reminder to complete task email.
When I run the process it does not seem to be generating a task id except on output; meaning I have to complete the task before the id is generated. As you can see if that happens there is no need for reminder emails.
OriginalPostID-151537
OriginalPostID-151537
Discussion posts and replies are publicly visible
Top Replies
praveenj
over 9 years ago
+1
Mike, attached is the snap shot of a mocked up solution you might be interested in. The key to this solution is a plugin developed by Appian PS team which provides a function/expression to query a task…
0
Margaret Haymann
Appian Employee
over 9 years ago
Mike pv's do not get populated until the node(smart service) has been submitted One way to accomplish this is to setup an exception timer and loop back to the task with an email notification before reassigning the task
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Richard
over 9 years ago
You can also query process analytics for current task ID before the task is completed in a parallel flow and use that to trigger notification if you want a more tailored solution than Escalations and Exceptions offer.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
mikec
over 9 years ago
Thanks everyone
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
praveenj
over 9 years ago
Mike, attached is the snap shot of a mocked up solution you might be interested in.
The key to this solution is a plugin developed by Appian PS team which provides a function/expression to query a task id based on a process id and a task name. Once you can get the task id, you can construct the url like this... rule!APN_getSiteUrl() & "tempo/tasks/task/" & pv!taskId
I have submitted that "Get Process Task ID" plugin to shared component and hopefully should be available soon once approved.
Cancel
Vote Up
+1
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
I recently implemented that in a project. In an escalation I send a message to start a process. As parameter the process expects the taskname. As the message already contains the process id of the sender it is quite easy to get the task id using a portal task report. You could even create a custom rule which uses queryprocessanalytics to do that in case you need the taskid directly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
thoward
over 9 years ago
You are correct. The tp!ID is created, but is not saved back to the pv! (whether specificed in the Input or Output) until the task is submitted. I would suggest creating an Escalation and pass the tp!id to your Notification process using a Message Event.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Stefan Helzle
A Score Level 3
over 9 years ago
When you want to send a message in an escalation the tp!id is not available. But tp!name is and can be used to determine the taskid using process analytics. PVs are populated on task completion only.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel