<?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 DeploymentBuilder addInputStream in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/deploymentbuilder-addinputstream/m-p/113481#M79900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello.&amp;nbsp; I tried to create a deployment using the DeploymentBuilder.addInputStream method providing a .bpmn20.xml file and it didn't create a deployment.&amp;nbsp; I'm wondering what I'm missing.&amp;nbsp; Here is my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();&lt;BR /&gt;RepositoryService repositoryService = processEngine.getRepositoryService();&lt;BR /&gt;File f = new File("/Users/jmiller/Dev/Projects/activiti-sandbox/MyProcess.bpmn20.xml");&lt;BR /&gt;FileInputStream fis = new FileInputStream(f);&lt;BR /&gt;repositoryService.createDeployment().addInputStream("activitiAdhoc", fis).deploy();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's my process element from MyProcess.bpmn20.xml.&amp;nbsp; I figured I needed to match the process id to the resourceName of the method call:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;process id="activitiAdhoc" name="Adhoc Activiti Process"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;When this didn't work, I copied the xml file to my classpath and called addClasspathResource instead - that worked for this example but may not work as well for us in our project:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;repositoryService.createDeployment().addClasspathResource("MyProcess.bpmn20.xml").deploy();&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm running Activiti-5.9 on Java version 1.6.0_31.&amp;nbsp; Thank you for your response.&amp;nbsp; I have a feeling I'm just confused about the API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Joe&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2012 22:13:53 GMT</pubDate>
    <dc:creator>jmiller</dc:creator>
    <dc:date>2012-05-16T22:13:53Z</dc:date>
    <item>
      <title>DeploymentBuilder addInputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploymentbuilder-addinputstream/m-p/113481#M79900</link>
      <description>Hello.&amp;nbsp; I tried to create a deployment using the DeploymentBuilder.addInputStream method providing a .bpmn20.xml file and it didn't create a deployment.&amp;nbsp; I'm wondering what I'm missing.&amp;nbsp; Here is my code&lt;IMG id="smileytongue" class="emoticon emoticon-smileytongue" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocessEngine processEngine = ProcessEngines.getDefaultProcessEngine();RepositoryService reposito</description>
      <pubDate>Wed, 16 May 2012 22:13:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploymentbuilder-addinputstream/m-p/113481#M79900</guid>
      <dc:creator>jmiller</dc:creator>
      <dc:date>2012-05-16T22:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: DeploymentBuilder addInputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/deploymentbuilder-addinputstream/m-p/113482#M79901</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;There are many answers already in this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Simple search with "createDeployment" gives many answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is some of them:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3588&amp;amp;hilit=createDeployment" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3588&amp;amp;hilit=createDeployment&lt;/A&gt;&lt;BR /&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3171&amp;amp;hilit=createDeployment" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=3171&amp;amp;hilit=createDeployment&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 06:04:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/deploymentbuilder-addinputstream/m-p/113482#M79901</guid>
      <dc:creator>steve1</dc:creator>
      <dc:date>2012-05-17T06:04:26Z</dc:date>
    </item>
  </channel>
</rss>

