<?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: I want to use a categoryService with rules in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-use-a-categoryservice-with-rules/m-p/59894#M21127</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yoshida,&lt;/P&gt;&lt;P&gt;I think you can try Alfresco JavaScript &lt;A href="https://docs.alfresco.com/5.2/references/API-JS-Classification.html" rel="nofollow noopener noreferrer"&gt;Classification API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And there is a method called &lt;A href="https://docs.alfresco.com/5.2/references/API-JS-createSubCategory.html" rel="nofollow noopener noreferrer"&gt;createSubCategory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one thing, you'll have to know the category NodeRef before you write your scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var category = classification.getCategory(nodeRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (category !== null)&lt;BR /&gt;&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; category.createSubCategory(name);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Apr 2018 07:08:39 GMT</pubDate>
    <dc:creator>sychel</dc:creator>
    <dc:date>2018-04-25T07:08:39Z</dc:date>
    <item>
      <title>I want to use a categoryService with rules</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-use-a-categoryservice-with-rules/m-p/59893#M21126</link>
      <description>Newbie question:&amp;nbsp;I'm using version of Aflresco Community - 5.2.0 (r135134-b14) I'm custmizing page of the document-details.&amp;nbsp;I would like to use categoryService in rule definition, but I do not know how to realize it.ex)&amp;nbsp;NodeRef newCategory = categoryService.createCategory(yearsCategory, "1901");As f</description>
      <pubDate>Tue, 24 Apr 2018 06:09:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-use-a-categoryservice-with-rules/m-p/59893#M21126</guid>
      <dc:creator>yosk</dc:creator>
      <dc:date>2018-04-24T06:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to use a categoryService with rules</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/i-want-to-use-a-categoryservice-with-rules/m-p/59894#M21127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yoshida,&lt;/P&gt;&lt;P&gt;I think you can try Alfresco JavaScript &lt;A href="https://docs.alfresco.com/5.2/references/API-JS-Classification.html" rel="nofollow noopener noreferrer"&gt;Classification API&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And there is a method called &lt;A href="https://docs.alfresco.com/5.2/references/API-JS-createSubCategory.html" rel="nofollow noopener noreferrer"&gt;createSubCategory&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only one thing, you'll have to know the category NodeRef before you write your scripts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var category = classification.getCategory(nodeRef);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (category !== null)&lt;BR /&gt;&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; category.createSubCategory(name);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Apr 2018 07:08:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/i-want-to-use-a-categoryservice-with-rules/m-p/59894#M21127</guid>
      <dc:creator>sychel</dc:creator>
      <dc:date>2018-04-25T07:08:39Z</dc:date>
    </item>
  </channel>
</rss>

