<?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 can a custom action call another action? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/can-a-custom-action-call-another-action/m-p/168570#M122023</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;(is this the correct forum? I'd say "no", because actions are not necessarily related to the webclient, but I didn't find any forum that seemed better suited to me)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Can a custom action, in its executeImpl, call a different [custom] action?&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd say "no", as i tried and the second executeImpl deadlocks on getParameterValue… in that case: what's the suggested way to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course, both custom actions being written by me, I can always refactor one to expose a method that does most of the job of the "inner" action, so that the outer one can call that instead of invoking the action itself, but I wonder if a different approach could work/be-better.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Apr 2008 14:49:16 GMT</pubDate>
    <dc:creator>lapo</dc:creator>
    <dc:date>2008-04-08T14:49:16Z</dc:date>
    <item>
      <title>can a custom action call another action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-a-custom-action-call-another-action/m-p/168570#M122023</link>
      <description>(is this the correct forum? I'd say "no", because actions are not necessarily related to the webclient, but I didn't find any forum that seemed better suited to me)Can a custom action, in its executeImpl, call a different [custom] action?I'd say "no", as i tried and the second executeImpl deadlocks</description>
      <pubDate>Tue, 08 Apr 2008 14:49:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-a-custom-action-call-another-action/m-p/168570#M122023</guid>
      <dc:creator>lapo</dc:creator>
      <dc:date>2008-04-08T14:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: can a custom action call another action?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/can-a-custom-action-call-another-action/m-p/168571#M122024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should be able to call another action from executeImpl method&amp;nbsp; of an action.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;//AnotherActionExecuter.java is the another custom action&lt;BR /&gt;Action action = this.actionService.createAction(AnotherActionExecuter.NAME);&lt;BR /&gt;action.setParameterValues(parameterValues);&lt;BR /&gt;// Execute action&lt;BR /&gt;this.actionService.executeAction(action, usersHomeNodeRef);&lt;BR /&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure you have reference to action service in your *context.xml &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="actionService"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;ref bean="ActionService"/&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shagul&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2008 14:18:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/can-a-custom-action-call-another-action/m-p/168571#M122024</guid>
      <dc:creator>rivetlogic</dc:creator>
      <dc:date>2008-04-11T14:18:12Z</dc:date>
    </item>
  </channel>
</rss>

