<?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: Combining Alfresco actions together in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234519#M187649</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You haven't got a faces context in the deployment callback because the deployment callback is running on a separate thread that is not connected to the UI.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way the deployment monitoring JSF client works is to use an AJAX callback which is periodically polling a shared object in the HTTP Session.&amp;nbsp; And it is this object that is updated from the deployment callback thread.&amp;nbsp;&amp;nbsp; So when deployment finishes the AJAX callback sees the change in state and navigates away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So some possible solutions.&amp;nbsp; You could break into the deployment monitoring ajax code and navigate to your preview page rather than the deployment results page.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your original question about chaining actions together.&amp;nbsp;&amp;nbsp; Deployment actions are queued and executed on the deployment thread pool.&amp;nbsp; Unless you simply lump the code of multiple actions together there's no inbuilt way of linking actions together.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In fact if you queue two actions you can't even guarantee the order that they will run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple approach that would work would be queue an action from an earlier action and have a chain of actions.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also be tempted to dd your own action to run the deployment synchronously rather than asynchronously but at that point I think you could easily thrash your server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2009 14:42:33 GMT</pubDate>
    <dc:creator>mrogers</dc:creator>
    <dc:date>2009-06-11T14:42:33Z</dc:date>
    <item>
      <title>Combining Alfresco actions together</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234518#M187648</link>
      <description>Hi all,I am facing a scenario in which I am executing an action in the Alfresco web project.Suppose,1.In the user sandbox,when we click on deploy action from more actions menu,deploy snapshot is performed.2.If the deployment is success,I want to execute a preview icon in the monitor deployment page.</description>
      <pubDate>Thu, 11 Jun 2009 12:50:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234518#M187648</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-06-11T12:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Alfresco actions together</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234519#M187649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You haven't got a faces context in the deployment callback because the deployment callback is running on a separate thread that is not connected to the UI.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The way the deployment monitoring JSF client works is to use an AJAX callback which is periodically polling a shared object in the HTTP Session.&amp;nbsp; And it is this object that is updated from the deployment callback thread.&amp;nbsp;&amp;nbsp; So when deployment finishes the AJAX callback sees the change in state and navigates away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So some possible solutions.&amp;nbsp; You could break into the deployment monitoring ajax code and navigate to your preview page rather than the deployment results page.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As for your original question about chaining actions together.&amp;nbsp;&amp;nbsp; Deployment actions are queued and executed on the deployment thread pool.&amp;nbsp; Unless you simply lump the code of multiple actions together there's no inbuilt way of linking actions together.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In fact if you queue two actions you can't even guarantee the order that they will run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple approach that would work would be queue an action from an earlier action and have a chain of actions.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also be tempted to dd your own action to run the deployment synchronously rather than asynchronously but at that point I think you could easily thrash your server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2009 14:42:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234519#M187649</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2009-06-11T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Combining Alfresco actions together</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234520#M187650</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;Can u give me some reference how can we use ajax callback functionality at the config level since I don't want to break the code or can u give me some examples where the actions are combined&amp;nbsp; or queued together..Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2009 05:40:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/combining-alfresco-actions-together/m-p/234520#M187650</guid>
      <dc:creator>rockycres</dc:creator>
      <dc:date>2009-06-12T05:40:04Z</dc:date>
    </item>
  </channel>
</rss>

