<?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 ExecutionListener in BpmnModel in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125911#M88612</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am working on an application in which we have our own internal model for representing a workflow but would like to delegate the core workflow processing to activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thus I am transorming our own model into a org.activiti.bpmn.model.BpmnModel, then transforming the model to xml using BpmnXmlConverter so that I can deploy the resulting xml in activiti engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to add executionListeners on all activities and intermediate catching events, so that I can update our own internal model when things happen.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have run into several difficulties :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1) If I add an ExecutionListener on a UserTask, it is not taken into account in the XML converter (check BaseBpmnXmlConcerter.writeListeners and you will see that it takes oinly into account the taskListeners, not the executionListeners) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; is that how Activiti works? Can we only have task listeners on user tasks, or is it a limitation on the xml converter only?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I don't seem to be able to add any listener to an IntermediateCatchEvent. The getExecutionListeners() method is defined on Activity and IntermediateCatchEvent is not in the same hierarchy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=&amp;gt; on &lt;/SPAN&gt;&lt;A href="http://www.activiti.org/userguide/index.html#executionListeners" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#executionListeners&lt;/A&gt;&lt;SPAN&gt; I saw that executionListeners were actually supposed to work with start and end of intermediate events, so I assume it's a limitation on the BpmnModel, not on the engine… or did I miss a way to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Not a question, just a suggestion : my code is more difficult to write because there is no common interface between Process and SubProcess (for the addFlowElement method). Would be really great to create interfaces for the methods in common between objects that do not have the same hierarchy so that we can manipulate them more easily!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 31 Jan 2013 17:23:09 GMT</pubDate>
    <dc:creator>gguimezanes</dc:creator>
    <dc:date>2013-01-31T17:23:09Z</dc:date>
    <item>
      <title>ExecutionListener in BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125911#M88612</link>
      <description>HelloI am working on an application in which we have our own internal model for representing a workflow but would like to delegate the core workflow processing to activiti.Thus I am transorming our own model into a org.activiti.bpmn.model.BpmnModel, then transforming the model to xml using BpmnXmlCo</description>
      <pubDate>Thu, 31 Jan 2013 17:23:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125911#M88612</guid>
      <dc:creator>gguimezanes</dc:creator>
      <dc:date>2013-01-31T17:23:09Z</dc:date>
    </item>
    <item>
      <title>Re: ExecutionListener in BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125912#M88613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1) Execution-listeners can be added to any activity in Activiti, tasks included. This seems to be a limitation of the BPMNConverter&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) I don't see any reason why listeners won't work on intermediate events in the engine, so indeed a limitation of the explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you create a JIRA-issue with these findings in it? Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 07:58:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125912#M88613</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-02-01T07:58:48Z</dc:date>
    </item>
    <item>
      <title>Re: ExecutionListener in BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125913#M88614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Done:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) issue ACT-1558 (bug)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) issue ACT-1559 (improvement)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 09:26:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125913#M88614</guid>
      <dc:creator>gguimezanes</dc:creator>
      <dc:date>2013-02-01T09:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: ExecutionListener in BpmnModel</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125914#M88615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe I have fixed 1) and 2) just now on master. Fred, could you check and confirm?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Feb 2013 10:08:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/executionlistener-in-bpmnmodel/m-p/125914#M88615</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-02-01T10:08:59Z</dc:date>
    </item>
  </channel>
</rss>

