<?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: how to set property list in automation chain? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322768#M9769</link>
    <description>&lt;P&gt;Hello ioihanguren,&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 19:45:40 GMT</pubDate>
    <dc:creator>Gabino_Reyes</dc:creator>
    <dc:date>2022-04-27T19:45:40Z</dc:date>
    <item>
      <title>how to set property list in automation chain?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322766#M9767</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have the simple property&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;xs:element name="para"&amp;gt;    
&amp;lt;xs:simpleType&amp;gt;    
&amp;lt;xs:list&amp;gt;        
&amp;lt;xs:simpleType&amp;gt;            
&amp;lt;xs:restriction base="xs:string" ref:resolver="userManagerResolver" ref:type="user"/&amp;gt;        &amp;lt;/xs:simpleType&amp;gt;    
&amp;lt;/xs:list&amp;gt;    
&amp;lt;/xs:simpleType&amp;gt;
&amp;lt;/xs:element&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Then in the automation chain:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;&amp;lt;chain id="setPara"&amp;gt;    
&amp;lt;operation id="Document.SetProperty"&amp;gt;        
&amp;lt;param type="string" name="xpath"&amp;gt;doc_base:para&amp;lt;/param&amp;gt;        
&amp;lt;param type="boolean" name="save"&amp;gt;true&amp;lt;/param&amp;gt;        
&amp;lt;param type="serializable" name="value"&amp;gt;expr:Context["workflowInitiator"]&amp;lt;/param&amp;gt;    
&amp;lt;/operation&amp;gt;
&amp;lt;/chain&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;When I execute the chain, output the next error:&lt;/P&gt;
&lt;P&gt;Name: setPara
Exception: OperationException
Caught error: Only scalar types can be set using update operation
Caused by: org.nuxeo.ecm.automation.OperationException: Only scalar types can be set using update operation&lt;/P&gt;
&lt;P&gt;The value for workflowInitiator is:
| Key: state, Value: ready | Key: workflowInitiator, Value: pedro |&lt;/P&gt;
&lt;P&gt;Any suggestion for set the property?&lt;/P&gt;
&lt;P&gt;Regards!
Gabo&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 02:48:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322766#M9767</guid>
      <dc:creator>Gabino_Reyes</dc:creator>
      <dc:date>2022-04-27T02:48:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to set property list in automation chain?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322767#M9768</link>
      <description>&lt;P&gt;Have you tried with "stringlist" type?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 11:23:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322767#M9768</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2022-04-27T11:23:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to set property list in automation chain?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322768#M9769</link>
      <description>&lt;P&gt;Hello ioihanguren,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 19:45:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322768#M9769</guid>
      <dc:creator>Gabino_Reyes</dc:creator>
      <dc:date>2022-04-27T19:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to set property list in automation chain?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322769#M9770</link>
      <description>&lt;P&gt;I don't know if it is the best way to do it, but I think the problem is that you are setting just one username and you need a list. Probably there is a better / easier way to do that with MVEL, but I think that this should work&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 09:33:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-set-property-list-in-automation-chain/m-p/322769#M9770</guid>
      <dc:creator>ioihanguren_</dc:creator>
      <dc:date>2022-04-28T09:33:51Z</dc:date>
    </item>
  </channel>
</rss>

