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
9 replies
Subscribers
6 subscribers
Views
6011 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
Cancelling Specific Tasks From a Separate Process
Issam Dabaie
Certified Senior Developer
over 8 years ago
Hello,
I have a report that assigns a task to a user.
A user is selected, the task is assigned to them, and this kicks off a process model that assigns and creates the task. There is a process with a sub-process contained within it.
The task needs to be able to be reassigned to another user via the report. The issue is that this creates a duplicate task but does not cancel the first task.
How can I cancel the first task if the new task is created in its stead?
The parent process sets up the values and the sub-process contains the user input task.
Thank you for your help.
OriginalPostID-261324
Discussion posts and replies are publicly visible
Parents
0
Poorna Guduri
A Score Level 1
over 8 years ago
Yes this works for sure. Through the function a!queryProcessAnalytics() you will be able to get the existing task id and also the process instance id when you pass the context process model. And a question here: Why not cancelling the process directly? Is there any specific reason you are going for Send Message Event to invoke a new process? The reason why I am asking is because the functionalities are not recommended any more as they got deprecated..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Reply
0
Poorna Guduri
A Score Level 1
over 8 years ago
Yes this works for sure. Through the function a!queryProcessAnalytics() you will be able to get the existing task id and also the process instance id when you pass the context process model. And a question here: Why not cancelling the process directly? Is there any specific reason you are going for Send Message Event to invoke a new process? The reason why I am asking is because the functionalities are not recommended any more as they got deprecated..
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
Children
No Data