<?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: jRuby scripting setting up guidelines wanted in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182948#M136078</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some other people trying out JRuby scripting, but it's not very successful: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/scripttask-jruby-cannot-access-execution-variable" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/scripttask-jruby-cannot-access-execution-variable&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also not sure if the 'traditional' way of using gems will work. JRuby as a scripting engine is limited and does not read gems like the regular ruby does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like Tijs said, we don't see many rubyist passing here, so I can't really help you out with examplex I'm afraid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing a post request with Java is another option of course, which many people here could help you with, but then you'd need to get some Java knowledge of course :s&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Jul 2015 19:06:48 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-07-14T19:06:48Z</dc:date>
    <item>
      <title>jRuby scripting setting up guidelines wanted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182945#M136075</link>
      <description>Hi,I'm new to developing for Activiti bpm. These days I mainly used its REST API, and now I need to make some scripts in jRuby. I looked through Activiti user guide and didn't find any directions how to make avitiviti server to execute scripts in ruby, except that&amp;nbsp; I should put jruby.jar to CLASSPAT</description>
      <pubDate>Wed, 08 Jul 2015 11:44:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182945#M136075</guid>
      <dc:creator>zloy</dc:creator>
      <dc:date>2015-07-08T11:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: jRuby scripting setting up guidelines wanted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182946#M136076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have seen a lot of Javascript and Groovy scripts, but jRuby I've not used that much. What kind of direction are you looking for? You should be able to write a jRuby script like you are used to. Process variables will be available as jRuby variables and there's an execution variable that's a DelegateExecution instance which you can use for more complex logic.&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>Thu, 09 Jul 2015 06:59:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182946#M136076</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2015-07-09T06:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: jRuby scripting setting up guidelines wanted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182947#M136077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I mainly write in ruby, while java and jruby fields are new to me. This time I need to write a scripting task which propagates process variables to remote REST service. Basically I need to write a script which reads configuration yaml file to instantiate a connection to remote REST service using Faraday gem, and make a POST request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yesterday I spent all day to make my hello world script run in script task in test process. It took so long cause I couldn't find any directions how to make activiti run jruby script. Seems it's obvious to java guys, but to me as rubyist it was very unclear. I managed it, picking bits of relevant info over the Internet. Today I spent to figure out how to install and make Faraday gem available to my test script, where to place gems, shall I set special permissions to gem files, etc, and finally I could `require 'faraday'`. And I'm not sure I did it right way. I still can not use bundler, despite it's installed just like faraday:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;export GEM_HOME=/var/lib/tomcat6/shared/gems&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;export GEM_PATH=/var/lib/tomcat6/shared/gems&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;java -jar jruby-complete-1.7.21.jar -S gem install bundler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My task fails when I put `require 'rubygems'; require 'bundler/setup' in it. But I think I can get along without it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found no tutorial how to make activiti use jruby, how to install gems, how to use Gemfile, nor how to write simple scripts which access process variables. Sad, but true, I stuck in every trivial bit of work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That is why I'd appreciate for any jruby scripting examples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2015 14:20:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182947#M136077</guid>
      <dc:creator>zloy</dc:creator>
      <dc:date>2015-07-09T14:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: jRuby scripting setting up guidelines wanted</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182948#M136078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There are some other people trying out JRuby scripting, but it's not very successful: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/scripttask-jruby-cannot-access-execution-variable" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/scripttask-jruby-cannot-access-execution-variable&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm also not sure if the 'traditional' way of using gems will work. JRuby as a scripting engine is limited and does not read gems like the regular ruby does.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Like Tijs said, we don't see many rubyist passing here, so I can't really help you out with examplex I'm afraid.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing a post request with Java is another option of course, which many people here could help you with, but then you'd need to get some Java knowledge of course :s&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2015 19:06:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-scripting-setting-up-guidelines-wanted/m-p/182948#M136078</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-07-14T19:06:48Z</dc:date>
    </item>
  </channel>
</rss>

