Hi,
This is my use case:
- I have a process launched waiting on a user tasks. The process was launched via webapi, and it gets the security configuration from its process model, as usual.- The security on the process model is setted to give Administration rights to the service account represented by api-key I'm using on my web apis- From another web-api using the same api-key, I execute cancelProcess function, and I get an error talking about inssuficient privileges to do the cancel
To my understanding, the process should cancel without errors because the service account used in web-api has administration rights on the process I want to cancel, but this is not what is happenning.
Any help will be appreciated
Discussion posts and replies are publicly visible
An alternative to actually issuing a "Cancel" on the process is to send it a message which, when received by the target process, causes it to transition immediately to a terminate end node. This results in the same outcome in that any user tasks that are waiting can no longer be accessed.
This also has the benefit in that the process ends "normally" and isn't flagged as having been cancelled.
Here's a good place to start: docs.appian.com/.../Send_Message_Event.html
I support Stewarts recommendation as it prevents any process alert messages to the alert receiver group. This becomes a problem as soon as you tell them they need to act on these messages.
Hi Stewart, my customer wants the process flagged as having been cancelled, the semantic implications it has are important for their business (public sector)
In the flow triggered by the receive message you can write something to a database table before you hit the terminate end node. The benefit of this is that this is a longer lasting store of what happened than the process in memory (which you want to flush out as soon as possible to minimize the resources being utilized)
Yes, I already did that.
So, the conclusion is that the user must be System Administrator in order to cancel a process?
Looks like it. The documentation just says "administrator" which I agree isn't clear - it could refer to either Process or System Administrator. From the discussion above it seems likely it requires System Administrator rights.