<?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: Web Scripts and Behaviours in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67687#M22543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to create a behavior inside a webscript ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Feb 2019 15:16:00 GMT</pubDate>
    <dc:creator>riadhazzouz</dc:creator>
    <dc:date>2019-02-27T15:16:00Z</dc:date>
    <item>
      <title>Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67685#M22541</link>
      <description>I created a behaviour that display a message in the console once a file is created.I created a model following this tutorial&amp;nbsp;Working With Custom Content Types in Alfresco | ECMArchitect | Alfresco Developer Tutorials&amp;nbsp;. (descriptionand date attributes)How can I save that message to that model. Than u</description>
      <pubDate>Tue, 26 Feb 2019 14:28:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67685#M22541</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-02-26T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67686#M22542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To give you a more accurated answer It would be very usefull if you attached your custom model definition to the question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyway from your behaviour implementation you have to use NodeService to specialize the type of the node created or add an aspect to it, depending how you have definited your model, and then set the property with your message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/references/dev-services-node.html" title="http://docs.alfresco.com/community/references/dev-services-node.html" rel="nofollow noopener noreferrer"&gt;NodeService | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this other link you can find the information you will need to develope a custom web script:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/tasks/ws-tutorials.html" title="http://docs.alfresco.com/community/tasks/ws-tutorials.html" rel="nofollow noopener noreferrer"&gt;Web Script tutorials | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basicaly you need a web service that received the noderef of your content, load it and show the messagge property in the format you want.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Feb 2019 15:36:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67686#M22542</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-02-26T15:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67687#M22543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it possible to create a behavior inside a webscript ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 15:16:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67687#M22543</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-02-27T15:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67688#M22544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't understand exactly what are your requirements.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;ehaviors&lt;SPAN&gt;&amp;nbsp;are pieces of logic that will be executed in response to an event in the respository and a web script is a REST&amp;nbsp;service, are totally diferent things.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;If you want to execute a piece java code when you call a web script you must see th Java Backed web scripts&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/ws-java-backed-webscripts.html" title="http://docs.alfresco.com/community/concepts/ws-java-backed-webscripts.html" rel="nofollow noopener noreferrer"&gt;Java-backed web scripts | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/tasks/ws-folderListing-Java-scripting.html" title="http://docs.alfresco.com/community/tasks/ws-folderListing-Java-scripting.html" rel="nofollow noopener noreferrer"&gt;Creating a Folder Listing Java-backed web script | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;On the other hand if what you want is execute the same code in a behavior and when you call the web script without duplicating code your best option is create a respository action and invoke it from both sides:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;SPAN&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-add-action-doclib.html" title="http://docs.alfresco.com/community/tasks/dev-extensions-share-tutorials-add-action-doclib.html" rel="nofollow noopener noreferrer"&gt;Adding new actions to the Document Library | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2019 16:02:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67688#M22544</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-02-27T16:02:59Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67689#M22545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I want to do is, when someone create a file, I want to display in the share a message "Username added a file with a filename" and save this event to a&amp;nbsp; database in a table created by me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 06:19:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67689#M22545</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-02-28T06:19:34Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67690#M22546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Saving the event in your own database table is clearly a task that you could do in a behaviour.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you say "display in share a message", do you mean show a realtime message to other users loged in share"?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take into account that share already display this kind of information in the activity dashlets from the user and site dashboard. It's not real time but are to update everytime you reach the dashboard.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:20:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67690#M22546</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-02-28T09:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67691#M22547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes that's exactly what i want to do, I just want to display the message my way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:23:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67691#M22547</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-02-28T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67692#M22548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In that case&amp;nbsp;in the following links&amp;nbsp; you can find all the information you need to create a new dashlet:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/dev-extensions-share-surf-dashlets.html" title="http://docs.alfresco.com/community/concepts/dev-extensions-share-surf-dashlets.html" rel="nofollow noopener noreferrer"&gt;Surf Dashlets | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/dev-extensions-share-aikau-dashlets.html" title="http://docs.alfresco.com/community/concepts/dev-extensions-share-aikau-dashlets.html" rel="nofollow noopener noreferrer"&gt;Aikau dashlets | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The recomended way to create a new dashlet its using Aikau framework but how you want to adapt an existent dashlet maybe it will be easiest use Surf framework.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If instead of create a new dashlet you decide to modifing activity one you can consult this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/dev-extensions-share-override-ootb-surf-dashlets.html" title="http://docs.alfresco.com/community/concepts/dev-extensions-share-override-ootb-surf-dashlets.html" rel="nofollow noopener noreferrer"&gt;Modifying Out-of-the-box Surf dashlets | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://docs.alfresco.com/community/concepts/dev-extensions-share-surf-extension-modules.html" title="http://docs.alfresco.com/community/concepts/dev-extensions-share-surf-extension-modules.html" rel="nofollow noopener noreferrer"&gt;Surf Extension Modules | Alfresco Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Always is a good idea to study in Alfresco Source Code to use it like a guide in your developments, but in this case is much more recomendable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 09:48:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67692#M22548</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-02-28T09:48:16Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67693#M22549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the real-time approach I remember that some time ago i saw a real time activity monitor but i didn't test it. You could take a look:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/juliomaqueda/alfresco-activity-monitor" title="https://github.com/juliomaqueda/alfresco-activity-monitor" rel="nofollow noopener noreferrer"&gt;GitHub - juliomaqueda/alfresco-activity-monitor&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2019 12:52:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67693#M22549</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-02-28T12:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Web Scripts and Behaviours</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67694#M22550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Roberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Mar 2019 09:22:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/web-scripts-and-behaviours/m-p/67694#M22550</guid>
      <dc:creator>riadhazzouz</dc:creator>
      <dc:date>2019-03-01T09:22:48Z</dc:date>
    </item>
  </channel>
</rss>

