<?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: Activiti runtimeService in Spring context and in class that it's not Spring bean in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186035#M139165</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. I will try to use AplicationContextAware bean.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Aug 2014 17:25:40 GMT</pubDate>
    <dc:creator>bluelettuce16</dc:creator>
    <dc:date>2014-08-11T17:25:40Z</dc:date>
    <item>
      <title>Activiti runtimeService in Spring context and in class that it's not Spring bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186031#M139161</link>
      <description>Hi,I am new to Activiti and I am very interested to master it &lt;IMG id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;I have the following problem. I am writing application that uses Spring container however not all my classes are Spring beans - part of them are just simple classes. I need the Activity runtimeService in both cases. My solution is that</description>
      <pubDate>Sat, 09 Aug 2014 20:58:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186031#M139161</guid>
      <dc:creator>bluelettuce16</dc:creator>
      <dc:date>2014-08-09T20:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti runtimeService in Spring context and in class that it's not Spring bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186032#M139162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You'll have 2 different engines created: one booted by the spring-container and one standalone. You'll have 2 separate datasources (each taking up X number of connections, in the worst case) and 2 job-executors who will be competing to execute jobs (which may lead to a tiny bit of overhead when doing optimistic locking).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hence, you'll have 2 different instances of runtimeService - any difference in configuration *could* cause issues when engine 1 reads processes started by engine 2. Can't you create an additional bean that is AplicationContextAware (and perhaps listens for ApplicationContextEvents) which extract the process-engine from the spring-context and exposes this though a thread-local or static field?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:01:04 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186032#M139162</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-08-11T08:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti runtimeService in Spring context and in class that it's not Spring bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186033#M139163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Which reminds me, the ProcessEngines class does exactly what you need. When spring boots the engine, it will be registered with the ProcessEngines object, available for non-spring aware services to fetch it in a static way…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 08:02:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186033#M139163</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-08-11T08:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti runtimeService in Spring context and in class that it's not Spring bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186034#M139164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I forgot to mention that I've used ProcessEngines.getDefaultProcessEngine(), so this is ok?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 17:25:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186034#M139164</guid>
      <dc:creator>bluelettuce16</dc:creator>
      <dc:date>2014-08-11T17:25:10Z</dc:date>
    </item>
    <item>
      <title>Re: Activiti runtimeService in Spring context and in class that it's not Spring bean</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186035#M139165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the reply. I will try to use AplicationContextAware bean.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Aug 2014 17:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/activiti-runtimeservice-in-spring-context-and-in-class-that-it-s/m-p/186035#M139165</guid>
      <dc:creator>bluelettuce16</dc:creator>
      <dc:date>2014-08-11T17:25:40Z</dc:date>
    </item>
  </channel>
</rss>

