<?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: Spring Boot Activiti - auto deploy *.bpm20.xml files in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36635#M15470</link>
    <description>&lt;P&gt;Hey everyOne,&lt;/P&gt;&lt;P&gt;i have the same need to do a hot deploy with activiti, did you find anything that can help me do it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks !&lt;/P&gt;</description>
    <pubDate>Wed, 30 Nov 2022 10:44:31 GMT</pubDate>
    <dc:creator>amirelhajjam</dc:creator>
    <dc:date>2022-11-30T10:44:31Z</dc:date>
    <item>
      <title>Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36630#M15465</link>
      <description>I have setup Activiti using Spring Boot integration. Per the default behavior, the *.bpm20.xml files needs to be under src/main/resources/processes for the Activiti engine to deploy when the spring boot app is run.Is there a way to allow Activiti to auto deploy whenever I put in a new process xml fi</description>
      <pubDate>Tue, 28 Mar 2017 00:58:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36630#M15465</guid>
      <dc:creator>sayantan_sinha</dc:creator>
      <dc:date>2017-03-28T00:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36631#M15466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sayantan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this should be possible, but it would take custom modification to Activiti Community in order to reach a functioning result. There are several resources 'listening' to file/folder changes in Java - feel free to go with the one you prefer. Then there are a several relevant files that I would look into within Activiti:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/ActivitiProperties.java&lt;/EM&gt; - This file contains the getters and setters for the pathing that pulls the process resources in.&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;/activiti-spring-boot-starter-basic&lt;/EM&gt;&lt;EM&gt;/src/main/java/org/activiti/spring/boot/AbstractProcessEngineAutoConfiguration.java&amp;nbsp;&lt;/EM&gt;- This file is where the&amp;nbsp;SpringProcessEngineConfiguration is established, which references the next file:&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/AbstractProcessEngineConfiguration.java&amp;nbsp;&lt;/EM&gt;- There is a method &lt;EM&gt;(discoverProcessDefinitionResources)&lt;/EM&gt; inside of this file that combines the location prefix with the file suffix in order to make a list of auto-deployment files. After the engine is configure it's used within:&lt;UL&gt;&lt;LI&gt;&lt;EM&gt;/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/JpaProcessEngineAutoConfiguration.java&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;&lt;EM&gt;/activiti-spring-boot-starter-basic/src/main/java/org/activiti/spring/boot/DataSourceProcessEngineAutoConfiguration.java&lt;/EM&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;This was just an initial effort to find how and where these elements are being configured. Within this path of classes, you should be able to establish a listener that would either be a part of your ProcessEngine (so you'd have to add additional functionality to the ProcessEngine) or create a listener that would update/replace the ProcessEngine in the current context. I believe the first option is going to be least likely to cause you problems - but take a look at pros and cons as you pursue this, for sure.&lt;BR /&gt;&lt;BR /&gt;Hope this helps get you started &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;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 18:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36631#M15466</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-28T18:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36632#M15467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot for this insight. I will get started on this and see if I can build something custom. Is there any roadmap to make this a configurable item, like property based?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 20:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36632#M15467</guid>
      <dc:creator>sayantan_sinha</dc:creator>
      <dc:date>2017-03-28T20:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36633#M15468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sayantan,&lt;BR /&gt;&lt;BR /&gt;It's certainly possible to make elements of this configurable options through properties - like, modifying the location that Activiti is looking for files, the frequency/method it's checking for new files, and so on. And it again, would certainly be possible to make this configurable through the UI. The biggest difficulty you're going to run into is that the ProcessEngine is configured during the initial boot, and these constitute changes to the ProcessEngine - so you'll need to make sure those changes are being propagated correctly, or that the ProcessEngine is being replaced when you create a new one.&lt;BR /&gt;&lt;BR /&gt;I wouldn't really say I have a roadmap for a feature like this, and I haven't found any resources on other Activit users developing it - so it looks like you're the first &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;&lt;BR /&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 21:02:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36633#M15468</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-03-28T21:02:29Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36634#M15469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think this should be a very standard feature and it would immensely help during development rather in production. Can this be implemented in a future version? I do understand the complexity involved, but with spring boot you probably could leverage a couple of things here:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;provide a property to externalize process file location in conjunction with src/main/resources/processes&lt;/LI&gt;&lt;LI&gt;leverage Spring Boot's @RefreshScope to achieve this, if may be not with path then certainly with file names as a separate property configuration&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing, to keep in mind here is that with @RefreshScope we can leverage to trigger the deploy with /refresh rather than a true auto deploy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Mar 2017 22:04:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36634#M15469</guid>
      <dc:creator>sayantan_sinha</dc:creator>
      <dc:date>2017-03-31T22:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Spring Boot Activiti - auto deploy *.bpm20.xml files</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36635#M15470</link>
      <description>&lt;P&gt;Hey everyOne,&lt;/P&gt;&lt;P&gt;i have the same need to do a hot deploy with activiti, did you find anything that can help me do it&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks !&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 10:44:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/spring-boot-activiti-auto-deploy-bpm20-xml-files/m-p/36635#M15470</guid>
      <dc:creator>amirelhajjam</dc:creator>
      <dc:date>2022-11-30T10:44:31Z</dc:date>
    </item>
  </channel>
</rss>

