<?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: Invalid workflow store Reference in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203903#M157033</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;Thanks to both jack &amp;amp; tommoris..Now I understood the logic behind sorkflow store &amp;amp; staging store,,,But still I am not able to get this done..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with java reference to get contents for the current workflow task but its returning NULL..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WorkflowTask wfTask = workflowService.getTaskById(taskId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;NodeRef&amp;gt; contents =workflowService.getPackageContents(wfTask.id);&lt;SPAN class="line-numbers-rows"&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;so the contents is always null..And i have no idea in getting this done java api refernce Jack gave..Jack ,can u post the code&amp;nbsp; here to help me in getting this to work…Thanks..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2009 10:36:47 GMT</pubDate>
    <dc:creator>rockycres</dc:creator>
    <dc:date>2009-05-14T10:36:47Z</dc:date>
    <item>
      <title>Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203899#M157029</link>
      <description>Hi All,I am encountering an issue of invalid nodereference when files are submitted for the web project via the workflow.1.Created the web project.2.Created the web form &amp;amp; associated it with the web project.3.Created the content with the web form &amp;amp; submitted via the workflow .In the node bro</description>
      <pubDate>Wed, 29 Apr 2009 12:47:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203899#M157029</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-04-29T12:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203900#M157030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I may be wrong, but I think the temporary workflow store is layered on top of the staging sandbox, thus you'll always see all files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your code might need to use the alfresco API to 'diff' between the two stores (the staging store and the workflow store).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This would tell you what is unique in your workflow (including deletions).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This may prove helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avmsync/AVMSyncService.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/service/cmr/avmsync/AVMSyncService.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.ixxus.com" rel="nofollow noopener noreferrer"&gt;http://www.ixxus.com&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2009 11:09:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203900#M157030</guid>
      <dc:creator>tommorris</dc:creator>
      <dc:date>2009-05-07T11:09:43Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203901#M157031</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;Thanks for ur timely response…I have tried with the API reference u gave …But AVMSyncService API is getting the diff file list.Here is the code..&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;List&amp;lt;AVMDifference&amp;gt; diffs = syncService.compare(-1,"www:/www/avm_webapps/ROOT" ,-1, "www:/www–workflow-79dc8cd3-1e6a-497a-a0bf-4aea1717bc00/avm_webapps/ROOT", null);&lt;SPAN class="line-numbers-rows"&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;My requirement is to get the file list which I submitted in the current WF..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So can u exactly tell me about the alfresco API to 'diff' between the two stores (the staging store(avm) and the workflow (temp) store).?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2009 12:02:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203901#M157031</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-05-11T12:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203902#M157032</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;BR /&gt;&lt;SPAN&gt;I believe tommorris is correct.&amp;nbsp; The workflow store is merely a layer of the current staging store, with the new file in it.&amp;nbsp; In your scenario, when you submitted test2.xml to staging, you already have test.xml on staging.&amp;nbsp; So, what the workflow code tries to do, is it creates a new sandbox based off of staging, meaning it has test.xml in it.&amp;nbsp; Then, it adds ur new file, test2.xml to it the workflow store, that's why you see both files.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To get the files you've submitted to the workflow, it's exposed to the javascript API by following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;task.getPackageResources()&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;We use the following to find out which files are associated with an AVM workflow.&amp;nbsp; But I'm sure there's a Java service call for it as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hopefully it helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jack&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 May 2009 20:43:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203902#M157032</guid>
      <dc:creator>jack_jin</dc:creator>
      <dc:date>2009-05-12T20:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203903#M157033</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;Thanks to both jack &amp;amp; tommoris..Now I understood the logic behind sorkflow store &amp;amp; staging store,,,But still I am not able to get this done..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried with java reference to get contents for the current workflow task but its returning NULL..&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WorkflowTask wfTask = workflowService.getTaskById(taskId);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;NodeRef&amp;gt; contents =workflowService.getPackageContents(wfTask.id);&lt;SPAN class="line-numbers-rows"&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;so the contents is always null..And i have no idea in getting this done java api refernce Jack gave..Jack ,can u post the code&amp;nbsp; here to help me in getting this to work…Thanks..&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 10:36:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203903#M157033</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-05-14T10:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Invalid workflow store Reference</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203904#M157034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry guys,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There was some problem before..Now I am able to get the file name using the same code..But I just hardcoded the taskid to get it..&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;WorkflowTask str = workflowService.getTaskById("jbpm$150");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; List&amp;lt;NodeRef&amp;gt; contents =workflowService.getPackageContents(str.id);&lt;SPAN class="line-numbers-rows"&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;Can u guys tell me how to get the task id from the&amp;nbsp; workflow service api's or from execution context…?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried to get it like this ,,but only getting the task name [wcmwf:submitReviewTask],,,But I need the corresponding unique task id for this task..&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; String taskId = &amp;nbsp;&amp;nbsp;&amp;nbsp;workflowService.getTaskDefinitions(Id).get(i).id;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2009 14:10:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/invalid-workflow-store-reference/m-p/203904#M157034</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-05-14T14:10:52Z</dc:date>
    </item>
  </channel>
</rss>

