<?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 Intermediate Catching/Throwing Events in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16701#M7446</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right now I'm trying to model the possibility to terminate a process after a given amount of time has passed (i.e. "if the process did not terminate normally withing x hours -&amp;gt; terminate it"). So I've been looking at the Signavio Modeler which now allows to select the subset of BPMN that is supported by Activiti (as far as I understand). This is a great feature. But since intermediate events are missing in that list I'm wondering how I could react to a timer. Is that possible programmatically? Or is it just missing in the editor and supported anyway? Or is this functionality missing and will follow in 5.1 (or later).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same goes for the "Terminate End Event". Right now it seems to be missing in the editor but is it supported? I think implementing could be rather easy. From my understanding of the code it might work like the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; private void terminateExecution(ExecutionImpl execution) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (ExecutionImpl e : execution.getExecutions()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; terminateExecution(e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; terminateExecution(execution.getSubProcessInstance());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.end();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; ProcessInstance processInstance = runtimeService.createProcessInstanceQuery().singleResult();&lt;BR /&gt;&amp;nbsp; ExecutionEntity executionEntity = (ExecutionEntity) processInstance;&lt;BR /&gt;&amp;nbsp; for (ExecutionImpl e : executionEntity.getExecutions()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; terminateExecution(e);&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This way all executions belonging to the process instance will get terminated (which is what I need the terminate event to do). I'm currently thinking about putting this code into a user task but ending the process the user task belongs to does not sound to be right &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Is there another way to do this properly?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 14:03:59 GMT</pubDate>
    <dc:creator>egore911</dc:creator>
    <dc:date>2010-12-07T14:03:59Z</dc:date>
    <item>
      <title>Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16701#M7446</link>
      <description>Right now I'm trying to model the possibility to terminate a process after a given amount of time has passed (i.e. "if the process did not terminate normally withing x hours -&amp;gt; terminate it"). So I've been looking at the Signavio Modeler which now allows to select the subset of BPMN that is suppo</description>
      <pubDate>Tue, 07 Dec 2010 14:03:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16701#M7446</guid>
      <dc:creator>egore911</dc:creator>
      <dc:date>2010-12-07T14:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16702#M7447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;- Timers are definitely supported by the engine. I would need to double check if the Activiti perspective doesnt have it. However, you can switch to the Complete perspective and use the timer event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The terminate end event is not yet implemented. However, it is definitely a valid request (and should not be that hard to implement indeed), I added a Jira for it: &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-432" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-432&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To implement it yourself currrently, just use a service task with custom implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 10:23:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16702#M7447</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2010-12-08T10:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16703#M7448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I found the timer event. I guess I must have been blind. On the other hand now I need a intermediate escalation event. Am I blind again? I double checked and it is not available in the Activiti tileset of the modeler. And I looked at the sources and could also not find any trace of it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oops, I'm having bad timing &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I just tried to implement the terminating end event myself and opened an issue (which I resolved a duplicate of yours). You can find my code at ACT-432&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Dec 2010 11:45:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16703#M7448</guid>
      <dc:creator>egore911</dc:creator>
      <dc:date>2010-12-08T11:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16704#M7449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We could use support for a terminate end event because our current proprietary workflow implementation behavior supports it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Couldn't the terminate node simply cause the instance to be deleted with a delete reason of "process termination" or something similar? Not sure how that would work in a subprocess though. We currently terminate the subprocess without affecting peer subprocesses or the parent process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We will take a look at the open Jira issue (ACT-432) and possibly provide an implementation via pull request if we work out the logistics unless you have and example or an implementation-in-progress we can leverage.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 18:46:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16704#M7449</guid>
      <dc:creator>lsmall</dc:creator>
      <dc:date>2014-12-02T18:46:16Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16705#M7450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see a terminate node available in the Designer palette and a test for termination at the process and subprocess levels:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/end/TerminateEndEventTest.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, there are behavior classes in the engine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/activiti-engine/src/main/java/org/activiti/engine/impl/bpmn/behavior/TerminateEndEventActivityBehavior.java&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are terminate nodes supported or not?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that terminate nodes are changed to none end events when importing and deploying in Modeler. Is that the only issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 20:25:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16705#M7450</guid>
      <dc:creator>lsmall</dc:creator>
      <dc:date>2014-12-02T20:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Intermediate Catching/Throwing Events</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16706#M7451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Also not documented in the User Guide yet.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Dec 2014 20:27:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/intermediate-catching-throwing-events/m-p/16706#M7451</guid>
      <dc:creator>lsmall</dc:creator>
      <dc:date>2014-12-02T20:27:09Z</dc:date>
    </item>
  </channel>
</rss>

