<?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 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/59893#M21126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;Newbie question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;I'm using version of Aflresco Community - 5.2.0 (r135134-b14)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt; I'm custmizing page of the document-details.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;&amp;nbsp;&lt;SPAN style="text-align: left; color: #212121; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: arial, sans-serif; font-size: 16px; font-style: normal; font-weight: 400; word-spacing: 0px; float: none; display: inline !important; white-space: pre-wrap; orphans: 2; widows: 2; background-color: #ffffff; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;I would like to use categoryService in rule definition, but I do not know how to realize it.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex)&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt; text-indent: 11pt;"&gt;&lt;SPAN style="font-size: 11pt;"&gt;&amp;nbsp;NodeRef newCategory = categoryService.createCategory(yearsCategory, "1901");&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt; text-indent: 11pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;As far as I know ,can do with Alfresco Share Javascript API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;How do I use ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;&amp;nbsp;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;Please how should I solve this problem?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;SPAN style="color: #000000; font-size: medium; font-family: 游ゴシック;"&gt;Thanks in advanced.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0mm 0mm 0pt;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Apr 2018 06:09:40 GMT</pubDate>
    <dc:creator>yosk</dc:creator>
    <dc:date>2018-04-24T06:09:40Z</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>

