<?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: Custom identity management changed in Activiti 6.0 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28899#M12329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably, I think that&amp;nbsp;you&amp;nbsp;can &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;use custom identity management with Activiti 6.0&lt;/SPAN&gt; with the following procedure.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Implement the GroupDataManager interface. Or, extend&amp;nbsp;MybatisGroupDataManager.class&lt;/P&gt;&lt;P&gt;2. ProcessEngineConfigurationImpl.setGroupDataManager(GroupDataManager groupDataManager)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L3051" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L3051" rel="nofollow noopener noreferrer"&gt;Activiti/ProcessEngineConfigurationImpl.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly, Activiti user guide is wrong.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/userguide/#advanced.custom.session.manager" style="color: #2989c5; text-decoration: none;" title="https://www.activiti.org/userguide/#advanced.custom.session.manager" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alfresco.com/community/bpm/blog/2017/06/01/activiti-6-is-here" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/bpm/blog/2017/06/01/activiti-6-is-here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 21 Jan 2018 09:10:39 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-01-21T09:10:39Z</dc:date>
    <item>
      <title>Custom identity management changed in Activiti 6.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28898#M12328</link>
      <description>I am trying to use custom identity management with Activiti 6.0The example i user guide is not matching with the one in Activiti 6.0public class MyGroupManagerFactory implements SessionFactory { @Override public Class&amp;lt;?&amp;gt; getSessionType() {&amp;nbsp;&amp;nbsp;&amp;nbsp; return GroupIdentityManager.class;} @Override publi</description>
      <pubDate>Thu, 04 Jan 2018 04:03:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28898#M12328</guid>
      <dc:creator>abandarupalli</dc:creator>
      <dc:date>2018-01-04T04:03:11Z</dc:date>
    </item>
    <item>
      <title>Re: Custom identity management changed in Activiti 6.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28899#M12329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably, I think that&amp;nbsp;you&amp;nbsp;can &lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;use custom identity management with Activiti 6.0&lt;/SPAN&gt; with the following procedure.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;Implement the GroupDataManager interface. Or, extend&amp;nbsp;MybatisGroupDataManager.class&lt;/P&gt;&lt;P&gt;2. ProcessEngineConfigurationImpl.setGroupDataManager(GroupDataManager groupDataManager)&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L3051" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/cfg/ProcessEngineConfigurationImpl.java#L3051" rel="nofollow noopener noreferrer"&gt;Activiti/ProcessEngineConfigurationImpl.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Certainly, Activiti user guide is wrong.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.activiti.org/userguide/#advanced.custom.session.manager" style="color: #2989c5; text-decoration: none;" title="https://www.activiti.org/userguide/#advanced.custom.session.manager" rel="nofollow noopener noreferrer"&gt;Activiti User Guide&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.alfresco.com/community/bpm/blog/2017/06/01/activiti-6-is-here" rel="nofollow noopener noreferrer"&gt;https://community.alfresco.com/community/bpm/blog/2017/06/01/activiti-6-is-here&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jan 2018 09:10:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28899#M12329</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-21T09:10:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom identity management changed in Activiti 6.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28900#M12330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am having the same issue.&amp;nbsp; Does this work?&amp;nbsp; Does the SessionFactory interface no longer need to be implemented?&amp;nbsp; And what about groupEntityManager?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try this, when claiming or unclaiming a task, the AbstractEntityManager.findById method is called, not my implemented findById method.&amp;nbsp; My method is overriding this one, so it should be called?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE style="color: #a9b7c6; background-color: #2b2b2b; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #cc7832;"&gt;public class &lt;/SPAN&gt;SpringSecurityUserManager &lt;SPAN style="color: #cc7832;"&gt;extends &lt;/SPAN&gt;UserEntityManagerImpl {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;private static final &lt;/SPAN&gt;Logger &lt;SPAN style="color: #9876aa;"&gt;logger &lt;/SPAN&gt;= LoggerFactory.&lt;SPAN&gt;getLogger&lt;/SPAN&gt;(SpringSecurityUserManager.&lt;SPAN style="color: #cc7832;"&gt;class&lt;/SPAN&gt;)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AuthUserService &lt;SPAN style="color: #9876aa;"&gt;authUserService&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;@Autowired&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public &lt;/SPAN&gt;&lt;SPAN style="color: #ffc66d;"&gt;SpringSecurityUserManager&lt;/SPAN&gt;(ProcessEngineConfigurationImpl processEngineConfiguration&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;UserDataManager userDataManager&lt;SPAN style="color: #cc7832;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;AuthUserService authUserService) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #cc7832;"&gt;super&lt;/SPAN&gt;(processEngineConfiguration&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;userDataManager)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this&lt;/SPAN&gt;.&lt;SPAN style="color: #9876aa;"&gt;authUserService &lt;/SPAN&gt;= authUserService&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #bbb529;"&gt;@Override&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #bbb529;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;public &lt;/SPAN&gt;UserEntity &lt;SPAN style="color: #ffc66d;"&gt;findById&lt;/SPAN&gt;(String userId) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #9876aa;"&gt;logger&lt;/SPAN&gt;.info(&lt;SPAN style="color: #6a8759;"&gt;"findById for userId:{} "&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;userId)&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;UserEntityImpl user = &lt;SPAN style="color: #cc7832;"&gt;new &lt;/SPAN&gt;UserEntityImpl()&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;user.setId(&lt;SPAN style="color: #9876aa;"&gt;authUserService&lt;/SPAN&gt;.getCurrentUserName())&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return &lt;/SPAN&gt;user&lt;SPAN style="color: #cc7832;"&gt;;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #cc7832;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;}&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Dec 2018 01:12:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28900#M12330</guid>
      <dc:creator>nortobc</dc:creator>
      <dc:date>2018-12-24T01:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Custom identity management changed in Activiti 6.0</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28901#M12331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can somebody please look at this?&amp;nbsp; I am having issues with custom identity management on Activiti 6.0.&amp;nbsp; From the above code, I tried to extend MybatisGroupDataManager instead of GroupEntityManagerImpl and that didn't work.&amp;nbsp; I also tried to implement&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;GroupDataManager and that didn't work either.&amp;nbsp; (also tried with &lt;SPAN style="color: #3d3d3d;"&gt;MybatisUserDataManager and&amp;nbsp;User&lt;SPAN&gt;EntityManagerImpl)&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;When I debug, the breakpoint keeps stopping inside AbstractDataManager.findById instead of SpringSecurityUserManager.findById.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;I am also setting appropriate SpringProcessEngineConfiguration, I believe.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 19:27:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-identity-management-changed-in-activiti-6-0/m-p/28901#M12331</guid>
      <dc:creator>nortobc</dc:creator>
      <dc:date>2019-01-02T19:27:16Z</dc:date>
    </item>
  </channel>
</rss>

