<?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: Why does RepositoryService work this way? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/why-does-repositoryservice-work-this-way/m-p/44711#M24686</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;You just are not using the right query after you deployed the inputstream.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can provide any name you like as the resourceName, but only resource names ending with ".bpmn20.xml" are parsed as process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you would use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would get your deployment back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Dec 2011 08:17:10 GMT</pubDate>
    <dc:creator>trademak</dc:creator>
    <dc:date>2011-12-13T08:17:10Z</dc:date>
    <item>
      <title>Why does RepositoryService work this way?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-does-repositoryservice-work-this-way/m-p/44710#M24685</link>
      <description>I was looking at a way to tie the loading of a process to a ResourcePatternResolver and ran across a strange issue and I'm hoping someone can explain why it is this wayRespositoryService.createDeployment().addInputStream() takes two arguments (neither of which are documented BTW), a resourceName and</description>
      <pubDate>Mon, 12 Dec 2011 21:50:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-does-repositoryservice-work-this-way/m-p/44710#M24685</guid>
      <dc:creator>gregorypierce</dc:creator>
      <dc:date>2011-12-12T21:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Why does RepositoryService work this way?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/why-does-repositoryservice-work-this-way/m-p/44711#M24686</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;You just are not using the right query after you deployed the inputstream.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can provide any name you like as the resourceName, but only resource names ending with ".bpmn20.xml" are parsed as process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So when you would use:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deployment deployment = repositoryService.createDeploymentQuery().deploymentId(deploymentId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You would get your deployment back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Dec 2011 08:17:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/why-does-repositoryservice-work-this-way/m-p/44711#M24686</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2011-12-13T08:17:10Z</dc:date>
    </item>
  </channel>
</rss>

