<?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: Doubt about the execution of a multi instance task in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205906#M159036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it could very well be the expression is called multiple times: the first time to determine the total, next times to determinate the elementVariable. Why would that be a problem? Is calling that bean multiple times harmful?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Nov 2015 12:53:47 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2015-11-03T12:53:47Z</dc:date>
    <item>
      <title>Doubt about the execution of a multi instance task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205904#M159034</link>
      <description>Hi,The activiti version is 5.18My application is in PHP and I use activiti-rest.I have the following multi instance task in a process.&amp;lt;userTask id="panel_member_evaluation_1" name="Panel&amp;nbsp; Member Evaluation" activiti:assignee="${assignee}"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Task denoting the evaluation</description>
      <pubDate>Fri, 30 Oct 2015 09:56:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205904#M159034</guid>
      <dc:creator>ebbinvarghese</dc:creator>
      <dc:date>2015-10-30T09:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about the execution of a multi instance task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205905#M159035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry. The definition of the task got removed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here it is.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;userTask id="panel_member_evaluation_1" name="Panel&amp;nbsp; Member Evaluation" activiti:assignee="${assignee}"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;documentation&amp;gt;Task denoting the evaluation performed by the panel members&amp;lt;/documentation&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:executionListener event="start" expression="${partnerAssessment.setWorkflowStatus(execution, 3, 'General Assessment In Progress')}"&amp;gt;&amp;lt;/activiti:executionListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;activiti:taskListener event="create" expression="${partnerAssessment.setPanelMemberWorklist(task , 1)}"&amp;gt;&amp;lt;/activiti:taskListener&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/extensionElements&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="${partnerAssessment.assignPanelMembers(1, gms_partner_id, assessment_id, 1)}" activiti:elementVariable="assignee"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;completionCondition&amp;gt;${nrOfCompletedInstances/nrOfInstances == 1 }&amp;lt;/completionCondition&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/multiInstanceLoopCharacteristics&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/userTask&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 10:04:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205905#M159035</guid>
      <dc:creator>ebbinvarghese</dc:creator>
      <dc:date>2015-10-30T10:04:30Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about the execution of a multi instance task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205906#M159036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;it could very well be the expression is called multiple times: the first time to determine the total, next times to determinate the elementVariable. Why would that be a problem? Is calling that bean multiple times harmful?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 12:53:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205906#M159036</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2015-11-03T12:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: Doubt about the execution of a multi instance task</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205907#M159037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This bean calls a REST service on my PHP application which will fetch the assignees from my application database and return it to the activiti: collection of the multi instance task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This bean also calls a service that performs some updates on my application database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; I would like these to be executed only once for this multi instance task no matter how many instances are to be created.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is this possible ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that this is not possible if I place it under the execution listener or task listener of this task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought that by placing it under the activiti:collection attribute it would be executed only once.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there another way to ensure that this code will be called only once ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also when the activiti:collection bean gets executed multiple times, wont there be multiple database fetches ( via my REST call ) ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Nov 2015 15:22:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/doubt-about-the-execution-of-a-multi-instance-task/m-p/205907#M159037</guid>
      <dc:creator>ebbinvarghese</dc:creator>
      <dc:date>2015-11-03T15:22:23Z</dc:date>
    </item>
  </channel>
</rss>

