Proposal: a new API to end a process
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2013 04:50 AM
what do you think about creating a new API to end a process? Will it have some drawbacks?
Thanks.
Bye
Franco
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2013 05:00 AM

/** Delete an existing runtime process instance.
* @param processInstanceId id of process instance to delete, cannot be null.
* @param deleteReason reason for deleting, can be null.
* @throws ActivitiObjectNotFoundException when no process instance is found with the given id.
*/
void deleteProcessInstance(String processInstanceId, String deleteReason);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2013 08:55 AM
Thanks.
Bye
Franco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-01-2013 11:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-04-2013 05:24 AM
Anyway I'll try.
Thanks a lot.
Bye
Franco
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2013 06:46 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-05-2013 07:43 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2013 10:26 AM
For my business case, I need to be able to delete active (i.e. not completed) process instances.
However, for selected users, these deleted instances should be visible.
I am already using the API suggested method
void deleteProcessInstance(String processInstanceId, String deleteReason);
for that purpose.However, I don't see a way to query the
(Historic)ProcessInstanceQuery
interfaces to include these deleted instances: methods "finished()" and "unfinished()" seem to only take into account the "complete" status of a process instance. Am I wrong?Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2013 05:38 AM
these deleted instances: methods "finished()" and "unfinished()" seem to only take into account the "complete" status of a process instance. Am I wrong?
Indeed that is correct.
When you query the historic process instance by id, don't they just show up in the query results?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2013 08:38 AM
/** Only select historic task instances with the given task delete reason. */
HistoricTaskInstanceQuery taskDeleteReason(String taskDeleteReason);
When deleting a process, a reason can be passed. If we allow for HistoricProcessInstances to be queries on that, you can differentiate between those processes. A current workaround is maybe to inspect the "end-activity" to see if it has reached the actual end-event or not…
