To be able to use tAlfrescoOutput in the Integration perspective of Talend Studio, you need first to install the Alfresco server with few relevant resources.
The below sub sections detail the prerequisite and the installation procedure.
Start with the following operations:
Download the file
Unzip the file in an installation folder, for example:
Install JDK 1.6.0+
Update the environment variable
JAVA_HOME (JAVA_HOME= C:\alfresco)
From the installation folder (
C:\alfresco), launch the alfresco server using the script
Make sure that the Alfresco server is launched correctly before start using the tAlfrescoOutput component.
Note that the
talendalfresco_20081014.zip is provided with the
tAlfrescoOutput component in the Integration perspective of Talend Studio.
To install the
talendalfresco_20081014.zipand in the
talendalfresco_20081014\alfrescofolder, look for the following jars:
talendalfresco-alfresco_1.0.jarand move them to
Add the authentification filter of the commands to the
web.xmlfile located in the path
C:\alfresco\tomcat\webapps\alfresco\WEB-INF son WEB-INF/
following the model of the example provided in
talendalfresco_20081014/alfrescofolder of the zipped file
The following figures show the portion of lines (in blue) to add in the file
Installing new types for Alfresco:
package_jeu_test.zip and in the
package_jeu_test/fichiers_conf_alfresco2.1 folder, look for the
xml H76ModelCustom.xml (description of the model),
web-client-config-custom.xml (web interface of the model), and
custom-model-context.xml (registration of the new model) and paste
them in the following folder:
The dates must be of the Talend date type
Columns without either mapping or default values, for example of the type
Date, are written as empty strings.
Solution: delete all columns without mapping or default values. Note that any modification of the type Alfresco will put them back.
Do not mix up between the file path which content you want to create in Alfresco and its target location in Alfresco.
Provide a URL! It can target various protocols, among which are file, HTTP and so on.
For URLs referring to files on the file system, precede them by "file:" for Windows used locally, and by "file://" for Windows on a network (which accepts as well "file: \ \") or for Linux.
Do not double the backslash in the target base path (automatic escape), unless you type in the path in the basic settings of the tAlfrescoOutput component, or doing concatenation in the tMap editor for example.
Multiple properties or associations:
It is possible to create only one association by document if it is mapped to a string value, or one or more associations by document if it is mapped to a list value (object).
You can empty an association by mapping it to an empty list, which you can create, for example, by using
new java.util.ArrayList()in the tMap component.
However, it is impossible to delete an association.
define the table of the relation n-n in a file, containing a
nameline for example (included in the input rows), and a
categoryline (that can be defined with its mapping in a third file).
group by: input name, output name.
category. ATTENTION list (object) and non simple list.
- References (documents and folders):
References are created by mapping one or more existing reference nodes (xpath or namepath) using
An error in the association or the property of the reference type does not prevent the creation of the node that holds the reference.
Properties of the reference type are created in the Basic Settings view.
Associations are created in the Advanced Settings view.