<?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 Auto-Deploy a bpmn model to APS in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28553#M12191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using extension jar and wanted to deploy the process you can see this section &lt;A class="link-titled" href="https://www.activiti.org/userguide/#api.services.deployment" title="https://www.activiti.org/userguide/#api.services.deployment" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp; of activiti user guide. basically you need to use the following code to deploy the BPMN2 model. here you just need to place your model in the class path.&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE data-lang="java"&gt;&lt;SPAN class=""&gt;ProcessEngine&lt;/SPAN&gt; &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;ProcessEngines&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getDefaultProcessEngine&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;RepositoryService&lt;/SPAN&gt; &lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getRepositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;createDeployment&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;  &lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;addClasspathResource&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"org/activiti/test/VacationRequest.bpmn20.xml"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;  &lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;deploy&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;Log&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;info&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Number of process definitions: "&lt;/SPAN&gt; &lt;SPAN class=""&gt;+&lt;/SPAN&gt; &lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;createProcessDefinitionQuery&lt;/SPAN&gt;&lt;SPAN class=""&gt;().&lt;/SPAN&gt;&lt;SPAN class=""&gt;count&lt;/SPAN&gt;&lt;SPAN class=""&gt;());&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also refer the test case here &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/repository/DeploymentQueryTest.java" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/repository/DeploymentQueryTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/DeploymentQueryTest.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Mar 2019 05:33:41 GMT</pubDate>
    <dc:creator>mdtabrezmca</dc:creator>
    <dc:date>2019-03-19T05:33:41Z</dc:date>
    <item>
      <title>How to Auto-Deploy a bpmn model to APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28551#M12189</link>
      <description>Hi Guys,How can I auto deploy a process (bpmn model) into a docker container running the aps activiti app.Currently I am developing against aps 1.9.&amp;nbsp; I build a jar with beans and then deploy it into an aps container using docker-compose.&amp;nbsp; The container for process is an extension of the existing&amp;nbsp;alf</description>
      <pubDate>Mon, 18 Mar 2019 06:17:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28551#M12189</guid>
      <dc:creator>bgkoneill</dc:creator>
      <dc:date>2019-03-18T06:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to Auto-Deploy a bpmn model to APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28552#M12190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;I am a little surprised that I got no response on this as it seems like a common request.&amp;nbsp; Simplifying the question,&amp;nbsp; is it possible in APS to autodeploy a model by, for example, putting it on the engine classpath?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone comment on this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Mar 2019 21:56:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28552#M12190</guid>
      <dc:creator>bgkoneill</dc:creator>
      <dc:date>2019-03-18T21:56:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Auto-Deploy a bpmn model to APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28553#M12191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using extension jar and wanted to deploy the process you can see this section &lt;A class="link-titled" href="https://www.activiti.org/userguide/#api.services.deployment" title="https://www.activiti.org/userguide/#api.services.deployment" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&amp;nbsp; of activiti user guide. basically you need to use the following code to deploy the BPMN2 model. here you just need to place your model in the class path.&lt;/P&gt;&lt;PRE class=""&gt;&lt;CODE data-lang="java"&gt;&lt;SPAN class=""&gt;ProcessEngine&lt;/SPAN&gt; &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;ProcessEngines&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getDefaultProcessEngine&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;RepositoryService&lt;/SPAN&gt; &lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;processEngine&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;getRepositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;createDeployment&lt;/SPAN&gt;&lt;SPAN class=""&gt;()&lt;/SPAN&gt;  &lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;addClasspathResource&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"org/activiti/test/VacationRequest.bpmn20.xml"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;  &lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;deploy&lt;/SPAN&gt;&lt;SPAN class=""&gt;();&lt;/SPAN&gt;&lt;SPAN class=""&gt;Log&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;info&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"Number of process definitions: "&lt;/SPAN&gt; &lt;SPAN class=""&gt;+&lt;/SPAN&gt; &lt;SPAN class=""&gt;repositoryService&lt;/SPAN&gt;&lt;SPAN class=""&gt;.&lt;/SPAN&gt;&lt;SPAN class=""&gt;createProcessDefinitionQuery&lt;/SPAN&gt;&lt;SPAN class=""&gt;().&lt;/SPAN&gt;&lt;SPAN class=""&gt;count&lt;/SPAN&gt;&lt;SPAN class=""&gt;());&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Also refer the test case here &lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/repository/DeploymentQueryTest.java" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/repository/DeploymentQueryTest.java" rel="nofollow noopener noreferrer"&gt;Activiti/DeploymentQueryTest.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Mar 2019 05:33:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28553#M12191</guid>
      <dc:creator>mdtabrezmca</dc:creator>
      <dc:date>2019-03-19T05:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to Auto-Deploy a bpmn model to APS</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28554#M12192</link>
      <description>&lt;P&gt;Brian,&lt;/P&gt;
&lt;P&gt;Did you ever come up with a successful approach for doing this? I need to do the same thing.&lt;/P&gt;
&lt;P&gt;I suppose I could write an "automatic deployer" that would deploy whatever apps it finds in a particular directory, and then when I build the docker image I can copy the deployer JAR and the app to the image.&lt;/P&gt;
&lt;P&gt;Maybe you found a better way?&lt;/P&gt;
&lt;P&gt;Jeff&lt;/P&gt;</description>
      <pubDate>Wed, 05 Feb 2020 21:26:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-auto-deploy-a-bpmn-model-to-aps/m-p/28554#M12192</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2020-02-05T21:26:37Z</dc:date>
    </item>
  </channel>
</rss>

