<?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 display a message to user from rule? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80771#M24955</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/8063"&gt;@upforsin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know is the honest answer. However, how would you know that the rule had completed if there is no return value &amp;amp; if the rule is run asyncronously?&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 15:42:58 GMT</pubDate>
    <dc:creator>EddieMay</dc:creator>
    <dc:date>2020-09-22T15:42:58Z</dc:date>
    <item>
      <title>How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80768#M24952</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Is there a way to show a user the output of the rule?&lt;/P&gt;&lt;P&gt;Let's say the rule checks content data on file upload and deletes it when it doesn't meet the criteria. How to inform the user that his file was deleted because of the&amp;nbsp; &amp;lt;custom rule's message&amp;gt;?&lt;/P&gt;&lt;P&gt;I know I can easily show popup by executing&amp;nbsp;&lt;FONT face="andale mono,times"&gt;Alfresco.util.PopupManager.displayPrompt()&lt;/FONT&gt; but rules run on server-side Javascript which doesn't have this functionality.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 11:25:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80768#M24952</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-09-21T11:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80769#M24953</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/8063"&gt;@upforsin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't believe this is possible, because as you say, rules run on the server side, can run asyncronously, and have no return type, while Share runs client side - there seems to be no mechanism for reporting results between them &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://connect.hyland.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;.&lt;/P&gt;
&lt;P&gt;HTH&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 13:02:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80769#M24953</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-09-22T13:02:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80770#M24954</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot do it directly but what if i.e. the rule would call a Share webscript which would then display a popup? Just loud thinking &lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:27:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80770#M24954</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-09-22T15:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80771#M24955</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/8063"&gt;@upforsin&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't know is the honest answer. However, how would you know that the rule had completed if there is no return value &amp;amp; if the rule is run asyncronously?&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:42:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80771#M24955</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2020-09-22T15:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80772#M24956</link>
      <description>&lt;P&gt;Share Web Scripts can't show pop ups, they are also server side code.&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 15:55:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80772#M24956</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2020-09-22T15:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to display a message to user from rule?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80773#M24957</link>
      <description>&lt;P&gt;The rule might be implemented in Java, so before the function's end it should send the message to the frontend, like: "Hey Share, let's display a popup now".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was counting on Share webscripts but&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;proved me wrong.&lt;/P&gt;&lt;P&gt;For now, I am just throwing an &lt;STRONG&gt;AlfrescoRuntime exception&lt;/STRONG&gt; with my custom message. It works but it doesn't seem like an elegant solution. I'll update this post when I figure something out. Thanks for the help &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/76783"&gt;@EddieMay&lt;/A&gt;&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/5487"&gt;@angelborroy&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Anyway, sending a message from backend to frontend.. it feels to me like it should be a basic task&lt;/P&gt;</description>
      <pubDate>Sun, 27 Sep 2020 18:31:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-display-a-message-to-user-from-rule/m-p/80773#M24957</guid>
      <dc:creator>upforsin</dc:creator>
      <dc:date>2020-09-27T18:31:59Z</dc:date>
    </item>
  </channel>
</rss>

