<?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: Changes from 5.0rc1 to 5.0 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9079#M3119</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mattias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ProcessEngineConfiguration allows you to add custom session factories, before it is built:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineConfigurationImpl configuration = (ProcessEngineConfigurationImpl) ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Add your custom session factory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SessionFactory myFactory = new CustomSessionFactory();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setCustomSessionFactories(Arrays.asList(myFactory));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine engine = configuration.buildProcessEngine();&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Dec 2010 07:58:39 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2010-12-15T07:58:39Z</dc:date>
    <item>
      <title>Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9077#M3117</link>
      <description>I was using in 5.0rc1 this code to provide activiti with my implementation of the identity session factory…ProcessEngineConfiguration conf = new ProcessEngineConfiguration();Map&amp;lt;Class&amp;lt;?&amp;gt;, SessionFactory&amp;gt; sessionFactories = conf.getSessionFactories();sessionFactories.put(IdentitySession.c</description>
      <pubDate>Wed, 15 Dec 2010 04:14:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9077#M3117</guid>
      <dc:creator>matias</dc:creator>
      <dc:date>2010-12-15T04:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9078#M3118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I fixed it changing it to &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngineConfigurationImpl conf = (ProcessEngineConfigurationImpl) ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and calling conf.buildProcessEngine() before conf.getSessionFactories().&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this is the right way&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 04:39:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9078#M3118</guid>
      <dc:creator>matias</dc:creator>
      <dc:date>2010-12-15T04:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9079#M3119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Mattias,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The ProcessEngineConfiguration allows you to add custom session factories, before it is built:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngineConfigurationImpl configuration = (ProcessEngineConfigurationImpl) ProcessEngineConfiguration.createStandaloneProcessEngineConfiguration();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Add your custom session factory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SessionFactory myFactory = new CustomSessionFactory();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setCustomSessionFactories(Arrays.asList(myFactory));&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ProcessEngine engine = configuration.buildProcessEngine();&lt;BR /&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Dec 2010 07:58:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9079#M3119</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2010-12-15T07:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9080#M3120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try to integrate Activiti and Spring Security by implement the custom SpringProcessEngineConfiguration and Session Factory. Please see the following code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.spring.SpringProcessEngineConfiguration;&lt;BR /&gt;import org.activiti.engine.ProcessEngine;&lt;BR /&gt;import java.util.ArrayList;&lt;BR /&gt;&lt;BR /&gt;class SpringSecurityProcessEngineConfiguration extends SpringProcessEngineConfiguration {&lt;BR /&gt; public ProcessEngine buildProcessEngine() {&lt;BR /&gt;&amp;nbsp; ArrayList customSessionFactories = new ArrayList(1);&lt;BR /&gt;&amp;nbsp; customSessionFactories.add(new SpringSecurityIdentitySessionFactory());&lt;BR /&gt;&amp;nbsp; setCustomSessionFactories(customSessionFactories);&lt;BR /&gt;&amp;nbsp; return super.buildProcessEngine();&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;package org.grails.activiti.springsecurity;&lt;BR /&gt;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.Session;&lt;BR /&gt;import org.activiti.engine.impl.interceptor.SessionFactory;&lt;BR /&gt;&lt;BR /&gt;class SpringSecurityIdentitySessionFactory implements SessionFactory {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;BR /&gt; public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp; return SpringSecurityIdentitySession.class;&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; public Session openSession() {&lt;BR /&gt;&amp;nbsp; return new SpringSecurityIdentitySession();&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I configure org.grails.activiti.springsecurity.SpringSecurityProcessEngineConfiguration in spring application context to initialize Activiti process engine. Everything seems working fine without any error. But when I run the integration tests of Activiti's identityService, no invocation route to custom SpringSecurityIdentitySession class. Did I missed anything?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fyi, I am using Activiti 5.3.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance. Wish to hear from you soon!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 10:00:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9080#M3120</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-03-06T10:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9081#M3121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please post in a new topic…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 00:05:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9081#M3121</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-07T00:05:14Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9082#M3122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Noted. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please see the new post here &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1261" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=1261&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Chee Kin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 04:59:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9082#M3122</guid>
      <dc:creator>limcheekin</dc:creator>
      <dc:date>2011-03-07T04:59:34Z</dc:date>
    </item>
    <item>
      <title>Re: Changes from 5.0rc1 to 5.0</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9083#M3123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://connect.hyland.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 07:29:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/changes-from-5-0rc1-to-5-0/m-p/9083#M3123</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-03-07T07:29:26Z</dc:date>
    </item>
  </channel>
</rss>

