<?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: Process deployment from file using InputStream in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87843#M59559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason why the bpmn20 suffix is needed, is because you can put any file in the deployment (eg forms, diagrams, etc). The activiti engine doesn't care. But when you have a .bpmn20.xml file in there, the BpmnDeployer sees this and kicks in. Without the suffix, the BpmnDeployer just lets it pass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Dec 2012 13:04:34 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2012-12-03T13:04:34Z</dc:date>
    <item>
      <title>Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87839#M59555</link>
      <description>Has anyone done this? I am facing issue with Deployment. I get deployment Id but the process could not be started. The error says Process cannot be found.</description>
      <pubDate>Tue, 06 Mar 2012 05:47:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87839#M59555</guid>
      <dc:creator>mpankaj</dc:creator>
      <dc:date>2012-03-06T05:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87840#M59556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, I have found the answer. The deployment can be done using addInputStream. The key thing is resourceName parameter should exactly match the full file name including path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String deployID = repositoryService.createDeployment()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; .addInputStream("C:/temp/bpmn-examples/src/main/resources/chapter4/bookorder15.java.bpmn20.xml",new FileInputStream("C:/temp/bpmn-examples/src/main/resources/chapter4/bookorder15.java.bpmn20.xml"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; .deploy().getId();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 06:09:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87840#M59556</guid>
      <dc:creator>mpankaj</dc:creator>
      <dc:date>2012-03-06T06:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87841#M59557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;ok, I have found the answer. The deployment can be done using addInputStream. The key thing is resourceName parameter should exactly match the full file name including path.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;The criteria is that the resourcename should end in bpmn20.xml and nothing more. From BpmnDeployer:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp; public void deploy(DeploymentEntity deployment) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; …..&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (String resourceName : resources.keySet()) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LOG.info("Processing resource " + resourceName);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (resourceName.endsWith(BPMN_RESOURCE_SUFFIX)) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ResourceEntity resource = resources.get(resourceName);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why it is like this, maybe to easier detect processdefinition files in a deployment archive ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 06:50:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87841#M59557</guid>
      <dc:creator>heymjo</dc:creator>
      <dc:date>2012-03-06T06:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87842#M59558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yeah. This same issue is covered here: &lt;/SPAN&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;The authors believe this to be easy enough to understand, but there is absolutely no documentation about this in the javadoc or anything that specifies that bpmn20.xml needs to be at the end of the resourcename or it will silently do something completely stupid.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 06:37:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87842#M59558</guid>
      <dc:creator>gregorypierce</dc:creator>
      <dc:date>2012-12-03T06:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87843#M59559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The reason why the bpmn20 suffix is needed, is because you can put any file in the deployment (eg forms, diagrams, etc). The activiti engine doesn't care. But when you have a .bpmn20.xml file in there, the BpmnDeployer sees this and kicks in. Without the suffix, the BpmnDeployer just lets it pass.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Dec 2012 13:04:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87843#M59559</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-12-03T13:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Process deployment from file using InputStream</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87844#M59560</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;Ok for the bpmn20.xml suffix but it would make sense that the eclipse plugin to do the same. In fact it seems it only accepts BPMN extension to open graphic view.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Dec 2012 01:54:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/process-deployment-from-file-using-inputstream/m-p/87844#M59560</guid>
      <dc:creator>maclab</dc:creator>
      <dc:date>2012-12-07T01:54:45Z</dc:date>
    </item>
  </channel>
</rss>

