Hi allLets see if any of you can help me here please.I am trying to add a new type automatically to any item I will drop in a dropbox folder using CIFS.I have especified the new type in the Data Model, and if I add the item manually vÃÂa WEB_UI, I can chose the type manually and assign it to the item and modify the properties of the type.But now what I want to do is creating a rule, that will assign this type automatically to all the items droped in this box, so then a JS will extract and update the Meta-Data of this type.To create the rule, I just thought that I had to create a business rule in the UI, selecting all the items as filter, and then in the actions I have chosen "Specialise the type of an Item". The problem is that when I clink in "select values and add" I dont find the type I have created.Here I pass you the code I have created in the customModel.xml and web-client-config-custom.xml to see if you can find any error I am missing.Also if you know a better way of doing this,or any place where it is explained how to get all this process I will really appreciate it.The code of the CustomModel.xml where I define the type is: <!– Introduction of new namespaces defined by this model –>
<!– NOTE: The following namespace custom.model should be changed to reflect your own namespace –>
<namespaces>
<namespace uri="custom.model" prefix="custom"/>
</namespaces>
<types>
<!– Definition of new Content Type: Press Release –>
<type name="custom:CheckInformation">
<title>Informacion de Cheque</title>
<parent>cm:content</parent>
<properties>
<property name="custom:CompanyName">
<title>Nombre Sociedad</title>
<type>d:text</type>
</property>
<property name="custom:CompanyCIF">
<title>CIF/NIF</title>
<type>d:text</type>
</property>
</properties>
</type>
</types>
Then I modify the web-client-config-custom.xml, so the type can be added manually in the content wizard, in the action wizard, and also used in the Advanced search. But it in the Action wizar where I think the problem is…even I dont know why: <!– Lists the custom aspect in business rules Action wizard –>
<config evaluator="string-compare" condition="Action Wizards">
<subtypes>
<type name="custom:CheckInformation"/>
</subtypes>
</config>
<config evaluator="string-compare" condition="Content Wizards">
<content-types>
<type name="custom:CheckInformation" />
</content-types>
</config>
<config evaluator="node-type" condition="custom:CheckInformation">
<property-sheet>
<show-property name="mimetype"
display-label-id="content_type"
component-generator="MimeTypeSelectorGenerator" />
<show-property name="size"
display-label-id="size"
converter="org.alfresco.faces.BByteSizeConverter"
show-in-edit-mode="false" />
<show-property name="custom:CompanyName" />
<show-property name="custom:CompanyCIF" />
</property-sheet>
</config>
<config evaluator="string-compare" condition="Advanced Search">
<advanced-search>
<content-types>
<type name="custom:CheckInformation" />
</content-types>
<custom-properties>
<meta-data type="custom:CheckInformation" property="custom:CompanyName" />
<meta-data type="custom:CheckInformation" property="custom:CompanyCIF" />
</custom-properties>
</advanced-search>
</config>
Any help or guideness on this will be appreciated :-).Thanks in advance guys