<?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: how to find out if a process threw error event in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113011#M79531</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&amp;nbsp; frederikheremans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As always, very useful reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought there might be quicker/direct way to do this. Neverthless, your solution is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could leverage the history for this, I can think of two approaches:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Use a different end-event for your process in happy-path and stuff-hit-the-fan-path. You can use minimal history level to inspect "endActivity" on the historicProcessinstance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Set history level high enough to have HistoricActivities available… You should inspect all the activities for the process-instance to see if the error-related stuff is in there.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 00:38:44 GMT</pubDate>
    <dc:creator>workflowuser2</dc:creator>
    <dc:date>2012-08-01T00:38:44Z</dc:date>
    <item>
      <title>how to find out if a process threw error event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113009#M79529</link>
      <description>Hi,I have a subprocss with error boundary event. In the event when a BPMNError is thrown, error boundary event is activated and the subprocess is cancelled.Is there a quick way (direct API) to find out if process went through happy path (no error event) vs the case when an error event was thrown?Tha</description>
      <pubDate>Fri, 27 Jul 2012 17:20:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113009#M79529</guid>
      <dc:creator>workflowuser2</dc:creator>
      <dc:date>2012-07-27T17:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if a process threw error event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113010#M79530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You could leverage the history for this, I can think of two approaches:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Use a different end-event for your process in happy-path and stuff-hit-the-fan-path. You can use minimal history level to inspect "endActivity" on the historicProcessinstance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Set history level high enough to have HistoricActivities available… You should inspect all the activities for the process-instance to see if the error-related stuff is in there.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 10:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113010#M79530</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2012-07-31T10:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if a process threw error event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113011#M79531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks&amp;nbsp; frederikheremans.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;As always, very useful reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I thought there might be quicker/direct way to do this. Neverthless, your solution is good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could leverage the history for this, I can think of two approaches:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Use a different end-event for your process in happy-path and stuff-hit-the-fan-path. You can use minimal history level to inspect "endActivity" on the historicProcessinstance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Set history level high enough to have HistoricActivities available… You should inspect all the activities for the process-instance to see if the error-related stuff is in there.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 00:38:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113011#M79531</guid>
      <dc:creator>workflowuser2</dc:creator>
      <dc:date>2012-08-01T00:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if a process threw error event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113012#M79532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi frederikheremans,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying your suggested approach (1st). I have two different end events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In my test class:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;public class Test extends PluggableActivitiTestCase {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;// start process &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;// wait to be complete &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;List&amp;lt;HistoricProcessInstance&amp;gt; processHistory = historyService.createHistoricProcessInstanceQuery().processInstanceId(pid).list();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for (HistoricProcessInstance history : processHistory ) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println("history" + history.getEndActivityId());&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above test case, I am always getting end activiti id as null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it because I am running unit test? When is endActivity set?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pdt&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thanks&amp;nbsp; frederikheremans.&lt;BR /&gt;As always, very useful reply.&lt;BR /&gt;I thought there might be quicker/direct way to do this. Neverthless, your solution is good.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;You could leverage the history for this, I can think of two approaches:&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;Use a different end-event for your process in happy-path and stuff-hit-the-fan-path. You can use minimal history level to inspect "endActivity" on the historicProcessinstance.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Set history level high enough to have HistoricActivities available… You should inspect all the activities for the process-instance to see if the error-related stuff is in there.&lt;/LI&gt;&lt;/UL&gt;&lt;/BLOCKQUOTE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 22:57:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113012#M79532</guid>
      <dc:creator>workflowuser2</dc:creator>
      <dc:date>2012-08-06T22:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to find out if a process threw error event</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113013#M79533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please ignore my previous reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I needed to set cancelActivity="true" on the error boundary event.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;pdt&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Aug 2012 23:11:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-find-out-if-a-process-threw-error-event/m-p/113013#M79533</guid>
      <dc:creator>workflowuser2</dc:creator>
      <dc:date>2012-08-06T23:11:48Z</dc:date>
    </item>
  </channel>
</rss>

