<?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 use a field using the user suggestion widget ? in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328428#M15429</link>
    <description>&lt;P&gt;Backporting new feature is bad...&lt;/P&gt;</description>
    <pubDate>Tue, 11 Sep 2012 11:33:45 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2012-09-11T11:33:45Z</dc:date>
    <item>
      <title>How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328423#M15424</link>
      <description>&lt;P&gt;I have a field called reviewers (multi valued string)
it is populated thanks to the user suggestion widget
i d like to use its content for a setACE operation in a chain
but i get a casting error :&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;No type adapter found for input: class [Ljava.lang.String; and output class java.lang.String
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I already made it, but can't remember how &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Sep 2012 16:48:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328423#M15424</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-09-10T16:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328424#M15425</link>
      <description>&lt;P&gt;Did you try the run for each operation with a sub operation.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 07:52:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328424#M15425</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-11T07:52:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328425#M15426</link>
      <description>&lt;P&gt;unforunately, i'm running a 5.4.2 project and the the "run for each " operation seems to be 5.5&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 08:37:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328425#M15426</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-09-11T08:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328426#M15427</link>
      <description>&lt;P&gt;So if you are on 5.4.2, you have 2 solutions :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Upgrade your Nuxeo to 5.6 &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/LI&gt;
&lt;LI&gt;Or if you have some development skills create your operation with Nuxeo IDE.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;With Nuxeo IDE it will be really quick to do that :&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;P&gt;I let you look the Nuxeo IDE installation documentation : &lt;A href="http://doc.nuxeo.com/x/ZYKE" target="test_blank"&gt;http://doc.nuxeo.com/x/ZYKE&lt;/A&gt;&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Then you create a new Nuxeo Plugin Project (click on the yellow button &amp;gt; new Nuxeo Plugin name it &amp;gt; next &amp;gt; next )&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;Create a new Operation (click on the yellow button &amp;gt; new Operation &amp;gt; name it &amp;gt; Next &amp;gt; Next )&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;P&gt;And finally you fill the operation :&lt;/P&gt;
&lt;P&gt;@Operation(id = YourOpertion.ID, category = Constants.CAT_SUBCHAIN_EXECUTION, label = "Run For Each", description = "")
public class YourOpertion {&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt; public static final String ID = "YourOpertion";

 @Context
 protected OperationContext ctx;

 @Context
 protected AutomationService service;

 @Param(name = "id")
 protected String chainId;

 @Param(name = "list")
 protected String listName;

 @Param(name = "item", required = false, values = "item")
 protected String itemName = "item";

 @Param(name = "isolate", required = false, values = "true")
 protected boolean isolate = true;

 @OperationMethod
 public void run() throws Exception {
     Map&amp;lt;String, Object&amp;gt; vars = isolate ? new HashMap&amp;lt;String, Object&amp;gt;(
             ctx.getVars()) : ctx.getVars();
     OperationContext subctx = new OperationContext(ctx.getCoreSession(),
             vars);
     subctx.setInput(ctx.getInput());
     for (Object value : (Collection&amp;lt;?&amp;gt;) ctx.get(listName)) {
         subctx.put(itemName, value);
         service.run(subctx, chainId);
     }
 }
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:05:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328426#M15427</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-11T10:05:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328427#M15428</link>
      <description>&lt;P&gt;That's what i was about to do.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 10:42:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328427#M15428</guid>
      <dc:creator>pibou_Bouvret</dc:creator>
      <dc:date>2012-09-11T10:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328428#M15429</link>
      <description>&lt;P&gt;Backporting new feature is bad...&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:33:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328428#M15429</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-11T11:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328429#M15430</link>
      <description>&lt;P&gt;Feel free to contribute an addon on github for missing operations&lt;/P&gt;</description>
      <pubDate>Tue, 11 Sep 2012 11:36:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328429#M15430</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-11T11:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to use a field using the user suggestion widget ?</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328430#M15431</link>
      <description>&lt;P&gt;Create a new Question please...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Sep 2012 11:16:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/how-to-use-a-field-using-the-user-suggestion-widget/m-p/328430#M15431</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-09-12T11:16:30Z</dc:date>
    </item>
  </channel>
</rss>

