<?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: Creating users and group for a persistent database using spring boot and activiti. in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/creating-users-and-group-for-a-persistent-database-using-spring/m-p/15181#M6718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is this example which talks about persistent databases (inc mysql) and uses what appears to be the same approach as you are using - &lt;A class="link-titled" href="https://github.com/canchito-dev/integrate-activiti-with-spring" title="https://github.com/canchito-dev/integrate-activiti-with-spring" rel="nofollow noopener noreferrer"&gt;GitHub - canchito-dev/integrate-activiti-with-spring: In this post, you will learn how to integrate Activiti's engine an…&lt;/A&gt; But perhaps it is just not getting into the detail you're encountering. You could try wrapping your code in an if condition that checks whether the data is already present with a call to identityService.findUser. I did find an example of somebody doing a similar existence-check for Activiti users and groups in an InitializingBean (&lt;A class="link-titled" href="https://github.com/liuqingyu/ctsms/blob/master/src/main/java/com/zhongxin/ctsms/modules/sys/service/SystemService.java#L283" title="https://github.com/liuqingyu/ctsms/blob/master/src/main/java/com/zhongxin/ctsms/modules/sys/service/SystemService.java#L283" rel="nofollow noopener noreferrer"&gt;ctsms/SystemService.java at master · liuqingyu/ctsms · GitHub&lt;/A&gt; ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2017 19:47:50 GMT</pubDate>
    <dc:creator>ryandawson</dc:creator>
    <dc:date>2017-09-01T19:47:50Z</dc:date>
    <item>
      <title>Creating users and group for a persistent database using spring boot and activiti.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-users-and-group-for-a-persistent-database-using-spring/m-p/15180#M6717</link>
      <description>I am trying to use MySql database to persist the data. I am using Spring boot project. When I first run the application, the database is created and data is inserted fine. When the application is restarted, I get an error as the users and group already exists in the database, and I get error for dup</description>
      <pubDate>Tue, 29 Aug 2017 17:49:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-users-and-group-for-a-persistent-database-using-spring/m-p/15180#M6717</guid>
      <dc:creator>rohans</dc:creator>
      <dc:date>2017-08-29T17:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating users and group for a persistent database using spring boot and activiti.</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/creating-users-and-group-for-a-persistent-database-using-spring/m-p/15181#M6718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is this example which talks about persistent databases (inc mysql) and uses what appears to be the same approach as you are using - &lt;A class="link-titled" href="https://github.com/canchito-dev/integrate-activiti-with-spring" title="https://github.com/canchito-dev/integrate-activiti-with-spring" rel="nofollow noopener noreferrer"&gt;GitHub - canchito-dev/integrate-activiti-with-spring: In this post, you will learn how to integrate Activiti's engine an…&lt;/A&gt; But perhaps it is just not getting into the detail you're encountering. You could try wrapping your code in an if condition that checks whether the data is already present with a call to identityService.findUser. I did find an example of somebody doing a similar existence-check for Activiti users and groups in an InitializingBean (&lt;A class="link-titled" href="https://github.com/liuqingyu/ctsms/blob/master/src/main/java/com/zhongxin/ctsms/modules/sys/service/SystemService.java#L283" title="https://github.com/liuqingyu/ctsms/blob/master/src/main/java/com/zhongxin/ctsms/modules/sys/service/SystemService.java#L283" rel="nofollow noopener noreferrer"&gt;ctsms/SystemService.java at master · liuqingyu/ctsms · GitHub&lt;/A&gt; ).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2017 19:47:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/creating-users-and-group-for-a-persistent-database-using-spring/m-p/15181#M6718</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-09-01T19:47:50Z</dc:date>
    </item>
  </channel>
</rss>

