<?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: How to solve: some operations in webscript requires a long time to finish in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299329#M252459</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need to create flags on the related nods to monitoring the process.When an asynchronously action has completed execution,alfresco will update action node and set "act:executionActionStatus" property to "Completed" and set "act:executionEndDate" property to the date at which the action is finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And for you requirement I think asynchronously&amp;nbsp; action is more suitable than BatchProcessor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 May 2014 14:09:24 GMT</pubDate>
    <dc:creator>kaynezhang</dc:creator>
    <dc:date>2014-05-19T14:09:24Z</dc:date>
    <item>
      <title>How to solve: some operations in webscript requires a long time to finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299325#M252455</link>
      <description>Hi Everyone,I'm using Java-back webscript handler for Alfresco webscript and I have encountered one problem: In the Java handler, some operations take quite a long time to finish. Currently the time is only around 10-20s but it may become over minutes in the future. I don't want the user to wait in</description>
      <pubDate>Fri, 16 May 2014 10:51:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299325#M252455</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-05-16T10:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve: some operations in webscript requires a long time to finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299326#M252456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Business rule running in background could be one solution if you can manage to convert your webscript implementation into an action and set up the business rule as required.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 11:21:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299326#M252456</guid>
      <dc:creator>romschn</dc:creator>
      <dc:date>2014-05-16T11:21:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve: some operations in webscript requires a long time to finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299327#M252457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes there will typically be a problem if you take over a minute to run.&amp;nbsp;&amp;nbsp;&amp;nbsp; The first thing to do is to run your command asynchronoulsy,&amp;nbsp; perhaps via an async action.&amp;nbsp;&amp;nbsp; The second thing to think about is to use the batch processors if there are large numbers of nodes that need processing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 May 2014 11:26:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299327#M252457</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-05-16T11:26:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve: some operations in webscript requires a long time to finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299328#M252458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the replies. I have updated my question to be more specific. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have considered the asynchronous approach. I.E. I can run the time consuming operations in anther thread. Then I will need a mechanism to report back to Alfresco when that thread finished. In addition, I need to create flags on the related nods to monitoring the process. I feel I am re-inventing the wheels if I manually implement this solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS.I have also read the BatchProcessor API at: &lt;/SPAN&gt;&lt;A href="http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/batch/BatchProcessor.html" rel="nofollow noopener noreferrer"&gt;http://dev.alfresco.com/resource/docs/java/repository/org/alfresco/repo/batch/BatchProcessor.html&lt;/A&gt;&lt;SPAN&gt;. But it does not provide information to use it. Can anyone advise me how to get start with that/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sun&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 09:40:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299328#M252458</guid>
      <dc:creator>sunquanbin</dc:creator>
      <dc:date>2014-05-19T09:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to solve: some operations in webscript requires a long time to finish</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299329#M252459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You don't need to create flags on the related nods to monitoring the process.When an asynchronously action has completed execution,alfresco will update action node and set "act:executionActionStatus" property to "Completed" and set "act:executionEndDate" property to the date at which the action is finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And for you requirement I think asynchronously&amp;nbsp; action is more suitable than BatchProcessor.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 May 2014 14:09:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-solve-some-operations-in-webscript-requires-a-long-time/m-p/299329#M252459</guid>
      <dc:creator>kaynezhang</dc:creator>
      <dc:date>2014-05-19T14:09:24Z</dc:date>
    </item>
  </channel>
</rss>

