<?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: Missing 'Run Action' wizard on Alfresco Share in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252199#M205329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unlike Alfresco Explorer, Alfresco Share does not have "Run Action" in the UI action list. We may add this in a future release, however. Until then, there is a partial workaround. If you are using Alfresco 4, an action called "document-execute-script" has been defined, it just hasn't been added to any "actionGroups". If you add it to an actionGroup you can then execute server-side JavaScript. So, you could write a quick little script that invokes an action, place it in Data Dictionary/Scripts, and then use the Execute Script action to run it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The execute script action can be added to an action group by creating a share-config-custom.xml file in $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;alfresco-config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config evaluator="string-compare" condition="DocLibActions"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroups&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroup id="document-details"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action index="500" id="document-execute-script" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroups&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/alfresco-config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;For people running 3.4, have no fear. There is an &lt;/SPAN&gt;&lt;A href="http://addons.alfresco.com" rel="nofollow noopener noreferrer"&gt;Alfresco Add-On&lt;/A&gt;&lt;SPAN&gt; that provides execute script functionality in Share. It's part of the &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/share-extras/wiki/ExecuteScriptAction" rel="nofollow noopener noreferrer"&gt;Share Extras project&lt;/A&gt;&lt;SPAN&gt; on Google Code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server-side JavaScript that runs an action might look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var mailAction = actions.create("mail");&lt;BR /&gt;mailAction.parameters.to = "someone@someco.com";&lt;BR /&gt;mailAction.parameters.subject = "Mail notification";&lt;BR /&gt;mailAction.parameters.from = "you@someco.com";&lt;BR /&gt;mailAction.parameters.text = "Consider yourself notified, friend." ; &lt;BR /&gt;mailAction.execute(document);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Feb 2012 23:38:20 GMT</pubDate>
    <dc:creator>jpotts</dc:creator>
    <dc:date>2012-02-27T23:38:20Z</dc:date>
    <item>
      <title>Missing 'Run Action' wizard on Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252198#M205328</link>
      <description>Hi to all,I'm using Alfresco (v4.0c) about a month, now I want to send a document (from alfresco Site's share) by email with "Run Action" command, butWhen I click on the View Details command "Run Action" is missing.How can I do to activate this command?VM</description>
      <pubDate>Tue, 17 Jan 2012 13:24:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252198#M205328</guid>
      <dc:creator>vinmoc</dc:creator>
      <dc:date>2012-01-17T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Missing 'Run Action' wizard on Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252199#M205329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Unlike Alfresco Explorer, Alfresco Share does not have "Run Action" in the UI action list. We may add this in a future release, however. Until then, there is a partial workaround. If you are using Alfresco 4, an action called "document-execute-script" has been defined, it just hasn't been added to any "actionGroups". If you add it to an actionGroup you can then execute server-side JavaScript. So, you could write a quick little script that invokes an action, place it in Data Dictionary/Scripts, and then use the Execute Script action to run it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The execute script action can be added to an action group by creating a share-config-custom.xml file in $TOMCAT_HOME/webapps/share/WEB-INF/classes/alfresco/web-extension with the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;alfresco-config&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;config evaluator="string-compare" condition="DocLibActions"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroups&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;actionGroup id="document-details"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;action index="500" id="document-execute-script" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/actionGroups&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/config&amp;gt;&lt;BR /&gt;&amp;lt;/alfresco-config&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;For people running 3.4, have no fear. There is an &lt;/SPAN&gt;&lt;A href="http://addons.alfresco.com" rel="nofollow noopener noreferrer"&gt;Alfresco Add-On&lt;/A&gt;&lt;SPAN&gt; that provides execute script functionality in Share. It's part of the &lt;/SPAN&gt;&lt;A href="http://code.google.com/p/share-extras/wiki/ExecuteScriptAction" rel="nofollow noopener noreferrer"&gt;Share Extras project&lt;/A&gt;&lt;SPAN&gt; on Google Code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Server-side JavaScript that runs an action might look like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;var mailAction = actions.create("mail");&lt;BR /&gt;mailAction.parameters.to = "someone@someco.com";&lt;BR /&gt;mailAction.parameters.subject = "Mail notification";&lt;BR /&gt;mailAction.parameters.from = "you@someco.com";&lt;BR /&gt;mailAction.parameters.text = "Consider yourself notified, friend." ; &lt;BR /&gt;mailAction.execute(document);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;Hope that helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Feb 2012 23:38:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252199#M205329</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2012-02-27T23:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Missing 'Run Action' wizard on Alfresco Share</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252200#M205330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jeff,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might know my case. We have been running alfresco 3.4.8 for a while. We have customized permission definition. When we access the space or content, "Run action" doesn't show in the action list which is exactly what we want. But after upgrading to 3.4.13, we didn't change the permission definition file, "Run action" for some reason shows in the action list. Do you know what is the reason the behavior changes after upgrading? Thanks for your help in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 20:46:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/missing-run-action-wizard-on-alfresco-share/m-p/252200#M205330</guid>
      <dc:creator>qsdmv</dc:creator>
      <dc:date>2014-02-06T20:46:38Z</dc:date>
    </item>
  </channel>
</rss>

