<?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 Add or modify candidateGroup on processDefinition task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157608#M111774</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;SPAN&gt;after many search, i will ask to activiti forum for my question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to define dynamically candidateGroup, task by task, for my ProcessDefinition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i go to &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ProcessEngine.getRepositoryService().getBpmnModel(processDefinitionId).getMainProcess().findFlowElementsOfType(UserTask.class)&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; i see candidateGroups but can't modify it. or i don't understood.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When i use &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;ProcessEngine.getTaskService().addGroupIdentityLink(taskId, groupId, IdentityLinkType.CANDIDATE)&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it work but i want to define once for all task of my ProcessDefinition .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The best way to explain what i want is to compare with existing :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want add candidateGroup to a taks of my processDefinition like the method addCandidateStarterGroup that is in RepositoryService.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It existing a way to do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Aug 2013 09:09:13 GMT</pubDate>
    <dc:creator>aeross</dc:creator>
    <dc:date>2013-08-09T09:09:13Z</dc:date>
    <item>
      <title>Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157608#M111774</link>
      <description>Hi,after many search, i will ask to activiti forum for my question.I want to define dynamically candidateGroup, task by task, for my ProcessDefinition.When i go to ProcessEngine.getRepositoryService().getBpmnModel(processDefinitionId).getMainProcess().findFlowElementsOfType(UserTask.class)‍ i see ca</description>
      <pubDate>Fri, 09 Aug 2013 09:09:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157608#M111774</guid>
      <dc:creator>aeross</dc:creator>
      <dc:date>2013-08-09T09:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157609#M111775</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;You can use the BpmnModel to change the candidate groups of a task for example and then transform it to XML and deploy the process definition again. But is your requirement to have different values for every process instance you start? Or do you want to change the whole process definition? If it's the latter changing the BpmnModel and deploying the XML again makes the most sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 12:47:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157609#M111775</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-09T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157610#M111776</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You're right! I want to change BpmnModel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another thing you need to know, ideploy Bpmn xml file into zip file with jar file that is connected to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is that a problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Secondly, i found in RepositoryService methods to extract and read bpmn process, but don't found methods to import or overwrite the old version? Can you help me for that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your response&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 12:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157610#M111776</guid>
      <dc:creator>aeross</dc:creator>
      <dc:date>2013-08-12T12:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157611#M111777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Shouldn't be a problem. The process is taking out of the zip file before being deployed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For your second question: the DeploymentBuilder accepts a BpmnModel as input.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 09:57:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157611#M111777</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-08-14T09:57:42Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157612#M111778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Joram for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tested your solution, i modified and redeployed my BpmnModel like this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ProcessEngine.getRepositoryService().createDeployment().name("bpmn.processes.zip").addBpmnModel("process.bpmn20.xml", model).addInputStream(""ProcessGUI.jar", inputStream).deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It work, but it create a new deployment and i have to clean(delete) the older version that is deleting all running tasks and process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your responses, it's very interesting, but i need to find another solution.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Aug 2013 14:13:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157612#M111778</guid>
      <dc:creator>aeross</dc:creator>
      <dc:date>2013-08-14T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157613#M111779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why would you have to delete the older version? When you deploy a new version every new instance will automatically use that new version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Aug 2013 08:05:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157613#M111779</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-15T08:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157614#M111780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Tijs,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I would have to delete the older version because it isn't correspond to the new process version deployment.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Imagine you have 100 more tasks running and you need to change candidate groups that leads to deploy a new process version.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I can't delete tasks running and can't use old and new process version together.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I found a basic solution, that bothers me a little but for the moment it's the only who correspond to what i need, that is to create a database table . Table description below :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;ACT_PROC_TASK_GROUP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PROC_DEF_ID_ VARCHAR2(64 CHAR)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TASK_DEF_KEY_ VARCHAR2(255 CHAR)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GROUP_ID_ VARCHAR2(64 CHAR)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It works this way: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I record for each task(taskDefinitionKey) in my process (processDefinitionId) the candidate groups(groupId)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your help&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Aug 2013 12:55:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157614#M111780</guid>
      <dc:creator>aeross</dc:creator>
      <dc:date>2013-08-19T12:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157615#M111781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If candidate users and groups are changing a lot and you want these changes to be reflected in running tasks as well, this isn't a bad solution. You can also use the addCandidateGroup and deleteCandidateGroup methods for individual tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 07:11:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157615#M111781</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-21T07:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157616#M111782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank Tijs for your response.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For the complete explanation of what i do :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First case, processes deployment :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I deploy some processes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. I configure deployed processses, that means for each process I defined process starter groups and for each task I defined candidate groups.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. These configurations are recorded into the table i created (ACT_PROC_TASK_GROUP) that link processDefinitionId, taskDefinitionKey and groupId.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Second case, process setup change :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I modify one process candidate groups for some tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Configurations are recorded into the table i created (ACT_PROC_TASK_GROUP) that link processDefinitionId, taskDefinitionKey and groupId.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. I modify with addCandidateGroup and deleteCandidateGroup the existing tasks with the new configured values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 09:55:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157616#M111782</guid>
      <dc:creator>aeross</dc:creator>
      <dc:date>2013-08-21T09:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add or modify candidateGroup on processDefinition task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157617#M111783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, yes that makes sense&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Aug 2013 11:36:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/add-or-modify-candidategroup-on-processdefinition-task/m-p/157617#M111783</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-08-21T11:36:24Z</dc:date>
    </item>
  </channel>
</rss>

