<?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 exlusiveGateway default error in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/exlusivegateway-default-error/m-p/174443#M127573</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi I'm fairly new to activity, i have a situation where I want to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if a then taskA&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;if b then taskB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;else throw java RuntimeException&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;here's what I got:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;….&lt;BR /&gt;&amp;lt;sequenceFlow id="flow1" sourceRef="start" targetRef="decision" /&amp;gt;&lt;BR /&gt;&amp;lt;exclusiveGateway id="decision" name="pick task" default="goToThrowException" /&amp;gt;&lt;BR /&gt;&amp;lt;sequenceFlow id="flow2" sourceRef="decision" targetRef="taskA" &amp;gt;&lt;BR /&gt;&amp;lt;conditionExpression&amp;gt;${activitiWorkflowService.evaluate(execution, "isTaskA")}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;lt;sequenceFlow id="flow3" sourceRef="decision" targetRef="taskB" &amp;gt;&lt;BR /&gt;&amp;lt;conditionExpression&amp;gt;${activitiWorkflowService.evaluate(execution, "isTaskB")}&amp;lt;/conditionExpression&amp;gt;&lt;BR /&gt;&amp;lt;/sequenceFlow&amp;gt;&lt;BR /&gt;&amp;lt;sequenceFlow id="goToThrowException" sourceRef="decision" targetRef="throwException"/&amp;gt;&lt;BR /&gt;&amp;lt;sequenceFlow id="flow4" sourceRef="throwException" targetRef="decisionEnd"/&amp;gt;&lt;BR /&gt;&amp;lt;serviceTask id="throwException" name="Throw error no task defined" activiti:class="com.path.activiti.ActivitiServiceTask" /&amp;gt; &lt;BR /&gt;&amp;lt;exclusiveGateway id="decisionEnd" name="decision task END"/&amp;gt;&lt;BR /&gt;&amp;lt;sequenceFlow id="flow5" sourceRef="decisionEnd" targetRef="end" /&amp;gt;&lt;BR /&gt;….&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry if some of the steps are redundant but I'm new to this and i'm unsure if there'a better way to do it. Now, how can i get this xml to call java code that will throw my exeption as follows or if activiti has a better way to do it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;public void handleUnsupportedSpecialDoc() throws Exception{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new RuntimeException("unsupport task by workflow");&lt;BR /&gt;}&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;THanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 16:26:08 GMT</pubDate>
    <dc:creator>clever</dc:creator>
    <dc:date>2014-03-05T16:26:08Z</dc:date>
    <item>
      <title>exlusiveGateway default error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exlusivegateway-default-error/m-p/174443#M127573</link>
      <description>Hi I'm fairly new to activity, i have a situation where I want to do the following:if a then taskAif b then taskBelse throw java RuntimeExceptionhere's what I got:….&amp;lt;sequenceFlow id="flow1" sourceRef="start" targetRef="decision" /&amp;gt;&amp;lt;exclusiveGateway id="decision" name="pick task" default="go</description>
      <pubDate>Wed, 05 Mar 2014 16:26:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exlusivegateway-default-error/m-p/174443#M127573</guid>
      <dc:creator>clever</dc:creator>
      <dc:date>2014-03-05T16:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: exlusiveGateway default error</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/exlusivegateway-default-error/m-p/174444#M127574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case you have 2 outgoing flows on an exclusive gateway which BOTH have an expression, the error will be thrown by default, when non of the 2 expression resolve to true. Activiti will throw an exception when none of the conditions resolve to true:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt; //No sequence flow could be found, not even a default one&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; throw new ActivitiException("No outgoing sequence flow of the exclusive gateway '"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; + execution.getActivity().getId() + "' could be selected for continuing the process");&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, make sure NONE of the flows is marked as "default"…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Mar 2014 10:23:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/exlusivegateway-default-error/m-p/174444#M127574</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-03-10T10:23:05Z</dc:date>
    </item>
  </channel>
</rss>

