<?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 Creating rules â€” how can I create a composite-action node? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115079#M81112</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I had installed version 1.3 of Alfresco, I could create a rule using web services, and I could edit this rule later using the web client.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I had installed version 2.0, so I've translated the code from version 1.3 to version 2.0. This new code creates the rule, but it has some weird node structure (since node structure for rules in 2.0 is slightly different from 1.3)… The rule works, but it can be edited from web client (just rules with "composite-action" nodes can be edited in this new version)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know, when a rule is created in 2.0, it has the following node structure:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; node_where_the_rule_applies&lt;BR /&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; |&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ruleFolder&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; |&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rule&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; |&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; composite-action&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; \&lt;BR /&gt;&amp;nbsp;&amp;nbsp; action&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; condition&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;nbsp;&amp;nbsp;&amp;nbsp; |&lt;BR /&gt; parameter&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parameter&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;/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;BR /&gt;&lt;SPAN&gt;In order to achieve this new node structure, I've written a new code that tries to create an action (whose 'definitionName' is 'composite-action') that contains the real action and the condition as children… But I'm always getting an exception, because I think that repository does not recognize that action name…&amp;nbsp; &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;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My code follows these steps:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create the condition for the rule (to trigger the action or not)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create the action that the rule is going to perform&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create the 'composite-action', where the previous action and condition are added&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- create the rule, where the composite-action is added&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- save the rule against the repository&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read (in the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/Action_Web_Service#Action" rel="nofollow noopener noreferrer"&gt;Web Services Documentation ['Action' service]&lt;/A&gt;&lt;SPAN&gt;) that, in order to create the rules in that way &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;…this action is defined as a composite action (by setting the type of action appropriatly)…&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't see how to create an action of type 'composite-action', since that action definition is not available for web services… =/&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody tell me how can I create a composite-action?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance and regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enrique&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;PS: sorry for my English&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Jun 2007 17:12:58 GMT</pubDate>
    <dc:creator>doblek</dc:creator>
    <dc:date>2007-06-08T17:12:58Z</dc:date>
    <item>
      <title>Creating rules â€” how can I create a composite-action node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115079#M81112</link>
      <description>Hi all,When I had installed version 1.3 of Alfresco, I could create a rule using web services, and I could edit this rule later using the web client.Now, I had installed version 2.0, so I've translated the code from version 1.3 to version 2.0. This new code creates the rule, but it has some weird no</description>
      <pubDate>Fri, 08 Jun 2007 17:12:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115079#M81112</guid>
      <dc:creator>doblek</dc:creator>
      <dc:date>2007-06-08T17:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating rules â€” how can I create a composite-action node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115080#M81113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've been studying this issue a little bit more and, from my point of view, it's not possible to create a &lt;/SPAN&gt;&lt;STRONG&gt;'compositeaction'&lt;/STRONG&gt;&lt;SPAN&gt; node through web services since there is no &lt;/SPAN&gt;&lt;STRONG&gt;CompositeAction&lt;/STRONG&gt;&lt;SPAN&gt; class in the &lt;/SPAN&gt;&lt;STRONG&gt;web-service-client.jar&lt;/STRONG&gt;&lt;SPAN&gt; distribution…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean… a &lt;/SPAN&gt;&lt;A href="http://jsourcery.com/api/sourceforge/alfresco/2.0.0/org/alfresco/repo/action/CompositeActionImpl.html" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;CompositeActionImpl&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt; can be found at &lt;/SPAN&gt;&lt;A href="http://jsourcery.com/api/sourceforge/alfresco/2.0.0/org/alfresco/repo/action/package-summary.html" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;org.alfresco.repo.action&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt; package, but the equivalent class does not exists as webservice in the &lt;/SPAN&gt;&lt;A href="http://jsourcery.com/api/sourceforge/alfresco/2.0.0/org/alfresco/repo/webservice/action/package-summary.html" rel="nofollow noopener noreferrer"&gt;&lt;STRONG&gt;org.alfresco.repo.webservice.action&lt;/STRONG&gt;&lt;/A&gt;&lt;SPAN&gt; package…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, as far as I know (and if I'm not wrong), &lt;/SPAN&gt;&lt;SPAN style="color:darkred;"&gt;&lt;STRONG&gt;it's not possible to create rules using web services that can be edited later through the web client&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt; using Alfresco 2.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I wrong??&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance and regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enrique&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2007 17:20:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115080#M81113</guid>
      <dc:creator>doblek</dc:creator>
      <dc:date>2007-06-13T17:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: Creating rules â€” how can I create a composite-action node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115081#M81114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm do it inverse. Make a Rule assigned to folder on web interface an then read it from webservices.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;An composite-action is an action that has "composite-action" on actionName attribute.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;TomÃƒÂ¡s.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jul 2007 12:03:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115081#M81114</guid>
      <dc:creator>goathers</dc:creator>
      <dc:date>2007-07-20T12:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Creating rules â€” how can I create a composite-action node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115082#M81115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;So, as far as I know (and if I'm not wrong), &lt;SPAN style="color:darkred;"&gt;&lt;STRONG&gt;it's not possible to create rules using web services that can be edited later through the web client&lt;/STRONG&gt;&lt;/SPAN&gt; using Alfresco 2.0.&lt;BR /&gt;&lt;BR /&gt;Am I wrong??&amp;nbsp; &lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;ops:&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I just ran into this today. Since nobody answered your question, I created a JIRA issue to find help flush out an answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://issues.alfresco.com/browse/AWC-1633" rel="nofollow noopener noreferrer"&gt;http://issues.alfresco.com/browse/AWC-1633&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Kevin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Oct 2007 17:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115082#M81115</guid>
      <dc:creator>kumbach</dc:creator>
      <dc:date>2007-10-09T17:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Creating rules â€” how can I create a composite-action node?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115083#M81116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry for bothering you but I am experiencing some problems trying to create a rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am currently trying to create a rule but I always got a NULL EXCEPTION when trying to save the rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Did anyone knows something about it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;By the way, I am doing it by using web services.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 20:09:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/creating-rules-%C3%A2-how-can-i-create-a-composite-action-node/m-p/115083#M81116</guid>
      <dc:creator>andresaimar</dc:creator>
      <dc:date>2008-06-10T20:09:44Z</dc:date>
    </item>
  </channel>
</rss>

