<?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 How to return an object or value from the process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-return-an-object-or-value-from-the-process/m-p/110418#M77576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new to Activiti. I am using Activiti5.9 and trying out with some simple use cases.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to perform service orchestration flow with two webservices and some conditional logic.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My aim is to collate both the webservice xml responses into one and return back from this process.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Calling the webservices and collating the xml is working fine.&amp;nbsp; But how to return the response xml back to the client?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried populating one process variable from my collation java task and trying to access it from my processController class(which starts the process).&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For this, I am using RunTimeService's getVariable method by passing executionId and variable name.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But by the time i come to this statement, Process execution is completed and it is not able to resolve that particular processId from *_RE_* tables.&amp;nbsp; This is causing ActivitiException.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best solution or practice for these kind of scenarios.&amp;nbsp; How to return a String/Object from my process to my controller class?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Mar 2012 12:20:41 GMT</pubDate>
    <dc:creator>purna_cherukuri</dc:creator>
    <dc:date>2012-03-20T12:20:41Z</dc:date>
    <item>
      <title>How to return an object or value from the process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-return-an-object-or-value-from-the-process/m-p/110418#M77576</link>
      <description>Hi,I am new to Activiti. I am using Activiti5.9 and trying out with some simple use cases.&amp;nbsp; I am trying to perform service orchestration flow with two webservices and some conditional logic.&amp;nbsp; My aim is to collate both the webservice xml responses into one and return back from this process.&amp;nbsp; Calling</description>
      <pubDate>Tue, 20 Mar 2012 12:20:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-return-an-object-or-value-from-the-process/m-p/110418#M77576</guid>
      <dc:creator>purna_cherukuri</dc:creator>
      <dc:date>2012-03-20T12:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to return an object or value from the process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-return-an-object-or-value-from-the-process/m-p/110419#M77577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your approach is okay, but you'll have to use the HistoryService to retrieve process variables from completed process instances instead.&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, 20 Mar 2012 14:19:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-return-an-object-or-value-from-the-process/m-p/110419#M77577</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-03-20T14:19:19Z</dc:date>
    </item>
  </channel>
</rss>

