<?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 How to change default claim and complete behavior of Tasks? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70165#M45196</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If have understood correctly,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When a task is assigned to a group it appears in the Inbox of all users in that group. Now if anyone belonging to that group logs in and claims that task, it will disappear from the task list of all other users in that group. And when that user completes the task, it will be deemed as completed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I want to do is implement a &lt;/SPAN&gt;&lt;STRONG&gt;Parallel Voting Pattern&lt;/STRONG&gt;&lt;SPAN&gt;. I want to assign a voting task to a group, and then when 75% of all members in that group have completed the task, I want the execution to flow to the next sequence.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The process I am trying to build is described here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://wiki.hudson-ci.org/display/HUDSON/JBPM+Plugin" rel="nofollow noopener noreferrer"&gt;http://wiki.hudson-ci.org/display/HUDSON/JBPM+Plugin&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I was thinking that if I could change the default claim &amp;gt; complete cycle of user tasks, then may be I can implement this pattern.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or am I approaching this from the wrong direction?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Swapnonil Mukherjee&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Dec 2011 12:21:50 GMT</pubDate>
    <dc:creator>swapnonil</dc:creator>
    <dc:date>2011-12-02T12:21:50Z</dc:date>
    <item>
      <title>How to change default claim and complete behavior of Tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70165#M45196</link>
      <description>If have understood correctly,When a task is assigned to a group it appears in the Inbox of all users in that group. Now if anyone belonging to that group logs in and claims that task, it will disappear from the task list of all other users in that group. And when that user completes the task, it wil</description>
      <pubDate>Fri, 02 Dec 2011 12:21:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70165#M45196</guid>
      <dc:creator>swapnonil</dc:creator>
      <dc:date>2011-12-02T12:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default claim and complete behavior of Tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70166#M45197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;sorry, my english is very poor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope you can understand my words.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i think…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can try to use Multi-instance (for each).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;userTask id="id" name="name" activiti:assignee="${assignee}"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="create" class="com.test.bpm.listener.CreateListener"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="complete" class="com.test.bpm.listener.CompleteListener"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;loopDataInputRef&amp;gt;assigneeList&amp;lt;/loopDataInputRef&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;inputDataItem name="assignee"&amp;gt;&amp;lt;/inputDataItem&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;completionCondition&amp;gt;${beFinished.equals("true")}&amp;lt;/completionCondition&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;BR /&gt;&amp;lt;/userTask&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;in its complete event,you can make a rule to decide what time this userTask will be finished.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;like this: its my rule ,when&amp;nbsp; submit or reject count &amp;gt; a number, finish the task&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;String transition = (String) delegateTask.getVariable("transition");&lt;BR /&gt;int nrOfInstances = (Integer) delegateTask.getVariable("nrOfInstances");&lt;BR /&gt;int submitCount = (Integer) delegateTask.getVariable("submitCount");&lt;BR /&gt;int rejectCount = (Integer) delegateTask.getVariable("rejectCount");&lt;BR /&gt;int percent = (Integer) delegateTask.getVariable("percent");&lt;BR /&gt;&lt;BR /&gt;if (transition.equals("submit")) {&lt;BR /&gt; submitCount++;&lt;BR /&gt; delegateTask.setVariable("submitCount", submitCount);&lt;BR /&gt;} else {&lt;BR /&gt; rejectCount++;&lt;BR /&gt; delegateTask.setVariable("rejectCount", rejectCount);&lt;BR /&gt;}&lt;BR /&gt;if (submitCount &amp;gt; nrOfInstances * Percent / 100 || rejectCount &amp;gt; nrOfInstances * Percent / 100)&lt;BR /&gt; delegateTask.setVariable("beFinished", "true");&lt;BR /&gt;else&lt;BR /&gt; delegateTask.setVariable("beFinished", "false");&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;and use this, you must make a Exclusive gateway after the task, because the Multi-instance(isSequential = "false") seem to include a Parallel Gateway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if you don't, when Multi-instance(isSequential = "false")&amp;nbsp; be finished , it will take all the OutgoingTransition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry , my english is very poor. I finished this words with the help of google translation…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 15:02:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70166#M45197</guid>
      <dc:creator>chnxan</dc:creator>
      <dc:date>2011-12-03T15:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default claim and complete behavior of Tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70167#M45198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Looks perfect to me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Let me try this out. Thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Dec 2011 17:57:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70167#M45198</guid>
      <dc:creator>swapnonil</dc:creator>
      <dc:date>2011-12-03T17:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to change default claim and complete behavior of Tasks?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70168#M45199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Did it work for you?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to create a scenario for the voting with activiti (with or without using multi-instance)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Deepak&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 06:49:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-change-default-claim-and-complete-behavior-of-tasks/m-p/70168#M45199</guid>
      <dc:creator>deepak_singhvi</dc:creator>
      <dc:date>2012-09-03T06:49:08Z</dc:date>
    </item>
  </channel>
</rss>

