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
4 subscribers
Views
1848 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I recently came across an unexpected behavior with task escalations. When attem
bradc
over 9 years ago
I recently came across an unexpected behavior with task escalations. When attempting to send tp!id or tp!starttime via an alert or message event from a task escalation, the values sent are not that of the task associated with the escalation. Instead, it appears that the escalation has a tp!id and tp!starttime associated with itself, and not the task I'm attempting to escalate.
Has anyone else experienced this behavior and come up with a solution? I would like to send the tp!id and tp!starttime directly from the escalation to an alert and/or message event.
As a side note, the tp!display and tp!name does send the task values. I have not testing any other tp! values.
OriginalPostID-149062
OriginalPostID-149062
Discussion posts and replies are publicly visible
0
sikhivahans
over 9 years ago
@bradc Hi, few months back even we came across the same situation and we used the following procedure in order to overcome this:
>> Send process id (in which task resides), task name (tp!display or tp!name) as message properties to the target process which has to be invoked upon escalation.
>> In the target process, query the process analytics with filters namely process id, task name (which are received from the process that contains task) and obtain the task id.
Once if you have task id, again you can query the process analytics and obtain the information associated with task.
I don't know how far the above solution is scalable in terms of best practices but let's see if any other practitioners comes with best approach.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bradc
over 9 years ago
This is the work around I had in mind, but I was hoping for a more straight forward solution.
Thank you for sharing.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sikhivahans
over 9 years ago
Further you may tweak the above approach by making querying the process analytics and resolve the task id before hand while sending the task id as parameter (as the message parameters are expressionable) to target process.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Eduardo Fuentes
Appian Employee
over 9 years ago
Just to add more information to this, you're correct. Escalations, as part of the design of the product, have their own properties. Using tp!id will return the escalation ID not the task id. This is how the product was designed.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
bradc
over 9 years ago
Hi Eduardo,
That was my assumption, thank you for confirming.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel