<?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 Integrating Activiti into OSGi Environment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/integrating-activiti-into-osgi-environment/m-p/215443#M168573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello everybody,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we are using Activiti 5.19.0.1 within an Eclipse Equinox OSGi environment. We do so by consuming the activiti-engine bundle downloaded from Maven Central within one of our bundles. In that bundle, we then create a ProcessEngineConfiguration like this in the bundle's Activator:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;final ProcessEngineConfiguration configuration = ProcessEngineConfiguration&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessEngineConfigurationFromInputStream( new FileInputStream( "activiti.cfg.xml" ), "WorkflowEngineConfiguration" );&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;However, this does not work since the activiti framework uses Spring Beans to load the configuration from the provided activiti.cfg.xml configuration file. We managed to get the file loaded by the Spring Beans framework, but when it tries to resolve the org.activiti.engine.impl.cfg.StandaloneProcessEngineConfiguration class, it fails with a classloading problem as it delegates the classloading to the org.eclipse.osgi.internal.framework.ContextFinder implementation of a classloader. That further delegates the actual classloading to the classloader instance of the Spring Beans bundle which of course does not see the stated StandaloneProcessEngineConfiguration class of the activiti-engine bundle. We would have to declare a dependency from the Spring Beans bundle to the activit-engine bundle which is of course not desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To me the problem seems to be the general problem of integrating spring beans into OSGi which is almost impossible since the Spring framework dropped OSGi-support. I think Activiti could provide an additional way of loading its configuration from a file without relying on Spring Beans. That would make it much simpler to integrate Activiti into an OSGi context.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you guys have any hints how to integrate Activiti into an OSGi-based application?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We appreciate any comment, hint, suggestion, …&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Timo Rohrberg&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jul 2016 08:10:06 GMT</pubDate>
    <dc:creator>timo_rohrberg</dc:creator>
    <dc:date>2016-07-11T08:10:06Z</dc:date>
    <item>
      <title>Integrating Activiti into OSGi Environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrating-activiti-into-osgi-environment/m-p/215443#M168573</link>
      <description>Hello everybody,we are using Activiti 5.19.0.1 within an Eclipse Equinox OSGi environment. We do so by consuming the activiti-engine bundle downloaded from Maven Central within one of our bundles. In that bundle, we then create a ProcessEngineConfiguration like this in the bundle's Activator:final P</description>
      <pubDate>Mon, 11 Jul 2016 08:10:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrating-activiti-into-osgi-environment/m-p/215443#M168573</guid>
      <dc:creator>timo_rohrberg</dc:creator>
      <dc:date>2016-07-11T08:10:06Z</dc:date>
    </item>
    <item>
      <title>Re: Integrating Activiti into OSGi Environment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/integrating-activiti-into-osgi-environment/m-p/215444#M168574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Timo,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you have a look at the activiti-osgi module? That should make it easier to use Activiti in an OSGi environment.&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>Mon, 18 Jul 2016 09:30:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/integrating-activiti-into-osgi-environment/m-p/215444#M168574</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2016-07-18T09:30:42Z</dc:date>
    </item>
  </channel>
</rss>

