<?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: How to get the Candidate group of a given task in activit? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9856#M4382</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, the method of Activiti API can only handle the data of 23 tables which generated by Activiti.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your users and groups don't exist in Activiti's tables, you should write method by yourself.&lt;/P&gt;&lt;P&gt;Could you show your diagram or xml code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 31 Oct 2018 08:12:12 GMT</pubDate>
    <dc:creator>yangfan</dc:creator>
    <dc:date>2018-10-31T08:12:12Z</dc:date>
    <item>
      <title>How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9851#M4377</link>
      <description>I am using activiti enterprise and I have synced all groups and users from Keycloak to activiti.. Using the process service editor I have set candidate group for a user task as follows:&amp;nbsp;I have a complete Task method which I am trying to check if the user belongs to the candidate group. I have had a</description>
      <pubDate>Mon, 29 Oct 2018 12:44:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9851#M4377</guid>
      <dc:creator>rosir</dc:creator>
      <dc:date>2018-10-29T12:44:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9852#M4378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you are using&amp;nbsp;Tasklistner (DelegateTask task) then you can fetch all the candidate groups using&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; task.getCandidates()&amp;nbsp; which returns&amp;nbsp; Hashset&amp;lt;IdentityLink&amp;gt;. then you can get the id by looing through it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2018 05:36:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9852#M4378</guid>
      <dc:creator>mdtabrezmca</dc:creator>
      <dc:date>2018-10-30T05:36:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9853#M4379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the Activiti API, taskService.getIdentityLinksForTask(taskId) will return the IdentityLinks associated with the given task.&lt;/P&gt;&lt;P&gt;This can do that!&lt;/P&gt;&lt;P&gt;As for you did not return anything, you should check one thing :&lt;/P&gt;&lt;P&gt;In Activiti's tables, the data that exist in act_id_user and act_id_group&amp;nbsp; must be associated by act_id_membership. Only in this way, the method can return data. Studying these tables is very important.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 05:27:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9853#M4379</guid>
      <dc:creator>yangfan</dc:creator>
      <dc:date>2018-10-31T05:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9854#M4380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All of those tables show empty in mine. I have synced these users and groups from keycloak. Does that make any difference?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 06:05:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9854#M4380</guid>
      <dc:creator>rosir</dc:creator>
      <dc:date>2018-10-31T06:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9855#M4381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I can get an Id if I am in TaskListener. but I am looking for something which I can use outside the TaskListener.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 06:07:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9855#M4381</guid>
      <dc:creator>rosir</dc:creator>
      <dc:date>2018-10-31T06:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9856#M4382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, the method of Activiti API can only handle the data of 23 tables which generated by Activiti.&amp;nbsp;&lt;/P&gt;&lt;P&gt;If your users and groups don't exist in Activiti's tables, you should write method by yourself.&lt;/P&gt;&lt;P&gt;Could you show your diagram or xml code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 08:12:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9856#M4382</guid>
      <dc:creator>yangfan</dc:creator>
      <dc:date>2018-10-31T08:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the Candidate group of a given task in activit?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9857#M4383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have data in my GROUPS and USERS tables though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi below is the xml code for the User Task:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt; &amp;lt;userTask id="sid-7D3D5EEF-F684-4A61-949C-EE40A3DA0F2D" name="Confirm" activiti:candidateGroups="1012" activiti:formKey="22"&amp;gt;&lt;BR /&gt; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;activiti:taskListener event="create" class="com.abc.tasks.listener.MyListener"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;modeler:allow-send-email&amp;gt;&amp;lt;![CDATA[false]]&amp;gt;&amp;lt;/modeler:allow-send-email&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:form-reference-id&amp;gt;&amp;lt;![CDATA[22]]&amp;gt;&amp;lt;/modeler:form-reference-id&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:form-reference-name&amp;gt;&amp;lt;![CDATA[Sys1 - Confirm]]&amp;gt;&amp;lt;/modeler:form-reference-name&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;modeler:group-info-name-1012&amp;gt;&amp;lt;![CDATA[ABC_ONE]]&amp;gt;&amp;lt;/modeler:group-info-name-1012&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:group-info-externalid-1012&amp;gt;&amp;lt;![CDATA[ABC_ONE]]&amp;gt;&amp;lt;/modeler:group-info-externalid-1012&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:activiti-idm-candidate-group&amp;gt;&amp;lt;![CDATA[true]]&amp;gt;&amp;lt;/modeler:activiti-idm-candidate-group&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:initiator-can-complete&amp;gt;&amp;lt;![CDATA[false]]&amp;gt;&amp;lt;/modeler:initiator-can-complete&amp;gt;&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;modeler:editor-resource-id&amp;gt;&amp;lt;![CDATA[sid-7D3D5EEF-F684-4A61-949C-EE40A3DA0F2D]]&amp;gt;&amp;lt;/modeler:editor-resource-id&amp;gt;&lt;BR /&gt; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt; &amp;lt;/userTask&amp;gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Oct 2018 11:34:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-get-the-candidate-group-of-a-given-task-in-activit/m-p/9857#M4383</guid>
      <dc:creator>rosir</dc:creator>
      <dc:date>2018-10-31T11:34:45Z</dc:date>
    </item>
  </channel>
</rss>

