<?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: Javascript rules that undo or cancel inbound actions in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159818#M113841</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;you could create an inbound rule that only execute the actions if name = "test*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could do this by selecting the condition = items that contains a specific value in its name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Friendly regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jun 2008 11:26:42 GMT</pubDate>
    <dc:creator>xerox</dc:creator>
    <dc:date>2008-06-10T11:26:42Z</dc:date>
    <item>
      <title>Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159817#M113840</link>
      <description>Hi everyone,I need to crate a rule in javascript that cancel a inbound action. For example….I have a condition:var name = document.properties.name;if(name.equals("test")){…….}else{[b]the code that cancel the action[/b]}‍‍‍‍‍‍‍‍‍The system canÂ´t record the file in folder. I need cancel the action.th</description>
      <pubDate>Fri, 06 Jun 2008 19:53:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159817#M113840</guid>
      <dc:creator>raarm</dc:creator>
      <dc:date>2008-06-06T19:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159818#M113841</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;you could create an inbound rule that only execute the actions if name = "test*"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You could do this by selecting the condition = items that contains a specific value in its name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Friendly regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2008 11:26:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159818#M113841</guid>
      <dc:creator>xerox</dc:creator>
      <dc:date>2008-06-10T11:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159819#M113842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Nick,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But I dont understand…How I can do this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a example? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :roll:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 17:11:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159819#M113842</guid>
      <dc:creator>raarm</dc:creator>
      <dc:date>2008-06-12T17:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159820#M113843</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 also think I've misunderstand your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you mean with cancel an inbound action?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A delection of those incoming file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;friendly regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nick&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 09:29:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159820#M113843</guid>
      <dc:creator>xerox</dc:creator>
      <dc:date>2008-06-13T09:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159821#M113844</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;When I say "inbound actions"…..I'm referring to rules on entry of files! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to cancel the action to place the file(move,copy..) If in my case the file does not have the name "test", he cancels the action of the file entry. only this!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need this rule to use it in the WINDOWS(CIFS). Do you know how I use "alerts"? windows SO that show error messages&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried:&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; alert ( "error");&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but gave no!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks Nick!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2008 13:41:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159821#M113844</guid>
      <dc:creator>raarm</dc:creator>
      <dc:date>2008-06-13T13:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159822#M113845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need to cancel the action to place the file(move,copy..) If in my case the file does not have the name "test", he cancels the action of the file entry. only this!!&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;You will not be able to skip or undo the action from a JavaScript rule. In order to do this, I would create a Spring interceptor that is simply not doing the action. The problem is that you have to intercept every inbound method… to do this. You should search in Alfresco spring configuration files (&lt;/SPAN&gt;&lt;STRONG&gt;*-context.xml&lt;/STRONG&gt;&lt;SPAN&gt;) for interceptors definitions: one is really interesting is the audit interceptor. To do this you will need some knowledge of the Alfresco Java API and basic knowledge of spring configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I need this rule to use it in the WINDOWS(CIFS). Do you know how I use "alerts"? windows SO that show error messages&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;These message dialogs are special frames in the SMB protocol and very low level. The only way to see how it is done is to have a look at the Desktop actions implementation.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 15 Jun 2008 10:29:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159822#M113845</guid>
      <dc:creator>cbosdonnat</dc:creator>
      <dc:date>2008-06-15T10:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159823#M113846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I tried to use the Alfresco JavaScript Debugger … without success! &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is he the only tool for testing the codes in Alfreco? Is there a tutorial that teaches the use it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Im not test my codes before placing them in the rules!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jun 2008 17:22:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159823#M113846</guid>
      <dc:creator>raarm</dc:creator>
      <dc:date>2008-06-26T17:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Javascript rules that undo or cancel inbound actions</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159824#M113847</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've tried to use the debugger several times, but without success… However, you can trace what happens in your javascripts by using the &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/JavaScript_API#Logging_API" rel="nofollow noopener noreferrer"&gt;logger API&lt;/A&gt;&lt;SPAN&gt;. To output the traces in the alfresco.log, you have to uncomment the following line in the &lt;/SPAN&gt;&lt;STRONG&gt;tomcat/webapps/alfresco/WEB-INF/classes/log4j.properties&lt;/STRONG&gt;&lt;SPAN&gt; file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;#log4j.logger.org.alfresco.repo.jscript=DEBUG&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jun 2008 05:18:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/javascript-rules-that-undo-or-cancel-inbound-actions/m-p/159824#M113847</guid>
      <dc:creator>cbosdonnat</dc:creator>
      <dc:date>2008-06-27T05:18:33Z</dc:date>
    </item>
  </channel>
</rss>

