<?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 Passing work items between service tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182066#M135196</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;How does the Activiti engine pass the work items from one service task to the next? Let me explain with an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Say, I have a service task which invokes a java class. The java class does some processing and generates some values (work items). Now I need to be able to pass these work items to the next service task in the workflow - this in turn does some more processing on the received input and generates a new set of values (work items) which needs to be passed on to the next service task in the workflow chain. How do i do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Sep 2014 23:46:54 GMT</pubDate>
    <dc:creator>gouthr</dc:creator>
    <dc:date>2014-09-25T23:46:54Z</dc:date>
    <item>
      <title>Passing work items between service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182066#M135196</link>
      <description>Hi,How does the Activiti engine pass the work items from one service task to the next? Let me explain with an example&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;ay, I have a service task which invokes a java class. The java class does some processing and generates some values (work items). Now I need to be able to pass these work items to t</description>
      <pubDate>Thu, 25 Sep 2014 23:46:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182066#M135196</guid>
      <dc:creator>gouthr</dc:creator>
      <dc:date>2014-09-25T23:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Passing work items between service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182067#M135197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Similarly how do i read the input for the first service task? Currently I am running some sample JUNIT tests and I am hard-coding the input values. If I were to take the input from the user, how would I do it? Is it from a FormService?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Sep 2014 23:55:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182067#M135197</guid>
      <dc:creator>gouthr</dc:creator>
      <dc:date>2014-09-25T23:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing work items between service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182068#M135198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;A follow up question. How can I use the default H2 database to (create a new table and )write and read new values from it? Any pointers to sample code or documentation would be great.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Sep 2014 01:24:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182068#M135198</guid>
      <dc:creator>gouthr</dc:creator>
      <dc:date>2014-09-26T01:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: Passing work items between service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182069#M135199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Goutham&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Your custom logic implements JavaDelegate interface. Use execution to set variables (local or global) in the process instance&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;public class SetLocalVariableTask implements JavaDelegate {&lt;BR /&gt;&lt;BR /&gt; public void execute(DelegateExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; execution.setVariableLocal("testLocal", "test2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; execution.setVariable("test", "test2");&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Read variable from execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Use DbSession or activiti queries.&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 Sep 2014 07:13:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/passing-work-items-between-service-tasks/m-p/182069#M135199</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2014-09-26T07:13:08Z</dc:date>
    </item>
  </channel>
</rss>

