<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to interrupt and end processinstance? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71788#M46539</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would also be interested in that. At the moment I try to reach the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show a Dialog to a user (userTask or javaService). User makes some input. If it ends "normally" the input is returned and its fine. But the user should be enabled to press "cancel" or "esc". Then process should stop returning to parent calling process. How would one model this with activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rusty, which constructs of BPMN do you mean? Which "needed events" you are talking about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Sep 2011 08:09:57 GMT</pubDate>
    <dc:creator>mhw</dc:creator>
    <dc:date>2011-09-20T08:09:57Z</dc:date>
    <item>
      <title>How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71787#M46538</link>
      <description>Hi,i'm new to Activiti and Bpmn.Is it possible to model the possibility to interrupt and end a processinstance at any time of the process? I know how to end it with Java but I want it to be modeled.Maybe I found a way with Bpmn2.0 but Activiti doesn't support the needed events.So I tried to model a</description>
      <pubDate>Tue, 20 Sep 2011 08:03:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71787#M46538</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-20T08:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71788#M46539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would also be interested in that. At the moment I try to reach the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Show a Dialog to a user (userTask or javaService). User makes some input. If it ends "normally" the input is returned and its fine. But the user should be enabled to press "cancel" or "esc". Then process should stop returning to parent calling process. How would one model this with activiti?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rusty, which constructs of BPMN do you mean? Which "needed events" you are talking about?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:09:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71788#M46539</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-20T08:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71789#M46540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm talking about message events. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe it could also work with signal events, but both aren't supported yet.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I'm not even sure it would work with these events. I've never found an BPMN example, that allows to interrupt and end a process at any time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rusty&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 08:37:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71789#M46540</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-20T08:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71790#M46541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought about this issue the whole afternoon. I see no possibility to model this kind of behavior with activity. For our use case it is enough to handle the failing of a sub process with the error event:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt; &amp;lt;process processType="Private" isExecutable="true" id="EscapeRegionEvent"&lt;BR /&gt;&amp;nbsp; name="Escape region Event Process"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;startEvent id="theStart" name="StartProcess" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="theStart" targetRef="subprocessThatCouldBeCanceled" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;subProcess id="subprocessThatCouldBeCanceled"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="startSubProcessEvent" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow targetRef="userTaskThatCouldBeCanceled"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sourceRef="startSubProcessEvent" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;userTask id="userTaskThatCouldBeCanceled" name="User task that could be canceled."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activiti:assignee="kermit" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow targetRef="endSubProcessError" sourceRef="userTaskThatCouldBeCanceled"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${cancelPressed}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow targetRef="endSubProcessNormal" sourceRef="userTaskThatCouldBeCanceled"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ${!cancelPressed}&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endSubProcessNormal" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="endSubProcessError"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;errorEventDefinition errorRef="canceled" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/subProcess&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="subprocessThatCouldBeCanceled"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; targetRef="normalEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;endEvent id="normalEnd" name="NormalEndProcess"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;terminateEventDefinition /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/endEvent&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;boundaryEvent id="catchError" name="CatchErrorEvent"&lt;BR /&gt;&amp;nbsp;&amp;nbsp; attachedToRef="subprocessThatCouldBeCanceled" cancelActivity="true"&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;errorEventDefinition errorRef="canceled" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow targetRef="handleEscalation" sourceRef="catchError"&amp;gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;userTask id="handleEscalation" name="Handle escalated issue"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Escalation: user task was canceled.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/documentation&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;sequenceFlow sourceRef="handleEscalation" targetRef="escalatedEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;endEvent id="escalatedEnd" /&amp;gt;&lt;BR /&gt;&lt;BR /&gt; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;…&lt;BR /&gt;&amp;nbsp; runtimeService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .setVariable(task.getExecutionId(), "cancelPressed", true);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; taskService.complete(task.getId());&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; task = taskService.createTaskQuery().processInstanceId(pi.getId())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .singleResult();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; assertEquals("Handle escalated issue", task.getName());&lt;BR /&gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;Just similar to the process in the examples.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would be nice to hear of some better solution (which could be viewed/edited in the model - without java).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 14:19:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71790#M46541</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-20T14:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71791#M46542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A better solution is to implement the missing events… Feel free to contribute those. The code of activiti is clearly written and fairly easy to understand. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 15:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71791#M46542</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-09-20T15:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71792#M46543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ronald,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yes, you are right. All code I viewed so far is clearly written. I am willing to contribute. I will take these steps here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://docs.codehaus.org/pages/viewpage.action?pageId=163872771" rel="nofollow noopener noreferrer"&gt;http://docs.codehaus.org/pages/viewpage.action?pageId=163872771&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I will extend the class BpmnParse and add a method like&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"parseBoundaryTimerEventDefinition" and "addTimerDeclaration"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a tutorial how to setup a typical activiti developer workspace?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am not a BPMN-specialist.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;@Rusty: Have you a BPMN-example for me?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 08:32:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71792#M46543</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-21T08:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71793#M46544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti is a typical maven project, nothing specific. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What events are missing btw? Please file jira issues for those after discussing them here&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 12:56:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71793#M46544</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-09-21T12:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71794#M46545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, I understand the setup. Will try it today evening at home.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We need the "signal boundary event" (not sure how this is formulated in BPMN) for cancellation of a sub process from "outside" (user press the cancel button).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found the same thing discussed here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=10&amp;amp;t=897" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=10&amp;amp;t=897&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Will now try to &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;mimic a signal event using a wait state (receive task) + signal call from a service task&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 13:17:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71794#M46545</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-21T13:17:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71795#M46546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for your support!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the way I would try to model a trigger to interrupt and end a process. But I'm not sure it would work. I'm really new to BPMN.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rusty&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[attachment=0]BPMN_Bsp.PNG[/attachment]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 06:47:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71795#M46546</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-22T06:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71796#M46547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think this one should work, but I guess it's not the best way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 07:52:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71796#M46547</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-22T07:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71797#M46548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am new to BPMN, too &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I think the needed cancel event would look like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;…&lt;BR /&gt;&amp;lt;/subProcess&amp;gt;&lt;BR /&gt; &amp;lt;boundaryEvent id="_4" name="CancelEvent" attachedToRef="_2"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;outgoing&amp;gt;_6&amp;lt;/outgoing&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;cancelEventDefinition/&amp;gt;&lt;BR /&gt; &amp;lt;/boundaryEvent&amp;gt;&lt;BR /&gt; &amp;lt;sequenceFlow id="_6" name="Sequence Flow" sourceRef="_4" targetRef="_5"/&amp;gt;&lt;BR /&gt; &amp;lt;scriptTask id="_5" name="Goodbye"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;incoming&amp;gt;_6&amp;lt;/incoming&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;outgoing&amp;gt;_7&amp;lt;/outgoing&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;script&amp;gt;System.out.println(&amp;amp;quot;Cancel of subprocess handled&amp;amp;quot:smileywink:;&amp;lt;/script&amp;gt;&lt;BR /&gt; &amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;[attachment=0]cancelevent.jpg[/attachment]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this right? Should I implement behavior like this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 11:24:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71797#M46548</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-22T11:24:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71798#M46549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Micheal,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I also thought of this solution but my tutor (i'm a Student, doing an internship) means I shouldn't implement the whole process as a subprocess. I also think there should be another way. For Example to prevent subprocesses in a subprocess.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rusty&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 11:37:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71798#M46549</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-22T11:37:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71799#M46550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Rusty,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;that is an interesting point. But as I understand according to BPMN 2.0 specification:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The catch Cancel Intermediate Event MUST only be attached to the boundary of a Transaction Sub- &lt;BR /&gt; Process and, thus, MAY NOT be used in normal flow.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;With BPMN we only seem to have the ability to attach the cancel event to a sub process boundary. Perhaps there are other possibilities which I oversee…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With current version of activiti we cannot use the cancel event. So I will try it with a solution similar to your post and will post my results here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I should implement the cancel event in activiti, I would need a xml example how it should be.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2011 11:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71799#M46550</guid>
      <dc:creator>mhw</dc:creator>
      <dc:date>2011-09-22T11:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71800#M46551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;After reflecting my examples again, I guess they will not work. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think if I end one branch of the parallel gateway, the other will continue anyway. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm going to test this issue the next days.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 13:46:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71800#M46551</guid>
      <dc:creator>rusty</dc:creator>
      <dc:date>2011-09-23T13:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71801#M46552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am sorry if I am here with a silly question. In my understanding from this discussion to interrupt a process you have to model it by BPMN with a process that seems very complex for newbe like me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why is not provided an interrupt function in activiti engine. It seems to me quite natural. Maybe I misunderstood the objective of activiti itself, but really I am a little bit confused.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kind regards&amp;nbsp; :ugeek: and Thank you very much for your patience&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Oct 2012 22:42:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71801#M46552</guid>
      <dc:creator>albertorugnone1</dc:creator>
      <dc:date>2012-10-24T22:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to interrupt and end processinstance?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71802#M46553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;@albertorugnone:&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** Delete an existing runtime process instance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * @param processInstanceId id of process instance to delete, cannot be null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * @param deleteReason reason for deleting, can be null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; * @throws ActivitiException when no process instance is found with the given id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; void deleteProcessInstance(String processInstanceId, String deleteReason);&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Oct 2012 08:18:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-interrupt-and-end-processinstance/m-p/71802#M46553</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-10-25T08:18:13Z</dc:date>
    </item>
  </channel>
</rss>

