<?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: a rule that define in a folder one default document type in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296684#M249814</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;Yes, this is possible by declaring a rule on the folder and making it execute the action "specialise type".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And yes, whatever interface you declare the rule with, the rule is tied to the content and not the interface. So once your rule is there is will be triggered whatever way the document were added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2014 15:53:34 GMT</pubDate>
    <dc:creator>scouil</dc:creator>
    <dc:date>2014-01-30T15:53:34Z</dc:date>
    <item>
      <title>a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296682#M249812</link>
      <description>I don't if it is the most suitable place for this question…I am eager to know whether is possible to define that in an specific folder, all documents you would add, were of a specific document type by default.moreover, the question is not only in relation to Explorer or Share interfaces….I am thinki</description>
      <pubDate>Thu, 30 Jan 2014 15:09:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296682#M249812</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-01-30T15:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296683#M249813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, you can create a rule on a folder that changes the type when a document is added to that folder. The rule will fire regardless of what method is used to add the document to the folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:53:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296683#M249813</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-01-30T15:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296684#M249814</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;Yes, this is possible by declaring a rule on the folder and making it execute the action "specialise type".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And yes, whatever interface you declare the rule with, the rule is tied to the content and not the interface. So once your rule is there is will be triggered whatever way the document were added.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 15:53:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296684#M249814</guid>
      <dc:creator>scouil</dc:creator>
      <dc:date>2014-01-30T15:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296685#M249815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok, it sounds great&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will put an specific example in order to approach to the issue&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;folder&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;rders&amp;nbsp; type document: my&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;rder&amp;nbsp; an aspect with some metadata : my:title. the aspect is associated to my&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;rder in the myModel.xml….&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if I add a document throw a webservice, api… whatever I would use…. I could send my:title as well????&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ask about this because I understand from you that the type of the 'document is changed', I suppose that it would works but I would want to be sure&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks so much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;P.D I would be very grateful if you know any paper about the rules and how to define somethig like this…. I will try it tomorrow &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 16:15:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296685#M249815</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-01-30T16:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296686#M249816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can create documents, specify their type, and set properties, including custom properties, all through the API. You do not need a rule to make that possible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to make sure that a document added to a folder (regardless of how it is added) always is changed to a certain type, that's a good use for a rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you need to make API calls that create documents in a folder and those documents need to be instances of a specific type with values passed in for specific properties, that is all do-able via the API with no need for a rule.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Configuring a rule on a folder to change a type and creating documents via the API are independent of one another.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2014 19:55:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296686#M249816</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-01-30T19:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296687#M249817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;yes, I have made a little program in Java with opencmis that upload documents with my:customtupe to a specific folder, and I define the aspect and the metadata….it works fine. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but I will have to do a migration from Documentum to Alfresco, I have a script that upload the documents in a way that you only say the folder, name (and the metadata)… therefore I asked about the rules in the folder…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks so much&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;yours replies are very useful&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 07:56:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296687#M249817</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-01-31T07:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296688#M249818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have made a rule in the folder myFolder. this rule changes the document type and adds the aspect to all elements you add in this folder….&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested it on the Explore and it works fine… when I add a document&amp;nbsp; with other document type Alfresco changes the document type and show me the metadata of the aspect……&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I send a document from my Java application that doesn't work…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Folder micarpeta = (Folder) session.getObjectByPath("/myFolder");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Map&amp;lt;String, Object&amp;gt; contentProperties = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; //commet: contentProperties.put(PropertyIds.OBJECT_TYPE_ID, "D:my:customType,P:my:myAspect");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; contentProperties.put(PropertyIds.OBJECT_TYPE_ID, "cmis:document");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; contentProperties.put(PropertyIds.NAME, name);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; contentProperties.put("my:tittle","eclipse");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; ContentStream contentStream = new ContentStreamImpl(miFichero.getAbsolutePath(), null, " image/jpeg",new ByteArrayInputStream(bytes));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; Document newContent1 =&amp;nbsp; micarpeta.createDocument(contentProperties, contentStream, null);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;java.lang.IllegalArgumentException: Property 'my:tittle' is neither an object type property nor an aspect property!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if I remove the comment and I put the specific type it works fine and aspect it works fine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i know that in your own code it wouldn´t be necessary… but I would like to know to understand how it works…. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 08:54:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296688#M249818</guid>
      <dc:creator>iruizdeeguilaz</dc:creator>
      <dc:date>2014-01-31T08:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: a rule that define in a folder one default document type</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296689#M249819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The property "my:tittle" is a custom property, defined either on a custom type or a custom aspect. Therefore you cannot set the property without using the line you have commented out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jan 2014 20:08:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/a-rule-that-define-in-a-folder-one-default-document-type/m-p/296689#M249819</guid>
      <dc:creator>jpotts</dc:creator>
      <dc:date>2014-01-31T20:08:30Z</dc:date>
    </item>
  </channel>
</rss>

