<?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: Groovy Script Task serialize error with HTTPBuilder in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159378#M113413</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect, that was it, thanks for the rapid and clear response &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Jan 2014 13:00:24 GMT</pubDate>
    <dc:creator>gavnunns</dc:creator>
    <dc:date>2014-01-16T13:00:24Z</dc:date>
    <item>
      <title>Groovy Script Task serialize error with HTTPBuilder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159376#M113411</link>
      <description>Hello, I am trying to write a script task in Groovy that implements a simple REST client to query a web service.&amp;nbsp; The script works outside of the script task with the same environment that the engine is running in.—import groovyx.net.http.RESTClientfreedom = new RESTClient( 'http://api:api@localhost</description>
      <pubDate>Thu, 16 Jan 2014 12:40:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159376#M113411</guid>
      <dc:creator>gavnunns</dc:creator>
      <dc:date>2014-01-16T12:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Task serialize error with HTTPBuilder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159377#M113412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;THe REST-client is treated as a variable and is tried to be stored, while you don't want that. Userguide says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;activiti:executionListener event="start" class="org.activiti.engine.impl.bpmn.listener.ScriptExecutionListener" &amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;activiti:field name="script"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; def bar = "BAR";&amp;nbsp; // local variable&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; foo = "FOO"; // pushes variable to execution context&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("var1", "test"); // test access to execution instance&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bar // implicit return value&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/activiti:string&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/activiti:field&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;activiti:field name="language" stringValue="groovy" /&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;activiti:field name="resultVariable" stringValue="myVar" /&amp;gt;&lt;BR /&gt;&amp;lt;activiti:executionListener&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;So use "def" instead, when declaring the REST-client, so it's not treated as a process-variable.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 12:45:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159377#M113412</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-16T12:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Task serialize error with HTTPBuilder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159378#M113413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Perfect, that was it, thanks for the rapid and clear response &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jan 2014 13:00:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159378#M113413</guid>
      <dc:creator>gavnunns</dc:creator>
      <dc:date>2014-01-16T13:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Groovy Script Task serialize error with HTTPBuilder</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159379#M113414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No worries, glad to help &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jan 2014 07:51:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/groovy-script-task-serialize-error-with-httpbuilder/m-p/159379#M113414</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-17T07:51:27Z</dc:date>
    </item>
  </channel>
</rss>

