<?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: Is JSR223 (JRuby) still supported in scripts in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162691#M116544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, bad wording from my side, but you answered my question. Good to hear that you have not dropped support for jRuby. I will put a ticket in Jira with the details. In the mean time, I have tested same code with python/jython which seemed to work, so it may be a jRuby specific problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Aug 2013 09:09:47 GMT</pubDate>
    <dc:creator>pkn</dc:creator>
    <dc:date>2013-08-22T09:09:47Z</dc:date>
    <item>
      <title>Is JSR223 (JRuby) still supported in scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162687#M116540</link>
      <description>According to docs and previous forum discussions, the script task should support all scripting languages that are available under JSR223. But so far, I haven't succeeded in getting anything but Groovy and JavaScript to work. For a simple example with jRuby:&amp;lt;scriptTask id="scripttask2" name="Scrip</description>
      <pubDate>Mon, 19 Aug 2013 21:29:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162687#M116540</guid>
      <dc:creator>pkn</dc:creator>
      <dc:date>2013-08-19T21:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Is JSR223 (JRuby) still supported in scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162688#M116541</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;We do support JRuby and every JSR223 compliant scripting language. The problem I can see is that the puts command invokes an unsupported operation in our binding implementation. What should puts do?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:01:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162688#M116541</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-21T07:01:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is JSR223 (JRuby) still supported in scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162689#M116542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;puts is the Ruby equivalent of Groovy's out:&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rintln, so it's basically just to test the most basic Ruby case. The corresponding Groovy script works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scripttask2" name="Script Task" scriptFormat="groovy" activiti:autoStoreVariables="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt;out&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rintln "Hello, world" &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't think it is related to anything in my script, even an empty Ruby script (which is valid Ruby code) gives same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;scriptTask id="scripttask2" name="Script Task" scriptFormat="ruby" activiti:autoStoreVariables="false"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;script&amp;gt; &amp;lt;/script&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/scriptTask&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And looking closer at the stacktrace, it looks like the problem occurs when jRuby is setting up environment and before any of my script gets executed. Looking at the offending code in org.activiti.engine.impl.scripting.ScriptBindings.keySet(ScriptBindings.java:96), it looks like implementation at Activiti side is deliberately disabled:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public Set&amp;lt;String&amp;gt; keySet() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new UnsupportedOperationException();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;//&amp;nbsp;&amp;nbsp;&amp;nbsp; return variableScope.getVariables().keySet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I.e. it looks like implementation has given problems at some point, and has been commented out. As far as I can tell from browsing the code, there is special treatment for JavaScript and Groovy, but basically no other JSR223 compliant languages seem to be supported currently.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I guess my question is, whether this is a permanent situation, or will general JSR223 support eventually be available agai?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 08:39:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162689#M116542</guid>
      <dc:creator>pkn</dc:creator>
      <dc:date>2013-08-21T08:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: Is JSR223 (JRuby) still supported in scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162690#M116543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We haven't changed this behaviour, so why do use the word "again" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Let's see how we can make things work with JRuby, because it's not our intention to not support it. Can you raise a JIRA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:41:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162690#M116543</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-21T11:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Is JSR223 (JRuby) still supported in scripts</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162691#M116544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, bad wording from my side, but you answered my question. Good to hear that you have not dropped support for jRuby. I will put a ticket in Jira with the details. In the mean time, I have tested same code with python/jython which seemed to work, so it may be a jRuby specific problem.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Aug 2013 09:09:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/is-jsr223-jruby-still-supported-in-scripts/m-p/162691#M116544</guid>
      <dc:creator>pkn</dc:creator>
      <dc:date>2013-08-22T09:09:47Z</dc:date>
    </item>
  </channel>
</rss>

