<?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 ProcessEngineConfiguration gtSessionFactories retun null in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/processengineconfiguration-gtsessionfactories-retun-null/m-p/227713#M180843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From this thread &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/content/use-own-usergroup-tables" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/content/use-own-usergroup-tables&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second post by falko.menge&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-java line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;ProcessEngineConfiguration processEngineConfiguration = new ProcessEngineConfiguration();&lt;BR /&gt;Map&amp;lt;Class&amp;lt; ? &amp;gt;, SessionFactory&amp;gt; sessionFactories = processEngineConfiguration.getSessionFactories();&lt;BR /&gt;sessionFactories.put(IdentitySession.class, new MyIdentitySessionFactory());&lt;BR /&gt;ProcessEngine processEngine = processEngineConfiguration.buildProcessEngine();&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;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting null for sessionFactories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In that case can I just create a new sessionFactories and put my custom user and group in that new sessionFactories?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Asking this because I did just that and get error saying &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"No session factory configured for org.activiti.engine.imp.db.DbSqlSession"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sounds like since I am creating a new sessionFactories I need to put DbSqlSession inside it too. But all the code I see did not show how to do this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So can be that there is no need to put DbSqlSession but I am doing something wrong. For instance all the example I see in this forums show that getSessionFactories does not return null.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion is appreciated!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jan 2016 07:38:15 GMT</pubDate>
    <dc:creator>harishashim</dc:creator>
    <dc:date>2016-01-03T07:38:15Z</dc:date>
    <item>
      <title>ProcessEngineConfiguration gtSessionFactories retun null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processengineconfiguration-gtsessionfactories-retun-null/m-p/227713#M180843</link>
      <description>From this thread https://forums.activiti.org/content/use-own-usergroup-tablesSecond post by falko.mengeProcessEngineConfiguration processEngineConfiguration = new ProcessEngineConfiguration();Map&amp;lt;Class&amp;lt; ? &amp;gt;, SessionFactory&amp;gt; sessionFactories = processEngineConfiguration.getSessionFactorie</description>
      <pubDate>Sun, 03 Jan 2016 07:38:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processengineconfiguration-gtsessionfactories-retun-null/m-p/227713#M180843</guid>
      <dc:creator>harishashim</dc:creator>
      <dc:date>2016-01-03T07:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: ProcessEngineConfiguration gtSessionFactories retun null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/processengineconfiguration-gtsessionfactories-retun-null/m-p/227714#M180844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Solve getting null for sessionFactories.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am following code as in this post &lt;/SPAN&gt;&lt;A href="https://forums.activiti.org/comment/1246#comment-1246" rel="nofollow noopener noreferrer"&gt;https://forums.activiti.org/comment/1246#comment-1246&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I did that cause me to get null sesstionFactories is this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public ProcessEngine getObject() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //code that getSessionFactories which return null sessionFactories&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return Objecsuper.getObject();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And what fix it is this&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; @Override&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public ProcessEngine getObject() throws Exception {&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; ProcessEngine processEngineObject = super.getObject();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; //codes that getSessionFactories that is not null from processEngineObject&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; return processEngineObject;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/java&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ha! should have think of this earlier &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>Sun, 03 Jan 2016 11:55:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/processengineconfiguration-gtsessionfactories-retun-null/m-p/227714#M180844</guid>
      <dc:creator>harishashim</dc:creator>
      <dc:date>2016-01-03T11:55:42Z</dc:date>
    </item>
  </channel>
</rss>

