<?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 Re: A service task is run asynchronously when user task is completed in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14597#M6415</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Jonathan for your prompt response. You're absolutely right, a result variable attached to the service task is one way of solving the issue. I will give it a try.&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Feb 2017 06:49:11 GMT</pubDate>
    <dc:creator>akhettar</dc:creator>
    <dc:date>2017-02-22T06:49:11Z</dc:date>
    <item>
      <title>A service task is run asynchronously when user task is completed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14595#M6413</link>
      <description>HiI am new to BPM. I have a simple flow consisting of a user task and service task - see attachment. Looks like when complete is called on the task on&amp;nbsp;name="Enter user details", the service task is run asynchronously and I have no way of sending back the outcome of the service task to the client.The</description>
      <pubDate>Tue, 21 Feb 2017 16:07:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14595#M6413</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2017-02-21T16:07:00Z</dc:date>
    </item>
    <item>
      <title>Re: A service task is run asynchronously when user task is completed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14596#M6414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your description in the 2nd paragraph doesn't really align with what you have attached, so I may be a little off in my suggestions - but anyway:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It sounds like you're looking for a way to capture the data that the service task is retrieving or modifying, in order to utilize it within the next step, correct? The &lt;A href="https://www.activiti.org/userguide/#bpmnJavaServiceTask" rel="nofollow noopener noreferrer"&gt;Java Service Task&lt;/A&gt;&amp;nbsp;and &lt;A href="https://www.activiti.org/userguide/#bpmnWebserviceTask" rel="nofollow noopener noreferrer"&gt;Web Service Task&lt;/A&gt;&amp;nbsp;sections of the User Guide both show the jist of how to store the response data of a service task - such that you wouldn't need to block anything to get that information, it would be stored within the process.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Think of a process in terms of a 'context'; within the process, there can be variables and data stored that you can either allow or disallow a task to access and edit. Generally, you'll want to maintain some of those essential bits of data within the process for utilization - so if you map the output of a service into a data object, it will then be accessible within the process.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rollbacks aren't really a thing in this particular case; Activiti goes about storing all process information, even when a process errors out, is manually cancelled, or breaks for whatever reason. (In general with BPM) The intention is to create an accurate database of all process transactions with the system, especially when things break, in order to track success and metrics of a process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't believe that you have anything setup wrong; just checkout the ways Activiti says to map the output of a service task into process data. If you could expand a little bit on the exception you're getting - that might help too.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;-JEarles&lt;BR /&gt;&lt;A href="https://migration33.stage.lithium.com/t5/tag/bp3/tg-p"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 19:34:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14596#M6414</guid>
      <dc:creator>jearles</dc:creator>
      <dc:date>2017-02-21T19:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: A service task is run asynchronously when user task is completed</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14597#M6415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many thanks Jonathan for your prompt response. You're absolutely right, a result variable attached to the service task is one way of solving the issue. I will give it a try.&lt;/P&gt;&lt;P&gt;Ayache&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 06:49:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/a-service-task-is-run-asynchronously-when-user-task-is-completed/m-p/14597#M6415</guid>
      <dc:creator>akhettar</dc:creator>
      <dc:date>2017-02-22T06:49:11Z</dc:date>
    </item>
  </channel>
</rss>

