<?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 Is there any way to pass transient variable to inner call activity process in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/is-there-any-way-to-pass-transient-variable-to-inner-call/m-p/14621#M6439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That is a simple question. I want to use transient variable in sub call activity process. When I try to pass through input parameters, the error appears (as expected because it is not a process var) ;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;org.activiti.engine.ActivitiException: couldn't find a variable type that is able to serialize ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 10 Jun 2017 01:05:18 GMT</pubDate>
    <dc:creator>mhmtgk</dc:creator>
    <dc:date>2017-06-10T01:05:18Z</dc:date>
    <item>
      <title>Is there any way to pass transient variable to inner call activity process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-there-any-way-to-pass-transient-variable-to-inner-call/m-p/14621#M6439</link>
      <description>Hi All,That is a simple question. I want to use transient variable in sub call activity process. When I try to pass through input parameters, the error appears (as expected because it is not a process var) ;&amp;nbsp;org.activiti.engine.ActivitiException: couldn't find a variable type that is able to seriali</description>
      <pubDate>Sat, 10 Jun 2017 01:05:18 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-there-any-way-to-pass-transient-variable-to-inner-call/m-p/14621#M6439</guid>
      <dc:creator>mhmtgk</dc:creator>
      <dc:date>2017-06-10T01:05:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to pass transient variable to inner call activity process</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/is-there-any-way-to-pass-transient-variable-to-inner-call/m-p/14622#M6440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way I have resolved this issue by debugging engine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First I have tried to reach root process instance with;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ExecutionEntity thisEntity = (ExecutionEntity) execution;&lt;/P&gt;&lt;P&gt;ExecutionEntity pi= (ExecutionEntityImpl) thisEntity.getRootProcessInstance()&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But getRootProcessInstance() method returns null within call activity process. While&amp;nbsp;getRootProcessInstanceId() returns the exact root process instance ID. I take a look at&amp;nbsp;&lt;SPAN&gt;getRootProcessInstance() method. It calls a function;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--&amp;gt; ExecutionEntityImpl.java&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; protected void ensureRootProcessInstanceInitialized() {&lt;BR /&gt; if (rootProcessInstanceId == null) {&lt;BR /&gt; rootProcessInstance = (ExecutionEntityImpl) Context.getCommandContext().getExecutionEntityManager().findById(rootProcessInstanceId);&lt;BR /&gt; }&lt;BR /&gt; }&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think this code should be;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if (rootProcessInstanceId != null)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because I can reach root process instance in a Service Task (JavaDelegate class) by;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt; ExecutionEntity thisEntity = (ExecutionEntity) execution;&lt;BR /&gt; ExecutionEntity pi= (ExecutionEntityImpl) Context.getCommandContext().getExecutionEntityManager().findById(thisEntity.getRootProcessInstanceId());&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So this weekend passed by thinking this issue &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 11 Jun 2017 22:54:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/is-there-any-way-to-pass-transient-variable-to-inner-call/m-p/14622#M6440</guid>
      <dc:creator>mhmtgk</dc:creator>
      <dc:date>2017-06-11T22:54:19Z</dc:date>
    </item>
  </channel>
</rss>

