<?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 Pass an object between two tasks in an activiti process in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224787#M177917</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my bpmn I have two service tasks, both of them are functions to call my service class functions. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The below is my bpmn file code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="updateContact" activiti:expression="#{printer.updateContact()}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="updateContact" targetRef="readContact" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="readContact" activiti:expression="#{printer.readContact()}" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The printer variable inside expression is an object of my class Printer which contains updateContact() and readContact() functions. Now what I want is to pass an object from updateContact serviceTask to readContact serviceTask. I saw examples of passing objects to functions using delegate but I want to know if we can pass an object between two serviceTasks? If yes, then how? I am new to Activiti so please help me out with this.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Aug 2016 12:49:47 GMT</pubDate>
    <dc:creator>akashraveendran</dc:creator>
    <dc:date>2016-08-25T12:49:47Z</dc:date>
    <item>
      <title>Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224787#M177917</link>
      <description>Hi all,In my bpmn I have two service tasks, both of them are functions to call my service class functions. The below is my bpmn file code.&amp;nbsp;&amp;nbsp; &amp;lt;serviceTask id="updateContact" activiti:expression="#{printer.updateContact()}" /&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;sequenceFlow id="flow3" sourceRef="updateContact" targetRef="re</description>
      <pubDate>Thu, 25 Aug 2016 12:49:47 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224787#M177917</guid>
      <dc:creator>akashraveendran</dc:creator>
      <dc:date>2016-08-25T12:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224788#M177918</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;org.activiti.engine.test.bpmn.servicetask.ServiceTaskVariablesTest&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in activiti source.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 12:56:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224788#M177918</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-08-25T12:56:24Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224789#M177919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your quick reply. I am looking into the source code you suggested. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Aug 2016 13:16:50 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224789#M177919</guid>
      <dc:creator>akashraveendran</dc:creator>
      <dc:date>2016-08-25T13:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224790#M177920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From the examples I saw, I understand that we will have to use execute method to implement the passing of objects between the service task functions. But I want to use a function with different name like update() for update and read() for read. So how can we use custom methods along with using Execution object?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 05:36:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224790#M177920</guid>
      <dc:creator>akashraveendran</dc:creator>
      <dc:date>2016-08-26T05:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224791#M177921</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 do not understand the question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Aug 2016 06:33:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224791#M177921</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2016-08-26T06:33:00Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224792#M177922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Actually my requirement is to pass a pojo class object from one service task( say update ) to another service task( say read ). I have a JavaDelegate implementing class for both the service tasks. Now I want to set the pojo class from the update class and access it in read class. I had a look at the code you told me to look into but still I was not able to get things clear. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I was getting an error of this sort : ActivitiPerson is the pojo class I was talking about with two string fields firstName and lastName.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.ActivitiException: couldn't find a variable type that is able to serialize com.xxx.yyy.zzz.ActivitiPerson@5bf8581a.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the code in my bpmn for the update service task :&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serviceTask id="updateContact" activiti:delegateExpression="${callUpdateContact}"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;sequenceFlow id="flow3" sourceRef="updateContact" targetRef="readContact"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;serviceTask id="readContact" activiti:delegateExpression="${callReadContact}" &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you please help me with this? I am actually stuck with this from a long time&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 05:56:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224792#M177922</guid>
      <dc:creator>akashraveendran</dc:creator>
      <dc:date>2016-08-27T05:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Pass an object between two tasks in an activiti process</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224793#M177923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Martin,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It was a subtle mistake on my side. I didnt make the java pojo class serializable. Its working well after I made the pojo&amp;nbsp; class Serializable. Thank you for all your support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Aug 2016 06:37:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/pass-an-object-between-two-tasks-in-an-activiti-process/m-p/224793#M177923</guid>
      <dc:creator>akashraveendran</dc:creator>
      <dc:date>2016-08-27T06:37:06Z</dc:date>
    </item>
  </channel>
</rss>

