<?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: Transactions and Repository Actions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261391#M214521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you gather your information prior to creating the new node?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The alternative is to trigger your external actions "post commit" so its called after node creation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could have some sort of queue of nodes to be processed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 14:20:35 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2012-09-17T14:20:35Z</dc:date>
    <item>
      <title>Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261390#M214520</link>
      <description>I have an external process that renders repository content based on node properties. This is facilitated by a repository Action that calls on this external application. The external application in turn makes calls back to the repository to gather key bits of information used in the rendering process</description>
      <pubDate>Mon, 17 Sep 2012 13:33:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261390#M214520</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2012-09-17T13:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261391#M214521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Could you gather your information prior to creating the new node?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The alternative is to trigger your external actions "post commit" so its called after node creation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or you could have some sort of queue of nodes to be processed?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 14:20:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261391#M214521</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-09-17T14:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261392#M214522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;The alternative is to trigger your external actions "post commit" so its called after node creation.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah, that's what I'm trying to do, but I don't know exactly how/where I can do this. The aspect (behavior) is already set to &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;new JavaBehaviour(this, "onAddAspect", NotificationFrequency.TRANSACTION_COMMIT)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried calling my own variation of the "CopyAction" that put the result in PARAM_RESULT within my main action. And then triggering the render. However the new node still isn't accessible until after the primary/calling action completes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm assuming this is a transactional thing, perhaps it's more/different than that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Or you could have some sort of queue of nodes to be processed?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Does such a queue exist that I could hook into?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's a quick/crude drawing to illustrate the sequence:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="https://dl.dropbox.com/u/35767566/alfresco-render-action.png" rel="nofollow noopener noreferrer"&gt;https://dl.dropbox.com/u/35767566/alfresco-render-action.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 15:02:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261392#M214522</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2012-09-17T15:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261393#M214523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes - that looks very much like the Alfresco Transformation Server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 16:04:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261393#M214523</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-09-17T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261394#M214524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does the architecture for that system create a note and kick off external rendering within the same action?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's done to make the newly-minted node accessible externally before the action returns?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Patrick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 21:39:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261394#M214524</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2012-09-17T21:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transactions and Repository Actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261395#M214525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I wound up putting the rendering process in a separate action that I execute asynchronously from within the main action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This has worked so far, however I'm guessing I've set up a race condition where it's conceivable that the asynchronous action may for some reason execute before the main thread commits, no? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I really want this new rendition to replace the cm:content of the newly-minted node. Another alternative I suppose would be to trigger the re-render upon the first "download" request by modifying or replacing the default "Download" action for this custom node type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any other ideas?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 14:51:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/transactions-and-repository-actions/m-p/261395#M214525</guid>
      <dc:creator>pjaromin</dc:creator>
      <dc:date>2012-09-19T14:51:22Z</dc:date>
    </item>
  </channel>
</rss>

