<?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 cancelActivity=true not working for service tasks in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81343#M54391</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 have a service tasks that waits for a synchronous response to come back. If a timeout is reached (timer boundary event), I want the subprocess to be canceled (cancelActivity=true).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already found out the hard way that the boundary events don't work on service tasks, so I wrapped the service tasks in a subprocess scope.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Still the service task execution is not getting cancelled although the time boundary event is triggered. I was expecting that the service task thread (async=true) is getting signaled.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is support for boundary events on service tasks planned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- The fact that the service task thread continues to run, is that a bug or a feature?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is there a way to store an error code in process variables? I would like to have a catch-all for errors happening in the process and create a notification with that error code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Timo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2012 09:03:48 GMT</pubDate>
    <dc:creator>tcarl</dc:creator>
    <dc:date>2012-08-03T09:03:48Z</dc:date>
    <item>
      <title>cancelActivity=true not working for service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81343#M54391</link>
      <description>Hi,I have a service tasks that waits for a synchronous response to come back. If a timeout is reached (timer boundary event), I want the subprocess to be canceled (cancelActivity=true).I already found out the hard way that the boundary events don't work on service tasks, so I wrapped the service tas</description>
      <pubDate>Fri, 03 Aug 2012 09:03:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81343#M54391</guid>
      <dc:creator>tcarl</dc:creator>
      <dc:date>2012-08-03T09:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: cancelActivity=true not working for service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81344#M54392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;1. No support for this is planned&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The cancelActivity uses the database to cancel the running activity. As long as the async service-task is "running", the process-state in the DB is unaffected. When the service-tasks finished and tries to write it's data, it will get an optimistic lock-exception, effectively rolling back the work it did in the service-tasks, so transactionally speaking, it "never happened". There is no way of "notifying" or "canceling" the job-threads at the moment. Also a bit difficult to implement right, keeping in mind job-executor may be in different VM…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Do you mean the error-codes in the BPMNErrors/thowing boundary event?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 09:32:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81344#M54392</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-08-03T09:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: cancelActivity=true not working for service tasks</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81345#M54393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your quick reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In re:2&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a way for the running thread to check if it should shutdown? How would you generally implement a synchronous invocation that should be interrupted at a certain timeout?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;About 3)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a fairly simple process in mind that executes a number of steps. Each step can fail and essentially break out of the happy path. In a catch-all event subprocess I would like to notify which error code triggered the error start event. The error would be raised in a JavaDelegate by throwing BpmnError.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;With that information I can tell the user if a process was successful or failed and why it failed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I accomplish this scenario?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Timo&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2012 14:34:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/cancelactivity-true-not-working-for-service-tasks/m-p/81345#M54393</guid>
      <dc:creator>tcarl</dc:creator>
      <dc:date>2012-08-03T14:34:57Z</dc:date>
    </item>
  </channel>
</rss>

