<?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 JRuby, Rails, TorqueBox and Activiti in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174424#M127554</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am starting on a project to use Activiti as a process engine from a rails web application. I am planning to use TorqueBox as my application server. I have successfully created a sample app from the user guide using JRuby. When I try to use that same method start up the Activiti Process Engine inside of a TorqueBox service class, it fails to load the configuration (though it works in the rails console – which is odd). I am not sure how to debug this, also I am not clear on how I should tear down the engine in the stop method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I searched the forums for jruby and rails and there is not much at all there, so it looks like I am invading virgin territory. I got here after a pure ruby project called 'Ruote' (&lt;/SPAN&gt;&lt;A href="http://ruote.rubyforge.org" rel="nofollow noopener noreferrer"&gt;http://ruote.rubyforge.org&lt;/A&gt;&lt;SPAN&gt;) became unmanaged.&amp;nbsp; I think Activiti looks great, but it may take a little tweaking to run it with JRuby and Rails. I saw a forum post about using JRuby for a scripting task (&lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/content/jsr223-jruby-still-supported-scripts" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/content/jsr223-jruby-still-supported-scripts&lt;/A&gt;&lt;SPAN&gt;). Has this been fixed?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any help y'all can give.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Below is the service class used to start the process engine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;ruby&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bundler.require "activiti-engine"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bundler.require "h2"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;class Activiti&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; def initialize(options)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Activiti#initialize"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; def start&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Activiti#start"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; config_path = "#{Rails.root}/config/activiti.cfg.xml"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "config path = #{config_path}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @process_engine_configuration = Java:&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;rgActivitiEngine:&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;rocessEngineConfiguration.createProcessEngineConfigurationFromResource(config_path)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @process_engine = $process_engine_configuration.buildProcessEngine&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "process_engine = #{@process_engine}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; def stop&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; puts "Activiti#stop"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;end&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/ruby&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And here is the error I get:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;09:48:10,426 INFO&amp;nbsp; [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (pool-1-thread-3) Loading XML bean definitions from class path resource [Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;09:48:10,428 ERROR [org.jboss.msc.service.fail] (pool-1-thread-3) MSC00001: Failed to start service jboss.deployment.unit."torquetest-knob.yml".service.activiti: org.jboss.msc.service.StartException in service jboss.deployment.unit."torquetest-knob.yml".service.activiti: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml]; nested exception is java.io.FileNotFoundException: class path resource [Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml] cannot be opened because it does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at org.projectodd.polyglot.core.AsyncService$1.run(AsyncService.java:52) [polyglot-core.jar:1.18.0]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.FutureTask.run(FutureTask.java:138) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at java.lang.Thread.run(Thread.java:695) [classes.jar:1.6.0_65]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml]; nested exception is java.io.FileNotFoundException: class path resource [Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml] cannot be opened because it does not exist&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 May 2014 15:38:58 GMT</pubDate>
    <dc:creator>boberetezeke</dc:creator>
    <dc:date>2014-05-20T15:38:58Z</dc:date>
    <item>
      <title>JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174424#M127554</link>
      <description>I am starting on a project to use Activiti as a process engine from a rails web application. I am planning to use TorqueBox as my application server. I have successfully created a sample app from the user guide using JRuby. When I try to use that same method start up the Activiti Process Engine insi</description>
      <pubDate>Tue, 20 May 2014 15:38:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174424#M127554</guid>
      <dc:creator>boberetezeke</dc:creator>
      <dc:date>2014-05-20T15:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174425#M127555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am&amp;nbsp; sorry , I am not JRuby, Rails and TorqueBx expert. Solution could be simple.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is &lt;/SPAN&gt;&lt;CODE&gt;Users/stevetuckner/Projects/Open-Org/torquebox/torquetest/config/activiti.cfg.xml&lt;/CODE&gt;&lt;SPAN&gt; present?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(But may be I am wrong.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 May 2014 06:36:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174425#M127555</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-05-21T06:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174426#M127556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fixed it by putting the activiti.cfg.xml into WEB_INF/classes. Torquebox is a JBOSS server. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about the question about using JRuby for scripting?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 May 2014 18:46:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174426#M127556</guid>
      <dc:creator>boberetezeke</dc:creator>
      <dc:date>2014-05-23T18:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174427#M127557</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;BLOCKQUOTE class="jive-quote"&gt;What about the question about using JRuby for scripting?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no info about JRuby.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 May 2014 06:42:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174427#M127557</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-05-26T06:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174428#M127558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt; What about the question about using JRuby for scripting?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If JRuby implements the JDK scripting engine interfaces, it should work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I read the forum post you linked to, and the code that is discussed there is uncommented now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, the easiest way to check it is to try it out … and let us know if something goes wrong!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 07:10:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174428#M127558</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-27T07:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174429#M127559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did now try using a script task with JRuby and yes it works. Thanks!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 17:13:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174429#M127559</guid>
      <dc:creator>boberetezeke</dc:creator>
      <dc:date>2014-05-27T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: JRuby, Rails, TorqueBox and Activiti</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174430#M127560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 May 2014 09:04:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/jruby-rails-torquebox-and-activiti/m-p/174430#M127560</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-05-30T09:04:25Z</dc:date>
    </item>
  </channel>
</rss>

