<?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: DeclarativeWebScript can't check updated aspect until it runs asynchronously  in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58553#M20854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should never use Thread sleeping / blocking to wait on disconnected process doing any kind of changes. Even using an asynchronous action does not guarantee this will work depending on the timing of the other web script invocation.&lt;/P&gt;&lt;P&gt;Why not simply have the client poll the web script until the expected state has been&amp;nbsp;reached (or a timeout has been reached)? What component is triggering the call to B? If it is the same client, why are these calls not properly coordinated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Mar 2018 12:38:37 GMT</pubDate>
    <dc:creator>afaust</dc:creator>
    <dc:date>2018-03-12T12:38:37Z</dc:date>
    <item>
      <title>DeclarativeWebScript can't check updated aspect until it runs asynchronously</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58552#M20853</link>
      <description>Hello,I have the following case:From inside a&amp;nbsp;DeclarativeWebScript (A) I have to wait (Thread.sleep) until a custom person aspect properties (of the active user)&amp;nbsp;is updated by another DeclarativeWebScript (B). The Thread.sleep of A is&amp;nbsp;terminated&amp;nbsp;when a condition on the aspect properties (IndorsePeop</description>
      <pubDate>Tue, 06 Mar 2018 17:51:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58552#M20853</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2018-03-06T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: DeclarativeWebScript can't check updated aspect until it runs asynchronously</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58553#M20854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should never use Thread sleeping / blocking to wait on disconnected process doing any kind of changes. Even using an asynchronous action does not guarantee this will work depending on the timing of the other web script invocation.&lt;/P&gt;&lt;P&gt;Why not simply have the client poll the web script until the expected state has been&amp;nbsp;reached (or a timeout has been reached)? What component is triggering the call to B? If it is the same client, why are these calls not properly coordinated?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 12:38:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58553#M20854</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2018-03-12T12:38:37Z</dc:date>
    </item>
    <item>
      <title>Re: DeclarativeWebScript can't check updated aspect until it runs asynchronously</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58554#M20855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;B is a webscript on the same server called by another server after some time (a rest hook callback url). I should wait until the B is called and update the aspect properties. So not the same client and can't coordinate unless by listening and waiting&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Mar 2018 13:38:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/declarativewebscript-can-t-check-updated-aspect-until-it-runs/m-p/58554#M20855</guid>
      <dc:creator>jamilnour</dc:creator>
      <dc:date>2018-03-12T13:38:44Z</dc:date>
    </item>
  </channel>
</rss>

