<?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 How to access input java objects with Groovy, Javascript? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-input-java-objects-with-groovy-javascript/m-p/25731#M12747</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We can use JUEL to call method from an input Java object, for example ${user.id}. But we can only save the result back to &lt;/SPAN&gt;&lt;SPAN style="text-decoration: underline;"&gt;one&lt;/SPAN&gt;&lt;SPAN&gt; variable per script task (by using att &lt;/SPAN&gt;&lt;EM&gt;resultVariableName&lt;/EM&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I want to find a way in Groovy or Javascript to access and manipulate input java objects in Script Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please give me a hint. Thank you &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Feb 2011 17:04:25 GMT</pubDate>
    <dc:creator>ryu</dc:creator>
    <dc:date>2011-02-11T17:04:25Z</dc:date>
    <item>
      <title>How to access input java objects with Groovy, Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-input-java-objects-with-groovy-javascript/m-p/25731#M12747</link>
      <description>Hi all,We can use JUEL to call method from an input Java object, for example ${user.id}. But we can only save the result back to one variable per script task (by using att resultVariableName)So I want to find a way in Groovy or Javascript to access and manipulate input java objects in Script Task.Pl</description>
      <pubDate>Fri, 11 Feb 2011 17:04:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-input-java-objects-with-groovy-javascript/m-p/25731#M12747</guid>
      <dc:creator>ryu</dc:creator>
      <dc:date>2011-02-11T17:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to access input java objects with Groovy, Javascript?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-access-input-java-objects-with-groovy-javascript/m-p/25732#M12748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In a script-task, you can just declare a variable and it will be stored as process-variable, eg:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;scriptTask id="theScriptTask" name="Execute script" scriptFormat="js"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;script&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var myVariable = 'this is a value';&lt;BR /&gt;&amp;nbsp; &amp;lt;/script&amp;gt;&lt;BR /&gt;&amp;lt;/scriptTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt;After the script-task ran, the variable will be set on the execution/process-instance. The resultVariableName you are referring to is on a ServiceTask instead of a ScriptTask.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Feb 2011 20:46:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-access-input-java-objects-with-groovy-javascript/m-p/25732#M12748</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-11T20:46:52Z</dc:date>
    </item>
  </channel>
</rss>

