<?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: Create a generic fail event manager in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54149#M32235</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One option is to put all the steps in an embedded subprocess with an error catch event, and fire this event from your Java classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Sep 2011 13:05:32 GMT</pubDate>
    <dc:creator>jbarrez</dc:creator>
    <dc:date>2011-09-15T13:05:32Z</dc:date>
    <item>
      <title>Create a generic fail event manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54148#M32234</link>
      <description>Hi,I am trying to create a generic fail event manager by using boundary event but can't get it to work. What I would like to do is whenever my delegate class adds an execution variable say createActivityFailed then I would likethe boundary event to catch this error and create a user task say FEM.I h</description>
      <pubDate>Mon, 12 Sep 2011 15:23:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54148#M32234</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-09-12T15:23:17Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic fail event manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54149#M32235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;One option is to put all the steps in an embedded subprocess with an error catch event, and fire this event from your Java classes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 13:05:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54149#M32235</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-09-15T13:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic fail event manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54150#M32236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for your input and I am doing just the way you described, but the problem is whenever a servicetask(say the second one) fails I create a usertask so that I can re run the service task again and for that there has to be a sequence flow to all the service tasks which makes the diagram a bit messig and I would love to avoid that if possible because we can potetially have a lot more service tasks(20 to 30).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you know of a better solution to this ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;public class OrchestrateDelegate implements ActivityBehavior {&lt;BR /&gt; private static Map&amp;lt;String, String&amp;gt; transitions = new HashMap&amp;lt;String, String&amp;gt;();&lt;BR /&gt;&lt;BR /&gt; static {&lt;BR /&gt;&amp;nbsp; transitions.put("Klargjor-og-kjor-opphor", "flow10");&lt;BR /&gt;&amp;nbsp; transitions.put("Sende-brev", "flow22");&lt;BR /&gt;&amp;nbsp; transitions.put("Sende-regnskap", "flow23");&lt;BR /&gt; }&lt;BR /&gt; &lt;BR /&gt; @Override&lt;BR /&gt; public void execute(ActivityExecution execution) throws Exception {&lt;BR /&gt;&amp;nbsp; String wpsTaskId = (String)execution.getVariable("wpsTaskId");&lt;BR /&gt;&amp;nbsp; &lt;BR /&gt;&amp;nbsp; PvmTransition transition = execution.getActivity().findOutgoingTransition(transitions.get(wpsTaskId));&lt;BR /&gt;&amp;nbsp; execution.take(transition);&lt;BR /&gt; }&lt;BR /&gt;}&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Sep 2011 08:31:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54150#M32236</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-09-19T08:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic fail event manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54151#M32237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;mmm, i see indeed the problem. Not very pretty, indeed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Well, you *could* do it without having the sequence flow, but it requires some serious low level (implementation level) code to get it going.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best is to check what happens when calling the take() method (but it will be very low-level….)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Another 'hack' which you might do, is to have a pre-processing of your process xml file, and enhance the process with all the sequence flow … but obvious that's not the pretiest of solutions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Sep 2011 12:40:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54151#M32237</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-09-20T12:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create a generic fail event manager</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54152#M32238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I would rather not prefer to do low level so my question is since this problem scenario is very authentic and other activiti users might very well run into same problem,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will you consider make a fix for it in activiti so that we will be able to jump to a specefic service task without defining a flow ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Sep 2011 06:34:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/create-a-generic-fail-event-manager/m-p/54152#M32238</guid>
      <dc:creator>sazzadul</dc:creator>
      <dc:date>2011-09-21T06:34:13Z</dc:date>
    </item>
  </channel>
</rss>

