<?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 Operation publication into Nuxeo Studio Failed in Nuxeo Forum</title>
    <link>https://connect.hyland.com/t5/nuxeo-forum/operation-publication-into-nuxeo-studio-failed/m-p/325274#M12275</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I created a new operation through Nuxeo IDE with Parameters with Nuxeo Studio as following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Operation(id = MyOperation.ID, category = Constants.CAT_SERVICES, label = "My Operation", description = "")
public class MyOperation {

   public static final String ID = "Relations.CreateRelation";

   @Context
   protected CoreSession session;

   @Param(name = "aStringParameter", required=false, values = "MyDefaultValueProposedInStudio")
   protected boolean outgoing = "MyDefaultValueProposedInStudio";

   @OperationMethod(collector = DocumentModelCollector.class)
   public DocumentModel run(DocumentModel doc) throws Exception {
   }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I had an ugly message from IDE that tells me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Cannot introspect operation MyOperation.java
Cannot extract annotations values in ....
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is my mistake, please.&lt;/P&gt;</description>
    <pubDate>Mon, 26 Nov 2012 17:21:35 GMT</pubDate>
    <dc:creator>Benjamin_Jalon1</dc:creator>
    <dc:date>2012-11-26T17:21:35Z</dc:date>
    <item>
      <title>Operation publication into Nuxeo Studio Failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/operation-publication-into-nuxeo-studio-failed/m-p/325274#M12275</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I created a new operation through Nuxeo IDE with Parameters with Nuxeo Studio as following:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Operation(id = MyOperation.ID, category = Constants.CAT_SERVICES, label = "My Operation", description = "")
public class MyOperation {

   public static final String ID = "Relations.CreateRelation";

   @Context
   protected CoreSession session;

   @Param(name = "aStringParameter", required=false, values = "MyDefaultValueProposedInStudio")
   protected boolean outgoing = "MyDefaultValueProposedInStudio";

   @OperationMethod(collector = DocumentModelCollector.class)
   public DocumentModel run(DocumentModel doc) throws Exception {
   }
}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I had an ugly message from IDE that tells me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;Cannot introspect operation MyOperation.java
Cannot extract annotations values in ....
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;What is my mistake, please.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 17:21:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/operation-publication-into-nuxeo-studio-failed/m-p/325274#M12275</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-11-26T17:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Operation publication into Nuxeo Studio Failed</title>
      <link>https://connect.hyland.com/t5/nuxeo-forum/operation-publication-into-nuxeo-studio-failed/m-p/325275#M12276</link>
      <description>&lt;P&gt;Hi me,&lt;/P&gt;
&lt;P&gt;You are near of a perfect operation, for a short answer, here is the solution:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;@Param(name = "aStringParameter", required=false, values = {"MyDefaultValueProposedInStudio"})
protected boolean outgoing = "MyDefaultValueProposedInStudio";
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;For a longer and full answer see &lt;A href="https://jira.nuxeo.com/browse/NXP-10540"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Nov 2012 17:23:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/nuxeo-forum/operation-publication-into-nuxeo-studio-failed/m-p/325275#M12276</guid>
      <dc:creator>Benjamin_Jalon1</dc:creator>
      <dc:date>2012-11-26T17:23:06Z</dc:date>
    </item>
  </channel>
</rss>

