<?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: Custom component and multi instance in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40416#M16940</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, thanks. That will be very useful to assist you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Nov 2017 14:06:45 GMT</pubDate>
    <dc:creator>cjose</dc:creator>
    <dc:date>2017-11-16T14:06:45Z</dc:date>
    <item>
      <title>Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40413#M16937</link>
      <description>Hi,I have created a custom component with a runtime class extending "CallActivitiBehaviour".The execute() of this runtime start another bpnm file.When the execution of the sub process is terminated, the completing() method of the runtime class is called and I'm doing some work in there.When the cust</description>
      <pubDate>Wed, 15 Nov 2017 09:25:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40413#M16937</guid>
      <dc:creator>alain_rapaz</dc:creator>
      <dc:date>2017-11-15T09:25:34Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40414#M16938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have a unit test case to show this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 12:13:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40414#M16938</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-11-15T12:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40415#M16939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not yet…&lt;/P&gt;&lt;P&gt;I will try to prepare a small one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Nov 2017 15:40:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40415#M16939</guid>
      <dc:creator>alain_rapaz</dc:creator>
      <dc:date>2017-11-15T15:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40416#M16940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cool, thanks. That will be very useful to assist you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Nov 2017 14:06:45 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40416#M16940</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-11-16T14:06:45Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40417#M16941</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;You can find in attached a zip containing 2 eclipse maven projects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1.  For the custom component&lt;/P&gt;&lt;P&gt;  2.  For the custom component runtime and test classes and resources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:42:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40417#M16941</guid>
      <dc:creator>alain_rapaz</dc:creator>
      <dc:date>2017-11-17T15:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40418#M16942</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;You can find in attached a zip containing 2 eclipse maven projects&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  1.  For the custom component&lt;/P&gt;&lt;P&gt;  2.  For the custom component runtime and test classes and resources&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 15:48:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40418#M16942</guid>
      <dc:creator>alain_rapaz</dc:creator>
      <dc:date>2017-11-17T15:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40419#M16943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you, let me take a look at it and get back to you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Nov 2017 19:22:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40419#M16943</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-11-17T19:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40420#M16944</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;Got some time to look at your code and test case. I don't think you are doing anything wrong, but just bear in mind that a multi-instance behaviour is handled differently to a single instance call activity behaviour. You may be able to track some of the logic&amp;nbsp;in this class&amp;nbsp;&lt;A class="link-titled" href="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/agenda/EndExecutionOperation.java" title="https://github.com/Activiti/Activiti/blob/6.x/modules/activiti-engine/src/main/java/org/activiti/engine/impl/agenda/EndExecutionOperation.java" rel="nofollow noopener noreferrer"&gt;Activiti/EndExecutionOperation.java at 6.x · Activiti/Activiti · GitHub&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;This is the reason why you don't see a "completing()" call when it is multi-instance. If you add some additional task (eg: a script task with a println statement in your subprocess instead of the current manual task) you can see it getting executed correctly 3 times and then at the end the execution getting completed correctly!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Out of curiosity, why are you implementing your own call activity instead of using the OOTB Call Activity? It would be good to understand the use case that prompted you to implement your own call activity and if it is beneficial to the community it makes sense to discuss this with the team who are working on &lt;A href="https://gitter.im/Activiti/Activiti7" rel="nofollow noopener noreferrer"&gt;Activiti 7&lt;/A&gt; (the next generation Activiti) and you can contribute any missing feature into the core product!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Ciju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 17:27:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40420#M16944</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2017-11-22T17:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: Custom component and multi instance</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40421#M16945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ciju,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the answer.&lt;/P&gt;&lt;P&gt;In debug mode, I already went through the EndExecutionOperation and see the call to the completing of the multiInstance behaviour.&lt;/P&gt;&lt;P&gt;I don’t have any way to customize the code of the multiInstance as this is plugged by the activiti engine on top of my custom component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I implemented this component like a callActivity to be able to customize the use of variable to and back of the process executed by the call acivity.&lt;/P&gt;&lt;P&gt;This component will be used by clients of our application designing workflow on their own and I check/force the use of specific variables in and out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is in the completing of the standard callActivity that I’m able to work on the variables of the terminated subProcess like the standard way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that the completing of the multiInstance should call each individual completing if they implement the subProcess interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Alain&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 08:16:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/custom-component-and-multi-instance/m-p/40421#M16945</guid>
      <dc:creator>alain_rapaz</dc:creator>
      <dc:date>2017-11-23T08:16:22Z</dc:date>
    </item>
  </channel>
</rss>

