<?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 Deployment Listener in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77672#M51420</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does Acitiviti have any support for a deployment listener ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to be able to get notified when a deployment is taken place, so that I can retrieve some information from the ACT_RE_PROCDEF table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my Application, we needed to make some relationships with our tables and activiti's tables. Of course we did not modify activiti tables, but we did create new tables that has reference to the activiti tables. One of our relationship, is with ACT_RE_PROCDEF, so when my user deploys a new bpmn xml file (through my application), I want to be able to get some information, like the id of the ACT_RE_PROCDEF table that has just been created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to achieve something like this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Aug 2011 12:41:05 GMT</pubDate>
    <dc:creator>jcharnet</dc:creator>
    <dc:date>2011-08-31T12:41:05Z</dc:date>
    <item>
      <title>Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77672#M51420</link>
      <description>Does Acitiviti have any support for a deployment listener ?I want to be able to get notified when a deployment is taken place, so that I can retrieve some information from the ACT_RE_PROCDEF table.In my Application, we needed to make some relationships with our tables and activiti's tables. Of cours</description>
      <pubDate>Wed, 31 Aug 2011 12:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77672#M51420</guid>
      <dc:creator>jcharnet</dc:creator>
      <dc:date>2011-08-31T12:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77673#M51421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can't specifically listen to deployment but you can, however, use a BPMNParseListener (search the forum, I remember a post where I explain how to hoot it in) which will be called when a bmpn20.xml file is parsed. The parsing happens when a NEW process is deployed, but also when the a process-definition is loaded that was not in the cache (in normal circumstances, this is only once while the engine is running).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess you can leverage this concept, and possibly check if the version you're about to parse matches your own domain-model bean that matches the PROC_DEF_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 12:52:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77673#M51421</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-31T12:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77674#M51422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying it out, but it seems that when my listener is being called the ProcessDefinition object, has a null id attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this normal ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Inspecting the ProcessElement object, I am able to get the ID, but this ID will not match the column ID_ in the ACT_RE_PROCDEF table, because in the table it has two numbers after the id name. One I beleive is the version, the other I'm not quite sure what it is !&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ex:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If I define in my workflow an id = "TestWorkflowConditionalLoop", in the ID_ column of ACT_RE_PROCDEF I would have something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"TestWorkflowConditionalLoop:1:4431". Correct ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is what I need to map on my side.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 13:53:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77674#M51422</guid>
      <dc:creator>jcharnet</dc:creator>
      <dc:date>2011-08-31T13:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77675#M51423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The id value in the XML-element is actually the "key" in the process-definition bean. So use the "ProcessDefinitionEntity processDefinition" passed in the method instead, this is already populated with the values from the XML-element. The XML-element is only passed to do additional parsing, not done by default BPMN parsing on our side…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 14:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77675#M51423</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-31T14:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77676#M51424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried using the ProcessDefinitionEntity, but the id atribute is null (processDefinition.getId()).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 14:29:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77676#M51424</guid>
      <dc:creator>jcharnet</dc:creator>
      <dc:date>2011-08-31T14:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77677#M51425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see… is this for a new process, or is the ID also null for existing processes? AFAIK, the ID is assigned after the entity has been created in case of a new process/deployment. Makes sense that the ID is null there, using the parseListener approach.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 14:38:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77677#M51425</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-31T14:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77678#M51426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It is for a new process. I did not try it for an existing process. For my case, I would need to use it for new processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing I tried, was to query ACT_RE_PROCDEF with createTablePageQuery().tableName("act_re_procdef"). It this is done in the ParseListener, my process is still not in the database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other idea, for what I need to do ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 15:27:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77678#M51426</guid>
      <dc:creator>jcharnet</dc:creator>
      <dc:date>2011-08-31T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77679#M51427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've managed to get this working without any listener (not using ParseListener).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After I have deployed the xml, I query the ACT_RE_PROCDEF finding the newly created DeploymentId, and I get the latest version of the xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This seems to be working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all the help !&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 19:13:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77679#M51427</guid>
      <dc:creator>jcharnet</dc:creator>
      <dc:date>2011-09-01T19:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77680#M51428</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;Have there been any new features added to the Activiti engine to enable listeners for new process definitions being deployed/undeployed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Carlos&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 14:15:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77680#M51428</guid>
      <dc:creator>ytsejammer</dc:creator>
      <dc:date>2012-09-26T14:15:07Z</dc:date>
    </item>
    <item>
      <title>Re: Deployment Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77681#M51429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just create some code that does the deployement… In that code you can do whatever you want… much cleaner I think&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Sep 2012 15:53:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deployment-listener/m-p/77681#M51429</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2012-09-26T15:53:32Z</dc:date>
    </item>
  </channel>
</rss>

