<?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 Service task: result variable name is lost on export in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138722#M97243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm playing around with service tasks and stumbled over the following issue. I reproduced it with a super simple process. I create a process in the Activiti Modeler with a service task. I set the attribute "Result variable name" to "testVar":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://img37.imageshack.us/img37/1748/miniprocess.png" rel="nofollow noopener noreferrer"&gt;http://img37.imageshack.us/img37/1748/miniprocess.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I save the model and export it to a file. Result: the definition of the result variable is missing from the bpmn20.xml file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt; &amp;lt;process id="process" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;startEvent id="sid-154EFE65-1AC3-4482-8B94-EC47422406B8"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-6EF930B8-197D-40B8-9489-30FDF5BF5EEF" sourceRef="sid-154EFE65-1AC3-4482-8B94-EC47422406B8" targetRef="sid-2E3117FA-1BE6-457C-ADF3-8A9E3EE491FE"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;endEvent id="sid-22AC7BC9-E838-44BD-A17E-1B43F1C5F0F5"/&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="sid-2E3117FA-1BE6-457C-ADF3-8A9E3EE491FE"/&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;!– where's the resultVariable="testVar"? –&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="sid-852ACB0D-C1A4-4CC9-A282-5563FF1A8CCA" sourceRef="sid-2E3117FA-1BE6-457C-ADF3-8A9E3EE491FE" targetRef="sid-22AC7BC9-E838-44BD-A17E-1B43F1C5F0F5"/&amp;gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;/process&amp;gt;&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;My real example uses an expression like this: ${mam_wfe.execute()}.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried a few things:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;a) When I use the result variable "testVar", e.g. in a following decision task, I see an error message telling that "testVar" doesn't exist. So it's not only a question of the export, it also doesn't execute as I expect it to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;b) When I add the resultVariable="testVar" attribute manually to the file, execute the Activiti Engine in a unit test, deploy the process definition and execute it, it runs fine. The variable is set and can be used in expressions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;c) When I upload the modified file in the Activiti Explorer, deploy the process and start it, the variable is *not* set. The process fails if I use the testVar variable in an expression later in the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I doing something fundamentally wrong or is there a bug somewhere?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Jun 2013 09:33:09 GMT</pubDate>
    <dc:creator>kuehly</dc:creator>
    <dc:date>2013-06-07T09:33:09Z</dc:date>
    <item>
      <title>Service task: result variable name is lost on export</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138722#M97243</link>
      <description>I'm playing around with service tasks and stumbled over the following issue. I reproduced it with a super simple process. I create a process in the Activiti Modeler with a service task. I set the attribute "Result variable name" to "testVar":[img]http://img37.imageshack.us/img37/1748/miniprocess.png</description>
      <pubDate>Fri, 07 Jun 2013 09:33:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138722#M97243</guid>
      <dc:creator>kuehly</dc:creator>
      <dc:date>2013-06-07T09:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: Service task: result variable name is lost on export</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138723#M97244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's a bug. Can you create a JIRA for this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 15:20:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138723#M97244</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-06-10T15:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Service task: result variable name is lost on export</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138724#M97245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Done. ID is ACT-1703.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Andreas&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/service-task-result-variable-name-is-lost-on-export/m-p/138724#M97245</guid>
      <dc:creator>kuehly</dc:creator>
      <dc:date>2013-06-11T14:57:00Z</dc:date>
    </item>
  </channel>
</rss>

