<?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: Create a rule in Java? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273606#M226736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can write a Custom Javascript api implented in Java.&lt;BR /&gt;&lt;BR /&gt;That method/api can be called in javscript and add it as a rule.&lt;BR /&gt;You can find Information about Adding Custom Script APIs here&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks lementree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following you link i found&amp;nbsp; this example that i believe is what i want to do (put javascriptAPI calling some class in JavaAPI):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Configuring_the_ServiceRegistry_as_a_Javascript_Root_Object" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Configuring_the_ServiceRegistry_as_a_Javascript_Root_Object&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just have one small doubt, where (in what folder) do i place that class i created and what xmls must contain the bean in the given example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By exploring the folders i think the bean must be placed here: Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\script-services-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Javascript code i the alfresco repository named Scrips?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the Java code i have no clue… &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Oct 2012 13:38:08 GMT</pubDate>
    <dc:creator>future_healthca</dc:creator>
    <dc:date>2012-10-19T13:38:08Z</dc:date>
    <item>
      <title>Create a rule in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273603#M226733</link>
      <description>Hi everyone,I am trying to connect to RuntimeAPI of my bonita server via alfresco when a file is uploaded to a folder to launch a certain process in it.I saw that we can make a rule in javascript when files are uploaded to a folder. But to connect to bonita i dunno if is possible or how to do it in</description>
      <pubDate>Thu, 18 Oct 2012 14:35:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273603#M226733</guid>
      <dc:creator>future_healthca</dc:creator>
      <dc:date>2012-10-18T14:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create a rule in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273604#M226734</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 can write a Custom Javascript api implented in Java.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That method/api can be called in javscript and add it as a rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can find Information about Adding Custom Script APIs here&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:10:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273604#M226734</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2012-10-19T11:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a rule in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273605#M226735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In Java its perhaps easiest to create a policy/behaviour.&amp;nbsp;&amp;nbsp; Its what the rule service uses underneath the covers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 11:32:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273605#M226735</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-10-19T11:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a rule in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273606#M226736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;You can write a Custom Javascript api implented in Java.&lt;BR /&gt;&lt;BR /&gt;That method/api can be called in javscript and add it as a rule.&lt;BR /&gt;You can find Information about Adding Custom Script APIs here&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/4.0_JavaScript_API#Adding_Custom_Script_APIs&lt;/A&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks lementree.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Following you link i found&amp;nbsp; this example that i believe is what i want to do (put javascriptAPI calling some class in JavaAPI):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://wiki.alfresco.com/wiki/Configuring_the_ServiceRegistry_as_a_Javascript_Root_Object" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/Configuring_the_ServiceRegistry_as_a_Javascript_Root_Object&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I just have one small doubt, where (in what folder) do i place that class i created and what xmls must contain the bean in the given example?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;By exploring the folders i think the bean must be placed here: Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\script-services-context.xml.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The Javascript code i the alfresco repository named Scrips?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now the Java code i have no clue… &lt;img id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://connect.hyland.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 13:38:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273606#M226736</guid>
      <dc:creator>future_healthca</dc:creator>
      <dc:date>2012-10-19T13:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Create a rule in Java?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273607#M226737</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 can [ut those class files with the package folder structure in tomcat/webapps/alfresco/WEB-INF/classes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;To map the webscript with the java class you need to add a xml file in tomcat/shared/classes/alfresco/extension&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;&lt;BR /&gt;&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' '&lt;A href="http://www.springframework.org/dtd/spring-beans.dtd" rel="nofollow noopener noreferrer"&gt;http://www.springframework.org/dtd/spring-beans.dtd&lt;/A&gt;'&amp;gt;&lt;BR /&gt;&amp;lt;beans&amp;gt;&lt;BR /&gt;&amp;lt;bean id="loggerScript" parent="baseJavaScriptExtension" class="com.reva.service.JsonPdfRendition"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;property name="extensionName"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;value&amp;gt;JsonPdfRendition&amp;lt;/value&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/property&amp;gt;&lt;BR /&gt; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;lt;/beans&amp;gt;&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;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2012 11:05:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-rule-in-java/m-p/273607#M226737</guid>
      <dc:creator>lementree</dc:creator>
      <dc:date>2012-12-24T11:05:55Z</dc:date>
    </item>
  </channel>
</rss>

