<?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 Receive Task - Error Handling in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115343#M81318</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hi folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;we would do some kind of error handling in our process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We have a sequence of service task, that does some async stuff (send a jms message), then we have a receive task that waits for answer of the async. service call.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the service call is successful we complete the receive task. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Execution execution = runtimeService.createExecutionQuery().processInstanceId(processId).activityId(receiveActivityId).singleResult();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.signal(execution.getId(), processVariablesMap);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After that we have some more service task –&amp;gt; receive Task sequences.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if the async. call does not succeed we get a message and then we want to do something like &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;runtimeService.signal(execution.getId(),&amp;nbsp;&amp;nbsp;&amp;nbsp; BPMNError("code","message"));&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can we do that an is is possible to register Errorhandler to the process ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upload process image will currently not work (Could not upload attachment to ./files/3577_3c5a6eea8a66832846c8c6dab4a522ac.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Nov 2012 08:51:25 GMT</pubDate>
    <dc:creator>cpiepel</dc:creator>
    <dc:date>2012-11-21T08:51:25Z</dc:date>
    <item>
      <title>Receive Task - Error Handling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115343#M81318</link>
      <description>hi folks,we would do some kind of error handling in our process.We have a sequence of service task, that does some async stuff (send a jms message), then we have a receive task that waits for answer of the async. service call.If the service call is successful we complete the receive task. Execution</description>
      <pubDate>Wed, 21 Nov 2012 08:51:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115343#M81318</guid>
      <dc:creator>cpiepel</dc:creator>
      <dc:date>2012-11-21T08:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task - Error Handling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115344#M81319</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It's not possible to throw en error from outside a BPMN process. However, you could wrap all of your current service-receive task sequences in a single embedded subprocess, and add a signal-boundary event to the subprocess, with a unique signalName (e.g.. asyncFailedSignal) that cancels the running subprocess and takes an alternative path.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 08:57:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115344#M81319</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-11-21T08:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Receive Task - Error Handling</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115345#M81320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your reply. After some trouble with the designer it works now.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 11:56:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/receive-task-error-handling/m-p/115345#M81320</guid>
      <dc:creator>cpiepel</dc:creator>
      <dc:date>2012-11-21T11:56:32Z</dc:date>
    </item>
  </channel>
</rss>

