<?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: Populating in/out parameters using CallActivityParseHandler in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158149#M112279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm still not 100% sure if I understand you correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the code for call activity parse handler is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected void executeParse(BpmnParse bpmnParse, CallActivity callActivity) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityImpl activity = createActivityOnCurrentScope(bpmnParse, callActivity, BpmnXMLConstants.ELEMENT_CALL_ACTIVITY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activity.setScope(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activity.setActivityBehavior(bpmnParse.getActivityBehaviorFactory().createCallActivityBehavior(callActivity));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&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;Isn't it easier to just copy paste that in your custom one, store the result of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpmnParse.getActivityBehaviorFactory().createCallActivityBehavior(callActivity)&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;locally and do the adjustments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other angle to this problem might be both customizing the parse handler and the activityBehaviourFactory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Dec 2013 11:04:07 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2013-12-19T11:04:07Z</dc:date>
    <item>
      <title>Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158146#M112276</link>
      <description>Hello,Till this day, I've used parse handlers to assign listeners to the different types of activities. I've tried to add some io parameters to a call activity while parsing:@Overrideprotected void executeParse(BpmnParse bpmnParse, CallActivity callActivity) {&amp;nbsp;&amp;nbsp;&amp;nbsp;super.executeParse(bpmnParse, callAct</description>
      <pubDate>Wed, 18 Dec 2013 08:59:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158146#M112276</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-12-18T08:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158147#M112277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What you could do alternatively, is override the default parse handler&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;see &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#advanced_parseHandlers" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#advanced_parseHandlers&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It is possible (but less common) to replace the default BpmnParseHandler instances that are responsible for the parsing of the BPMN 2.0 elements to the internal Activiti model. This can be done by following snippet of logic:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;property name="customDefaultBpmnParseHandlers"&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; …&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/property&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &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;This effectively allows you to replace the default parse handler with your own. Which, if I understand your use case, is probably what you want/need.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 09:51:26 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158147#M112277</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-12-18T09:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158148#M112278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact I'm following that path currently:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class CallActivityParseHandler extends org.activiti.engine.impl.bpmn.parser.handler.CallActivityParseHandler {&lt;BR /&gt;…&lt;BR /&gt; @Override&lt;BR /&gt; protected void executeParse(BpmnParse bpmnParse, CallActivity callActivity) {&lt;BR /&gt;&amp;nbsp; super.executeParse(bpmnParse, callActivity);&lt;BR /&gt;&amp;nbsp; initInOutParameters(callActivity);&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;…&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;bean id="parserProcessEngineConfiguration" parent="mailDisabledProcessEngineConfiguration"&amp;gt;&lt;BR /&gt; &amp;lt;property name="customDefaultBpmnParseHandlers"&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;list&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;bean class="my.pkg.CallActivityParseHandler"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;lt;/bean&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/list&amp;gt;&lt;BR /&gt; &amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;lt;/bean&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Though this is not working for me. because &lt;/SPAN&gt;&lt;CODE&gt;super.executeParse(bpmnParse, callActivity);&lt;/CODE&gt;&lt;SPAN&gt; populates the io parameters beforehand.&amp;nbsp;&amp;nbsp; Even I update/create io paramaters in &lt;/SPAN&gt;&lt;CODE&gt;initInOutParameters(callActivity);&lt;/CODE&gt;&lt;SPAN&gt;, they aren't reflected to the &lt;/SPAN&gt;&lt;CODE&gt;CallActivityBehavior&lt;/CODE&gt;&lt;SPAN&gt;'s &lt;/SPAN&gt;&lt;CODE&gt;dataInputAssociations&lt;/CODE&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do you think?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 11:42:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158148#M112278</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-12-18T11:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158149#M112279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm still not 100% sure if I understand you correctly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the code for call activity parse handler is this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; protected void executeParse(BpmnParse bpmnParse, CallActivity callActivity) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ActivityImpl activity = createActivityOnCurrentScope(bpmnParse, callActivity, BpmnXMLConstants.ELEMENT_CALL_ACTIVITY);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activity.setScope(true);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; activity.setActivityBehavior(bpmnParse.getActivityBehaviorFactory().createCallActivityBehavior(callActivity));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&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;Isn't it easier to just copy paste that in your custom one, store the result of the&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;bpmnParse.getActivityBehaviorFactory().createCallActivityBehavior(callActivity)&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;locally and do the adjustments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other angle to this problem might be both customizing the parse handler and the activityBehaviourFactory.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 11:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158149#M112279</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-12-19T11:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158150#M112280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for reply. I did it just like you said. It is working now. The thing that I don't like is being on guard against changes that can happen in next versions. If you change the internal mechanism, I will have to update it accordingly.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is solved on my side but you may think the custom bpmn parse handlers for your next versions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 14:39:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158150#M112280</guid>
      <dc:creator>gokceng1</dc:creator>
      <dc:date>2013-12-19T14:39:10Z</dc:date>
    </item>
    <item>
      <title>Re: Populating in/out parameters using CallActivityParseHandler</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158151#M112281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You are correct. Altough i don't see yet how that could be done generically and easily … yet&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Dec 2013 15:58:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/populating-in-out-parameters-using-callactivityparsehandler/m-p/158151#M112281</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-12-19T15:58:10Z</dc:date>
    </item>
  </channel>
</rss>

