-
1. Re: Aborting a workitem does not abort the execution branch
lakshmi.sampath Mar 30, 2012 7:38 PM (in response to affandar)Try changing the independent flag on the call activity sub process property to false. Defaul is true which will not call abort on the sub processes.
lakshmi.
-
2. Re: Aborting a workitem does not abort the execution branch
affandar Mar 30, 2012 7:49 PM (in response to lakshmi.sampath)Thanks Lakshmi. Unfortunately there is no sub process here. This is all happening within the main process.
-
3. Re: Aborting a workitem does not abort the execution branch
lakshmi.sampath Mar 30, 2012 7:53 PM (in response to affandar)Can you upload your process and work item handler where you are using workItemManager.abortWorkItem
lakshmi.
-
4. Re: Aborting a workitem does not abort the execution branch
affandar Mar 31, 2012 12:48 AM (in response to lakshmi.sampath)The following forum question is also about the exact same problem and the zip file at the end contains the repro of the problem I am seeing as well.
Thanks
-
5. Re: Aborting a workitem does not abort the execution branch
swiderski.maciej Apr 2, 2012 1:18 PM (in response to affandar)It is expected behavior that when aborting a work item it will just quit the one that is currently active and will go on with the rest of the process. As it refers only to a work item rather than the process instance. Of course if you would like to abort completely process instance when aborting a work item it is still possible but you need to implement such logic in your work item handler.
HTH
-
6. Re: Aborting a workitem does not abort the execution branch
affandar Apr 5, 2012 8:49 PM (in response to swiderski.maciej)Thanks Maciej. I figured the same.
To implement the logic in the workitemhandler I am grabbing hold of the knowledgesession inside the handler and then calling abortProcessInstance with the processinstanceid.