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
6 replies
Subscribers
6 subscribers
Views
2632 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
How can I get tp!id for a task, when a task is assigned and before it has been s
zubairs8170
Certified Senior Developer
over 9 years ago
How can I get tp!id for a task, when a task is assigned and before it has been submitted?
OriginalPostID-202561
OriginalPostID-202561
Discussion posts and replies are publicly visible
0
Conor Cahill
Certified Lead Developer
over 9 years ago
You can create a Task Report. In that report you can specify a column for the Task ID.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zubairs8170
Certified Senior Developer
over 9 years ago
To provide some more context: the task is initially assigned to person X within process A. Then process B may run which updates the assignee process variable in process A. This should then automatically reassign the task to the new assignee.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zubairs8170
Certified Senior Developer
over 9 years ago
I have something that works using exception flow (and without the use of tp!id)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Conor Cahill
Certified Lead Developer
over 9 years ago
Once a task node has been started, the assignment expression executes. This means that after starting a task node, updating the process variable used in its assignment will not change the assignment of the task.
If you want to reassign a task, I would suggest using the Task Smart Services Plug-in, found here:
forum.appian.com/.../summary
You'll still need to create a Task Report in order to pull the relevant Task IDs into process B, but this will allow the reassignment to work correctly.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zubairs8170
Certified Senior Developer
over 9 years ago
Hi conorc,
Thanks for the suggestion
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
vishnuv
A Score Level 1
over 9 years ago
@zubairs, create a report from designer, select report type as "Task" and context type as "Tasks by process model". Once the report is created, use a!queryProcessAnalytics() and get the required data.
Below link can help :
https://forum.appian.com/suite/help/7.11/System_Functions.html#a!queryProcessAnalytics.28.29
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel