<?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: Dynamically Set Candidate Group in Task Listener in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23236#M10152</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; I'm using enterprise Activiti 1.6.1.&amp;nbsp; I am using the Process Editor and as much javascript as I can to develop the process. The process is executed via an ADF application (Java and Angular 2).&amp;nbsp; Your examples are java - can I not dynamically set the Candidate Group for a task using the Process Editor and javascript?&amp;nbsp; Does a programmer need to do that for me in the ADF application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By Assignee, I mean the Assignee property on the task that I'm creating in the Process Editor.&amp;nbsp; This problem is related the first part.&amp;nbsp; For the process to pass validation in the Process Editor, I need to set the Assignee to something (Initiator, a Candidate Group, a person).&amp;nbsp; If I attempt to default it to a Candidate Group in the Process Editor, but then try to set it to a group id using javascript while testing the process during development, I receive an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyplace where I can find more information on what is accessible to me for javascript?&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jul 2017 18:08:12 GMT</pubDate>
    <dc:creator>lsharman</dc:creator>
    <dc:date>2017-07-10T18:08:12Z</dc:date>
    <item>
      <title>Dynamically Set Candidate Group in Task Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23234#M10150</link>
      <description>Hi -I'm using Activiti and want to dynamically set the Candidate Group for a task via the Create Task Listener. I'm using javascript in a task listener. I'm having two issues:1) Setting the candidate group using a hard coded id works, but for portability, I need to set using a name. How do I get the</description>
      <pubDate>Mon, 26 Jun 2017 20:55:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23234#M10150</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-06-26T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Set Candidate Group in Task Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23235#M10151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you using the enterprise or the community application and which version? Also are you using the activiti database for user and group management? If you're using the community with the database identity management then you could look at this for the querying (albeit in java) -&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/identity/GroupQueryTest.java#L113" title="https://github.com/Activiti/Activiti/blob/6.0-release/modules/activiti-engine/src/test/java/org/activiti/engine/test/api/identity/GroupQueryTest.java#L113" rel="nofollow noopener noreferrer"&gt;Activiti/GroupQueryTest.java at 6.0-release · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure what you mean about the assignee. Do you mean that there's something in your process definition that you want there for development purposes but you don't want in live? If so maybe you could change the xml definition?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jul 2017 14:23:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23235#M10151</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-07-07T14:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Set Candidate Group in Task Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23236#M10152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response.&amp;nbsp; I'm using enterprise Activiti 1.6.1.&amp;nbsp; I am using the Process Editor and as much javascript as I can to develop the process. The process is executed via an ADF application (Java and Angular 2).&amp;nbsp; Your examples are java - can I not dynamically set the Candidate Group for a task using the Process Editor and javascript?&amp;nbsp; Does a programmer need to do that for me in the ADF application?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By Assignee, I mean the Assignee property on the task that I'm creating in the Process Editor.&amp;nbsp; This problem is related the first part.&amp;nbsp; For the process to pass validation in the Process Editor, I need to set the Assignee to something (Initiator, a Candidate Group, a person).&amp;nbsp; If I attempt to default it to a Candidate Group in the Process Editor, but then try to set it to a group id using javascript while testing the process during development, I receive an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyplace where I can find more information on what is accessible to me for javascript?&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 18:08:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23236#M10152</guid>
      <dc:creator>lsharman</dc:creator>
      <dc:date>2017-07-10T18:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically Set Candidate Group in Task Listener</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23237#M10153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, &amp;nbsp;you're porting the process from one enterprise deployment to another and the ids for users and groups naturally don't match. Presumably there are users and groups with the same names on the target environment as the names on the source environment. There is a checkbox on the process import popup to renew ids. By default the checkbox is not checked.&amp;nbsp;You should try checking that checkbox and see if that does the match&amp;nbsp;for you at the point when the process is imported as that would be simpler than writing any code. I would expect this to work for you. I assume you're not using alfresco publish tasks but if you are you should note that with 1.6.1 it may not renew the user/group ids for those (&lt;A class="link-titled" href="https://issues.alfresco.com/jira/browse/ACTIVITI-717" title="https://issues.alfresco.com/jira/browse/ACTIVITI-717" rel="nofollow noopener noreferrer"&gt;[ACTIVITI-717] Importing an app with a "Publish to Alfresco" task fails to renew the user ID of the publisher - Alfresco…&lt;/A&gt;&amp;nbsp;) as that was only implemented in 1.6.3. Since you're using enterprise if you hit an issue with the product you can of course make use of your enterprise support account to open a ticket.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 08:26:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/dynamically-set-candidate-group-in-task-listener/m-p/23237#M10153</guid>
      <dc:creator>ryandawson</dc:creator>
      <dc:date>2017-07-11T08:26:45Z</dc:date>
    </item>
  </channel>
</rss>

