cancel an workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-02-2011 09:51 AM
It is possible to stop (cancel) and workflow??
person 1 ——–requestApproval——-> person 2
requirement:
person 1 need to cancel the Approval UserTask before the approval…
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-03-2011 08:17 AM
deleteProcessInstance(java.lang.String processInstanceId, java.lang.String deleteReason)
Delete an existing runtime process instance.
is there a way to know which process are "stale"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-04-2011 05:01 AM
I think to delete the workflowinstance works only for your given example, the "approver" process with user-tasks.
I think for any other example (where scripts and services are called) there has to be a compensation event defined in the BPMN process definition, to undo the actions already carried out… But this is outside the workflow-engine capability atm. (correct me if i am wrong)
Lars
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2011 06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2011 06:33 AM
regarding to:
I think for any other example (where scripts and services are called) there has to be a compensation event defined in the BPMN process definition, to undo the actions already carried out… But this is outside the workflow-engine capability atm. (correct me if i am wrong)
Found out this issues yesterday…
I'm using JPA…after an approver (On a user task) approve the request…edit my DB on 3 service tasks.
PROBLEM:
IF i get an exception on the second service task, I get back to the userTask (and that's great), but on the first service task I've already committed stuff to the DB so I have to "manually" rollback.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2011 05:18 AM
Are you using spring? Is the JPA on the same datasource as activiti? If so, you could leverage Spring's PlatformTransactionManager and the TransactionAwareDataSourceProxy we use to have JPA and Activiti commit on the same connection…
When using multiple datasources and transactions, it's always tricky, not just in Activiti.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-13-2011 10:44 AM
I'm not using spring…and using diferent datasources. So it has to be a "manual" rollback

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-23-2011 05:15 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-31-2011 08:40 PM
Thanks,
Matthias
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 03:06 AM
