<?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 candidateStarterGroups and custom user &amp; group tables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116314#M82074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We have just migrated from the built in user &amp;amp; group tables ( act_id_user &amp;amp; act_id_group ) to our own set of tables. After the migration I noticed that the candidateStarterGroup functionality no longer works, which worked fine before the migration. This functionality allows you to tag the BPMN process with the activiti attribute&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG&gt;activiti:candidateStarterGroups &lt;/STRONG&gt;&lt;SPAN&gt; , as explained here &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/#security" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/#security&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a BPMN process element:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;process activiti:candidateStarterGroups="mygroup" id="myprocess" name="My Process"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;And given a user named "user1", member of "mygroup" , the following code would return the expected process definition, but no longer does:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; //org.activiti.engine.RepositoryService&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; repositoryService &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .createProcessDefinitionQuery()&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .startableByUser("user1")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .list();&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;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I've narrowed it down to the query defined in ProcessDefinition.xml , which is joining the wrong user and group tables : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;if test="authorizationUserId != null"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND (exists (select ID_&amp;nbsp; from ${prefix} ACT_RU_IDENTITYLINK&amp;nbsp; IDN where IDN.PROC_DEF_ID_ = RES.ID_ and IDN.USER_ID_ = #{authorizationUserId})&lt;BR /&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; OR exists (select IDN.ID_&amp;nbsp; from ${prefix} ACT_RU_IDENTITYLINK&amp;nbsp; IDN,&amp;nbsp; ${prefix} ACT_ID_MEMBERSHIP MBMR where IDN.PROC_DEF_ID_ = RES.ID_ and MBMR.USER_ID_ =&amp;nbsp; #{authorizationUserId} and IDN.GROUP_ID_ = MBMR.GROUP_ID_)&lt;BR /&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; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/if&amp;gt;&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;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is twofold:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;is this a bug or a feature ?&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;what is the best way to override the built in query, without patching Activiti ?&lt;/LI&gt;&lt;/UL&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edwin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 15 Oct 2012 12:32:19 GMT</pubDate>
    <dc:creator>edwinvds</dc:creator>
    <dc:date>2012-10-15T12:32:19Z</dc:date>
    <item>
      <title>candidateStarterGroups and custom user &amp; group tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116314#M82074</link>
      <description>Hi,We have just migrated from the built in user &amp;amp; group tables ( act_id_user &amp;amp; act_id_group ) to our own set of tables. After the migration I noticed that the candidateStarterGroup functionality no longer works, which worked fine before the migration. This functionality allows you to tag the</description>
      <pubDate>Mon, 15 Oct 2012 12:32:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116314#M82074</guid>
      <dc:creator>edwinvds</dc:creator>
      <dc:date>2012-10-15T12:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: candidateStarterGroups and custom user &amp; group tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116315#M82075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi edwin. The "starter" functionality was added recently to activiti and it seems it's not completely identity-implementation agnostic, as it should be. So this is a *feature* &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When querying for tasks 'assigned to user', for example , this is done using 2 queries: one for fetching user's groups and a second query fetching the actual task, using the returned group-ID's. So this approach should be applied to the candidateStarterGroup I guess, in order to fix the issue you're facing. I'm afraid you're currently obligated to patch the activiti codebase/jar you're using right now to overcome/replace the join with membership-table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Issue created in JIRA: &lt;/SPAN&gt;&lt;A href="https://jira.codehaus.org/browse/ACT-1416" rel="nofollow noopener noreferrer"&gt;https://jira.codehaus.org/browse/ACT-1416&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Oct 2012 13:26:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116315#M82075</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-10-15T13:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: candidateStarterGroups and custom user &amp; group tables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116316#M82076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Frederik,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the quick response. I might just wait for the 'feature' to be updated &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Edwin.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 06:17:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/candidatestartergroups-and-custom-user-group-tables/m-p/116316#M82076</guid>
      <dc:creator>edwinvds</dc:creator>
      <dc:date>2012-10-16T06:17:38Z</dc:date>
    </item>
  </channel>
</rss>

