<?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: Use own User/Group-tables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35138#M18450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See also: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Nov 2010 08:13:01 GMT</pubDate>
    <dc:creator>falko_menge</dc:creator>
    <dc:date>2010-11-05T08:13:01Z</dc:date>
    <item>
      <title>Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35134#M18446</link>
      <description>Is there a possibility to use our own user/role-tables and check the tasklist against those tables instead the activiti-tables?Best regardsAntje</description>
      <pubDate>Wed, 06 Oct 2010 13:03:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35134#M18446</guid>
      <dc:creator>antje</dc:creator>
      <dc:date>2010-10-06T13:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35135#M18447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For storing users and groups in some external system, you can exchange the &lt;/SPAN&gt;&lt;EM&gt;IdentitySession&lt;/EM&gt;&lt;SPAN&gt; by an own implementation, e.g.:&lt;/SPAN&gt;&lt;BR /&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;/CODE&gt;&lt;SPAN&gt; with:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class MyIdentitySessionFactory implements SessionFactory {&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp; public Session openSession() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new MyIdentitySession();&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;SPAN&gt; If you are using Spring, you may want to extend the &lt;/SPAN&gt;&lt;EM&gt;ProcessEngineFactoryBean&lt;/EM&gt;&lt;SPAN&gt; to do this configuration for you.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Oct 2010 16:32:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35135#M18447</guid>
      <dc:creator>falko_menge</dc:creator>
      <dc:date>2010-10-06T16:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35136#M18448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We are using Spring, but the ProcessEngineFactoryBean only has an Identity&lt;/SPAN&gt;&lt;STRONG&gt;Service&lt;/STRONG&gt;&lt;SPAN&gt;, no Identity&lt;/SPAN&gt;&lt;STRONG&gt;Session&lt;/STRONG&gt;&lt;SPAN&gt;. What`s the difference between those classes and (how) do they work together?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I give a IdentitySession into the configuration with spring?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 08:59:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35136#M18448</guid>
      <dc:creator>antje</dc:creator>
      <dc:date>2010-10-07T08:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35137#M18449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;As Falko stated, you will need to extend the ProcessEngineFactoryBean and use the code Falko posten. The fact that the processEngineFactoryBean doesnt support it, is a bug.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Oct 2010 09:42:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35137#M18449</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2010-10-07T09:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35138#M18450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;See also: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Nov 2010 08:13:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35138#M18450</guid>
      <dc:creator>falko_menge</dc:creator>
      <dc:date>2010-11-05T08:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35139#M18451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Falko! Your code sample works exactly like it should work!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Nov 2010 10:49:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35139#M18451</guid>
      <dc:creator>akakunin</dc:creator>
      <dc:date>2010-11-06T10:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35140#M18452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to achieve the same thing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using activiti 5.4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My approach was to add a CustomIdentitySessionFactory to the SpringProcessEngineConfiguration&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dataSource" ref="dataSource" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="transactionManager" ref="transactionManager" /&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="databaseSchemaUpdate" value="true" /&amp;gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="jobExecutorActivate" value="false" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="dbCycleUsed" value="true" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;property name="customSessionFactories"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="de.hlux.activiti.custom.spring.CustomIdentitySessionFactory"&amp;gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/property&amp;gt; &lt;BR /&gt;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class CustomIdentitySessionFactory implements SessionFactory {&lt;BR /&gt;&lt;BR /&gt; public Session openSession() {&lt;BR /&gt;&amp;nbsp; return (Session) new CustomIdentitySession();&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt; public Class&amp;lt;?&amp;gt; getSessionType() {&lt;BR /&gt;&amp;nbsp; return IdentitySession.class;&lt;BR /&gt; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;This works so far.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The thing I'd like some help with is to find the best way to inject the second datasource.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessConfigurationImpl uses the following code to create a SqlSessionFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;protected void initSqlSessionFactory() {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (sqlSessionFactory==null) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; InputStream inputStream = null;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; try {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; inputStream = ReflectUtil.getResourceAsStream("org/activiti/db/ibatis/activiti.ibatis.mem.conf.xml");&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // update the jdbc parameters to the configured ones…&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Environment environment = new Environment("default", transactionFactory, dataSource);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Reader reader = new InputStreamReader(inputStream);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XMLConfigBuilder parser = new XMLConfigBuilder(reader);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Configuration configuration = parser.getConfiguration();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.setEnvironment(environment);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration.getTypeHandlerRegistry().register(VariableType.class, JdbcType.VARCHAR, new IbatisVariableTypeHandler());&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; configuration = parser.parse();&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sqlSessionFactory = new DefaultSqlSessionFactory(configuration);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } catch (Exception e) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("Error while building ibatis SqlSessionFactory: " + e.getMessage(), e);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; } finally {&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IoUtil.closeSilently(inputStream);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;That is used within the DbSqlSessionFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory = new DbSqlSessionFactory();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setDatabaseType(databaseType);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setIdGenerator(idGenerator);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setSqlSessionFactory(sqlSessionFactory);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setDbIdentityUsed(isDbIdentityUsed);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setDbHistoryUsed(isDbHistoryUsed);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dbSqlSessionFactory.setDbCycleUsed(isDbCycleUsed);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; addSessionFactory(dbSqlSessionFactory);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;At the moment I think, that my CustomIdentitySession should make use of a DbSqlSessionFactory,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but that of course needs to have the datasource where the users and groups are stored.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not familiar enough with the design patterns used and would like to hear you opinion on my approach.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe I'm completely wrong here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;greetings&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;hlux&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 14:05:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35140#M18452</guid>
      <dc:creator>hlux</dc:creator>
      <dc:date>2011-04-13T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35141#M18453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hlux,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the sample it was good starting point to integrate internal user management service to Acitviti. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I used same idea that CustomUserEntityManagerFactory factory creates CustomUserEntityManager. CustomUserEntityManager is wrapper for CustomUserDao. To represent implementaiton is really required long post. So I pushed sample project to github:&lt;/SPAN&gt;&lt;A href="https://github.com/mondhs/activiti-CustomUserManagement" rel="nofollow noopener noreferrer"&gt;https://github.com/mondhs/activiti-CustomUserManagement&lt;/A&gt;&lt;SPAN&gt;. Most important classes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* org.activiti.custom.spring.CustomUserEntityManager&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* org.activiti.custom.spring.CustomUserEntityManagerFactory&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* org.activiti.custom.security.UserDao&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also I wanted that it would be used same user as it is already logged in using custom login form. In order to do that I needed implement:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* org.activiti.custom.explorer.ui.login.CustomDefaultLoginHandler that adapts org.activiti.custom.security.CurrentUserService results&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;spring configuration could be found in src/main/resources/META-INF/spring/custom-user-management-beans.xml&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Similar topics:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* Exchange IdentityService (or other services) &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=4&amp;amp;t=427&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;* Use own User/Group-tables: &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=3&amp;amp;t=345&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;* How to Use own User Maangement instead of Activiti provided &lt;/SPAN&gt;&lt;A href="http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6155" rel="nofollow noopener noreferrer"&gt;http://forums.activiti.org/en/viewtopic.php?f=6&amp;amp;t=6155&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Apr 2013 10:40:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35141#M18453</guid>
      <dc:creator>mondhs</dc:creator>
      <dc:date>2013-04-09T10:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35142#M18454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for taking the time to posts this. Really valuable!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 14:19:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35142#M18454</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-04-10T14:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35143#M18455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Here's probably a really basic question but Im a beginner to using Activiti both programmatically and through explorer. I am trying to achieve the same goal as discussed in this thread (essentially adding a custom authentication system to replace ldap and hardcoding users), though apart from like creating a java project and writing up the code for it I am not sure how to deploy it in explorer. For example, if i was to use the code from mondhs's project then how would I use it in coordination with activiti explorer?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for any guidance &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 01:57:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35143#M18455</guid>
      <dc:creator>arashmarzi</dc:creator>
      <dc:date>2013-08-12T01:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35144#M18456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not sure what "mondhs's" project is, but here is my 2 cents:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - The identity-managent integration is actually done in the activiti-engine itself, not in the activiti-explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - Since activiti-explorer uses the engine, any "custom" identity-management configured in the engine will be used by the explorer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; - If you have an external system that does the user/group management that is not accessible through a Java-api, you should create the solution as described above, using java-code that does REST/HTTP or whatever calls you need to communicate with the system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 13:54:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35144#M18456</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-12T13:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35145#M18457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;"mondhs's project" is in reference to the git project posted by user mondhs earlier in this thread &lt;/SPAN&gt;&lt;A href="https://github.com/mondhs/activiti-CustomUserManagement" rel="nofollow noopener noreferrer"&gt;https://github.com/mondhs/activiti-CustomUserManagement&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ok, I understand that activiti engine and activiti explorer are 2 different components. Are you implying that if i want to create my own identity management component via Activiti Designer in Eclipse then I have to change activiti engine, But then how do I incorporate that into the original activiti engine? After which, how to i incorporate that into explorer? How do would I follow through with the basics? The user guide is clear and comprehensive on the necessary code but not 100% clear of the integration of new code into the existing activiti engine/explorer. If you can give me a generic step by step as to integrate new projects into the engine or pinpoint the section in the user guide that states it, that would be extremely helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 19:18:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35145#M18457</guid>
      <dc:creator>arashmarzi</dc:creator>
      <dc:date>2013-08-12T19:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35146#M18458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti explorer is just a webapp, containing the activiti engine. The engine is configured using a spring-context file (src/main/webapp/WEB-INF/applicationContext.xml). Any customisations to core-services (like the user-management) should be plugged into that configuration.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So just take the activiti-explorer web app, add your custom jar's in it and wire everything in in the config-file and you're ready to go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 11:56:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35146#M18458</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-08-14T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35147#M18459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Trying to solve the same issue, I understand how to create the proper ProcessEngine but how can I get it picked up by the ProcessEngines static class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngines.getDefaultProcessEngine is used all over the place, and I don't see how to override its default engine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The best I can come up with is&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngines.init()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;myEngine = &amp;lt;build my own engine&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngines.registerProcessEngine(myEngine);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;… and I will need to duplicate quite a bit of the code in ProcessEngines.init() to "&amp;lt;build my own engine&amp;gt;"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any better suggestion?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Franck&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 16:08:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35147#M18459</guid>
      <dc:creator>franck102</dc:creator>
      <dc:date>2014-01-10T16:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35148#M18460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Any process engine you create (using the build()) registers itself with the ProcessEngines static class. This is usefull in case you bootstrap your engine using Spring or programatically. This can be done before or after a call to the init(), it doesn't matter, as long as there is no activiti.cfg.xml file on your class path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In case you're using a plain processEngine, bootstrapped from the activiti.cfg.xml file, it's best to give the process engine the name "default". This way, when calling ProcessEngines.init(), the classpath will be scanned for the config file, and your config will be used. So IMHO, there is no need to call the register yourself, nor is it needed to duplicate any init() code…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jan 2014 06:28:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35148#M18460</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-15T06:28:44Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35149#M18461</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using activiti 5.14 engine and i need to custom identityService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't need activiti explore and i want to use only&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ManagementService, RepositoryService, TaskService and RuntimeService&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My goal is to override many methods as possible. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From my investigation i have noted that when i call &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;taskCandidateUser("kermit")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the findGroupsByUser(String userId) was called.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There are other points in the services ManagementService, RepositoryService, TaskService and RuntimeService when an Identity (UserIdentityManager/GroupIdentityManager) service was called.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 11:39:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35149#M18461</guid>
      <dc:creator>cicpa</dc:creator>
      <dc:date>2014-03-21T11:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35150#M18462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;And what's your question? taskCandidateUser is the only special case where it also looks for groups of a user. The other ones are really straightforward lookups of a user or group.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Mar 2014 15:55:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35150#M18462</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-03-21T15:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35151#M18463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes my question was if taskCandidateUser are the only case where identity service is used in runtime and task service.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Mar 2014 08:48:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35151#M18463</guid>
      <dc:creator>cicpa</dc:creator>
      <dc:date>2014-03-24T08:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35152#M18464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This question is very popular with Activiti. So I am proud the be the first guy in 2016 to ask this question again!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All my codes relevant to this question is in &lt;/SPAN&gt;&lt;A href="https://github.com/jbarrez/spring-boot-with-activiti-example/issues/5#issuecomment-168306116" rel="nofollow noopener noreferrer"&gt;https://github.com/jbarrez/spring-boot-with-activiti-example/issues/5#issuecomment-168306116&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In short I tried the codes as in mondhs solution in this (Activiti Forum) thread. Basically doing injection using XML configuration file for spring. Does not work for me. And then I find discussion in the above github link. So instead of using XML, I tried to do the bean injection using code. Still does not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I configure my activiti-spring-boot with XML as in mondhs &lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/mondhs/activiti-CustomUserManagement/blob/master/src/main/resources/META-INF/spring/custom-activiti-beans.xml" rel="nofollow noopener noreferrer"&gt;https://github.com/mondhs/activiti-CustomUserManagement/blob/master/src/main/resources/META-INF/spring/custom-activiti-beans.xml&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then implemented all the user and group manager, factory, classes etc. Not that much different than mondhs implementation of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then I use this code to manually create user and group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; @Bean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; InitializingBean usersAndGroupsInitializer(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final IdentityService identityService) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; final Logger log = LoggerFactory.getLogger(this.getClass());&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; return new InitializingBean() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void afterPropertiesSet() throws Exception {&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&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; Group group = identityService.newGroup("user");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; group.setName("users");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; group.setType("security-role");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; identityService.saveGroup(group);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&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; User admin = identityService.newUser("rootadmin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; admin.setPassword("admin");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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; identityService.saveUser(admin);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&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;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And then discovered that the above code create user and group in&amp;nbsp; act_id_user and act_id_group table. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What should then be my conclusion? Can I conclude that my customized identity service using own user and group table is not working?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jan 2016 12:21:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35152#M18464</guid>
      <dc:creator>harishashim</dc:creator>
      <dc:date>2016-01-02T12:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Use own User/Group-tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35153#M18465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Now the christmas holidays are over, there will be more people being able to answer &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've responded to the github comments, can we discuss there further (easier for code). Would be handy if you have some executable code that I can give a try.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jan 2016 20:26:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-own-user-group-tables/m-p/35153#M18465</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-01-04T20:26:00Z</dc:date>
    </item>
  </channel>
</rss>

