<?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: Setting multi-valued property in automation chain in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315999#M3000</link>
    <description>&lt;P&gt;I have the same problem. How can I store multi-valued property in Nuxeo Studio ?&lt;/P&gt;</description>
    <pubDate>Thu, 29 Nov 2012 15:05:40 GMT</pubDate>
    <dc:creator>delphine_</dc:creator>
    <dc:date>2012-11-29T15:05:40Z</dc:date>
    <item>
      <title>Setting multi-valued property in automation chain</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315997#M2998</link>
      <description>&lt;P&gt;Hi,
I have a problem with my automation chain I defined in Nuxeo Studio.
The automation chain is bound to an event handler which react on the "Document Created" event.
The automation chain should do the following:
If a document is created with a specific parent document, some property of the parent document should be added to the newly created document. But the property is a multi-valued string property.&lt;/P&gt;
&lt;P&gt;I created the automation chain as described in one of the tutorials:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Fetch &amp;gt; Context Document(s)&lt;/LI&gt;
&lt;LI&gt;Push &amp;amp; Pop &amp;gt; Push document&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Get Parent&lt;/LI&gt;
&lt;LI&gt;Execution Context &amp;gt; Set Context Variable&lt;/LI&gt;
&lt;LI&gt;Push &amp;amp; Pop &amp;gt; Pop Document&lt;/LI&gt;
&lt;LI&gt;Document &amp;gt; Update Property&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In "Set Context Variable" I retrieve the value of the property from the parent (expr:@{Document["schema:myProperty"]}) and store it in a context variable. In "Update Property" I set the value for the same property on the created document ().&lt;/P&gt;
&lt;P&gt;This seems to work fine for single valued properties, but after I made the property multi-valued, I got exceptions when creating the new child document:&lt;/P&gt;
&lt;P&gt;javax.el.ELException: org.nuxeo.ecm.core.api.ClientException: Failed to get document /default-domain/myWorkspace/ParentDocument/ChildDocument&lt;/P&gt;
&lt;P&gt;Should this work the same way for multi-valued properties, or is there any other way to achieve this?&lt;/P&gt;
&lt;P&gt;Thanks,
Dirk&lt;/P&gt;</description>
      <pubDate>Tue, 07 Aug 2012 18:29:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315997#M2998</guid>
      <dc:creator>Dirk_Wenke</dc:creator>
      <dc:date>2012-08-07T18:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: Setting multi-valued property in automation chain</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315998#M2999</link>
      <description>&lt;P&gt;I solved this problem now by writing my own EventListener and managing the things programmatically.
But as far as I can see this cannot be solved by configuration in Nuxeo Studio.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2012 08:16:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315998#M2999</guid>
      <dc:creator>Dirk_Wenke</dc:creator>
      <dc:date>2012-08-09T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Setting multi-valued property in automation chain</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315999#M3000</link>
      <description>&lt;P&gt;I have the same problem. How can I store multi-valued property in Nuxeo Studio ?&lt;/P&gt;</description>
      <pubDate>Thu, 29 Nov 2012 15:05:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/315999#M3000</guid>
      <dc:creator>delphine_</dc:creator>
      <dc:date>2012-11-29T15:05:40Z</dc:date>
    </item>
    <item>
      <title>Re: Setting multi-valued property in automation chain</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/316000#M3001</link>
      <description>&lt;P&gt;I used this solution :
&lt;A href="http://answers.nuxeo.com/questions/4240/add-string-to-a-list-string-property-in-pure-studioautomation-for-prototypes"&gt;Add string to a list String property in pure Studio/automation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 13:54:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/setting-multi-valued-property-in-automation-chain/m-p/316000#M3001</guid>
      <dc:creator>milonette_</dc:creator>
      <dc:date>2013-02-13T13:54:29Z</dc:date>
    </item>
  </channel>
</rss>

