<?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: Régles d'espace et import acp in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49202#M28322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salut Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="fr"&gt;&lt;SPAN class=""&gt;Suite à&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-4840-export-and-import" rel="nofollow noopener noreferrer"&gt;cet article&lt;/A&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Using Alfresco Rules and Actions it is possible to setup an automated import whereby an ACP file is automatically imported into the Repository when placed into a designated Repository folder (or Space).&lt;/P&gt;&lt;P&gt;For example, the following Rule is defined against an 'Import' folder which has a condition of '*.acp' and if met, has an action to Import the ACP into the 'Dave's Space' folder.&lt;/P&gt;&lt;P&gt;When an ACP file is placed into the 'Import' folder it automatically kicks off the Import process and places the items held in the ACP file into the 'Dave's Space' folder.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The important point to remember, is that the Import will be initiated regardless of how the ACP file was placed into the folder.&amp;nbsp; For example, the Import will initiate if the ACP file was placed there via CIFS, FTP, WebDAV, Web Client or API.&amp;nbsp; This is particularly powerful for system to system data integration.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="fr"&gt;&lt;BR /&gt;Je pense que vous allez quitter l'ACP doit avoir la règle créée. Est-ce ainsi que vous faites?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Cris.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2017 11:03:19 GMT</pubDate>
    <dc:creator>cristinamr</dc:creator>
    <dc:date>2017-03-13T11:03:19Z</dc:date>
    <item>
      <title>Régles d'espace et import acp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49201#M28321</link>
      <description>Bonjour à tous,Je travaille actuellement sur alfresco 5.2.J'ai créé un répertoire Import avec une règle qui applique la méthode Import sur les fichiers entrant de type acpLe fichier acp comporte un document et son fichier xml de métadonnéesSi j'importe un fichier acp via l'interface share, la règle</description>
      <pubDate>Wed, 08 Mar 2017 15:33:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49201#M28321</guid>
      <dc:creator>richardb</dc:creator>
      <dc:date>2017-03-08T15:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Régles d'espace et import acp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49202#M28322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salut Richard,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="" lang="fr"&gt;&lt;SPAN class=""&gt;Suite à&lt;/SPAN&gt; &lt;SPAN class=""&gt;&lt;A _jive_internal="true" href="https://community.alfresco.com/docs/DOC-4840-export-and-import" rel="nofollow noopener noreferrer"&gt;cet article&lt;/A&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Using Alfresco Rules and Actions it is possible to setup an automated import whereby an ACP file is automatically imported into the Repository when placed into a designated Repository folder (or Space).&lt;/P&gt;&lt;P&gt;For example, the following Rule is defined against an 'Import' folder which has a condition of '*.acp' and if met, has an action to Import the ACP into the 'Dave's Space' folder.&lt;/P&gt;&lt;P&gt;When an ACP file is placed into the 'Import' folder it automatically kicks off the Import process and places the items held in the ACP file into the 'Dave's Space' folder.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The important point to remember, is that the Import will be initiated regardless of how the ACP file was placed into the folder.&amp;nbsp; For example, the Import will initiate if the ACP file was placed there via CIFS, FTP, WebDAV, Web Client or API.&amp;nbsp; This is particularly powerful for system to system data integration.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN class="" lang="fr"&gt;&lt;BR /&gt;Je pense que vous allez quitter l'ACP doit avoir la règle créée. Est-ce ainsi que vous faites?&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN class=""&gt;Cris.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 11:03:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49202#M28322</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2017-03-13T11:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Régles d'espace et import acp</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49203#M28323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bonjour Cris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci pour cette réponse. C'est exactement&amp;nbsp;la procédure que j'ai mis en place.&lt;/P&gt;&lt;P&gt;Ca ne fonctionne pas via CIFS FTP ou Webdav sur mon instance alfresco 5.2 ( en alfrfesco 3.0 je n'avais pas de souçi )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Du coup, j'ai crée un script python qui me permet d'uploader un fichier acp dans mon répertoire d'import.&lt;/P&gt;&lt;P&gt;A l'issu les règles et actions s'appliquent parfaitement et réponds ainsi à mes besoins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Je mets en copie le script. Cela servira peut-être à quelqu'un,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import json&lt;BR /&gt;import requests&lt;BR /&gt;import sys&lt;/P&gt;&lt;P&gt;if len(sys.argv) != 2:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; exit(0)&lt;/P&gt;&lt;P&gt;fileName = sys.argv[1]&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;url = "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://" rel="nofollow noopener noreferrer" target="_blank"&gt;http://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;adresse_serveur_alfresco&amp;gt;:8080/alfresco/service/api/upload"&lt;/SPAN&gt;&lt;BR /&gt;auth = ("admin", "admin")&lt;BR /&gt;files = {"filedata": open(fileName, "rb")}&lt;/P&gt;&lt;P&gt;# remplacer node_id par la référence de votre espace ou doit être uploader le fichier&lt;BR /&gt;data = {"destination": "workspace://SpacesStore/&amp;lt;node_id&amp;gt;"}&lt;BR /&gt;r = requests.post(url, files=files, data=data, auth=auth)&lt;BR /&gt;print(r.status_code)&lt;BR /&gt;print(json.loads(r.text))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Merci pour votre aide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Richard&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 09:55:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/r%C3%A9gles-d-espace-et-import-acp/m-p/49203#M28323</guid>
      <dc:creator>richardb</dc:creator>
      <dc:date>2017-03-15T09:55:39Z</dc:date>
    </item>
  </channel>
</rss>

