<?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 Activiti + Camel in OSGi: problem with imported packages in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149038#M104057</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;SPAN&gt;&amp;nbsp;&amp;nbsp; first of all, I have to say that you are doing an excellent work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have implemented a couple of business processes in Activiti. Those processes use a pair of Camel routes by using the corresponding Camel tasks as described in the user guide. It works pretty fine in the unit tests implemented to validate it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; I have deployed it in an OSGi container with the following bundle constellation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * activiti engine bundle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * activiti spring bundle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * activiti camel bundle&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * activiti osgi bundle (implementing the extender which searches for bpmn files and deploys them in the engine)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * bundle1which instantiates the engine and exports it as an OSGi service. The activiti services (runtime, task, repository, etc.) are exported as well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; * bundle2 containing the process definitions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; When this constellation is deployed, the extender finds correctly the process definitions and tries to deploy them. Unfortunately, I get an error during the process as there seems to be some problems with the classloader restrictions in the OSGi environments.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; The error I get is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unable to deploy activiti bundle &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: Errors while parsing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Could not find org.activiti.camel.CamelBehavior: org.activiti.camel.impl.CamelBehaviorDefaultImpl not found by org.activiti.engine&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is caused because the activiti-engine bundle has no visibility of the packages exported by the bundle activiti-camel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As a workaround I have created a bundle defined as a fragment of the activiti-engine bundle that imports the packages exported by activiti-camel (in fact uses Require-Bundle) but this is nothing else than a dirty workaround. I think the elegant solution is that the activiti-engine bundle imports the packages exported by the activiti-camel bundle with the flag for optional requirement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; Can you please consider include this change in the next version? In case you think that this is not a proper solution can you please provide me some hints on why?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; thanks a lot&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Sep 2013 20:02:03 GMT</pubDate>
    <dc:creator>ojdiez</dc:creator>
    <dc:date>2013-09-23T20:02:03Z</dc:date>
    <item>
      <title>Activiti + Camel in OSGi: problem with imported packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149038#M104057</link>
      <description>Hi,&amp;nbsp;&amp;nbsp; first of all, I have to say that you are doing an excellent work &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&amp;nbsp; I have implemented a couple of business processes in Activiti. Those processes use a pair of Camel routes by using the corresponding Camel tasks as described in the user guide. It works pretty fine in the unit tests impleme</description>
      <pubDate>Mon, 23 Sep 2013 20:02:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149038#M104057</guid>
      <dc:creator>ojdiez</dc:creator>
      <dc:date>2013-09-23T20:02:03Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti + Camel in OSGi: problem with imported packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149039#M104058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, seems like a good change. Could you create a Github pull request? Otherwise I think it will not make the cut for the 5.14 release.&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>Tue, 24 Sep 2013 09:13:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149039#M104058</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-09-24T09:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti + Camel in OSGi: problem with imported packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149040#M104059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have created a Github pull request for this change.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 20:10:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149040#M104059</guid>
      <dc:creator>ojdiez</dc:creator>
      <dc:date>2013-09-24T20:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti + Camel in OSGi: problem with imported packages</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149041#M104060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The pull-request has been accepted, thanks for sharing!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 07:40:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-camel-in-osgi-problem-with-imported-packages/m-p/149041#M104060</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-10-02T07:40:32Z</dc:date>
    </item>
  </channel>
</rss>

