<?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: Issue with Multi-Instance variables and extensionElements in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161604#M115533</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Regarding my refactoring when migrating from 5.11 to 5.14:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In 5.11 I was using Activiti:field members to store custom configuration options. The values of those options were captured via ParseListener and ExecutionListener and stored in a seperate Java object which can be accessed in the serviceTasks. But since 5.14 I have no access to Activiti:field fields using the BpmnParseHandler handler. The BpmnParse.getExtensionElements() doesn't return activiti:field fields. It only returns other custom extension fields (like the one in my first post above). But at the end I like the idea of having a custom section in the extensionElement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the sub process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, this is not a subprocess. It's just a regular ServiceTask in a multi instance loop. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, the main issue for me seems to be that the ExecutionListener is executed before the Multi Instance behavior is executed. So that's why the loop variables are not available. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime i tried to implement a custom ActivityBehavior which should do the job of the ExecutionListener. But this did not yet work out very well. Or is there another way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wilco&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Nov 2013 12:19:09 GMT</pubDate>
    <dc:creator>wilco</dc:creator>
    <dc:date>2013-11-19T12:19:09Z</dc:date>
    <item>
      <title>Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161600#M115529</link>
      <description>First of all, thanks for this great framework!In my project I'm switching from Activit 5.11 to 5.14. I'm using a bpmn serviceTask like this:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="dicomsort" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; name="dicomsort" &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; activiti:delegateExpression="${dicomSortIOActivity}"&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;</description>
      <pubDate>Tue, 19 Nov 2013 09:18:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161600#M115529</guid>
      <dc:creator>wilco</dc:creator>
      <dc:date>2013-11-19T09:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161601#M115530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did some more investigation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For me it seems, that the MultiInstanceActivityBehavior is executed AFTER the ExecutionListener. Maybe this is the desired behavior but in my case, the loop variables are not yet set when the executionlistener is fired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea how to modify this behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wilco&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 10:21:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161601#M115530</guid>
      <dc:creator>wilco</dc:creator>
      <dc:date>2013-11-19T10:21:17Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161602#M115531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't understand why you switched from using activiti:field variables to the extension elements. To my knowledge we didn't change anything since 5.11 that prevents you from using activiti:field elements. Can you elaborate a bit more on that?&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>Tue, 19 Nov 2013 11:06:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161602#M115531</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-19T11:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161603#M115532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, did you try to use an embedded sub process with the multi instance definition and a service task with the execution listener in the embedded sub process?&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>Tue, 19 Nov 2013 11:07:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161603#M115532</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-19T11:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161604#M115533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Regarding my refactoring when migrating from 5.11 to 5.14:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In 5.11 I was using Activiti:field members to store custom configuration options. The values of those options were captured via ParseListener and ExecutionListener and stored in a seperate Java object which can be accessed in the serviceTasks. But since 5.14 I have no access to Activiti:field fields using the BpmnParseHandler handler. The BpmnParse.getExtensionElements() doesn't return activiti:field fields. It only returns other custom extension fields (like the one in my first post above). But at the end I like the idea of having a custom section in the extensionElement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regarding the sub process:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No, this is not a subprocess. It's just a regular ServiceTask in a multi instance loop. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As I said, the main issue for me seems to be that the ExecutionListener is executed before the Multi Instance behavior is executed. So that's why the loop variables are not available. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime i tried to implement a custom ActivityBehavior which should do the job of the ExecutionListener. But this did not yet work out very well. Or is there another way?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Wilco&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Nov 2013 12:19:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161604#M115533</guid>
      <dc:creator>wilco</dc:creator>
      <dc:date>2013-11-19T12:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with Multi-Instance variables and extensionElements</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161605#M115534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I know it's not a sub process, but you could implement it like I explained. That should work I think.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should be able to get the field definitions from the ServiceTask instance using the getFieldExtensions method. Did you try that?&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, 20 Nov 2013 15:18:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/issue-with-multi-instance-variables-and-extensionelements/m-p/161605#M115534</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-11-20T15:18:21Z</dc:date>
    </item>
  </channel>
</rss>

