<?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 How can we return an functional error in activiti 7 in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-we-return-an-functional-error-in-activiti-7/m-p/25214#M10913</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a usecase where we need to perform some business validations when a process is started and return an error code with synchronous response in case the business validation fails. Is there any way we can do that in activiti 7. Below is an example of validating the input parameters inside the XML which should return an error code in case validation fails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried the acitivit 6 way but the tags are not working.&amp;nbsp; No error code is thrown in case we execute the XML. We have also tried to add boundaryEvent and attach it to the validateInputImpl still it does not throw any exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be appreciated. Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;XML:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;bpmn2:error id="myError" errorCode="WOM_03.203.003" /&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp; &amp;lt;bpmn2&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocess id="process-097cd6ce-71d9-4db5-9e4b-4f50757292bf_1" name="createWorkOrder" isExecutable="true"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:documentation /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:startEvent id="StartEvent_1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;SequenceFlow_1717b9t&amp;lt;/bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmn2:startEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:serviceTask id="ServiceTask_1aflbq5" name="Validate Input" implementation="validateInputImpl"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:incoming&amp;gt;SequenceFlow_1717b9t&amp;lt;/bpmn2:incoming&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;SequenceFlow_0shefwo&amp;lt;/bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmn2:serviceTask&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:exclusiveGateway id="ExclusiveGateway_0oag0b8" name="Validation Passed"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:incoming&amp;gt;SequenceFlow_0shefwo&amp;lt;/bpmn2:incoming&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;SequenceFlow_014el6n&amp;lt;/bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;SequenceFlow_11nngp3&amp;lt;/bpmn2&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://connect.hyland.com/i/smilies/16x16_smiley-surprised.png" alt="Smiley Surprised" title="Smiley Surprised" /&gt;utgoing&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmn2:exclusiveGateway&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:sequenceFlow id="SequenceFlow_0shefwo" sourceRef="ServiceTask_1aflbq5" targetRef="ExclusiveGateway_0oag0b8" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:endEvent id="EndEvent_0l0ebwj" name="END - Security Exception"&amp;gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;lt;bpmn2:&amp;nbsp;errorEventDefinition errorRef="myError" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:incoming&amp;gt;SequenceFlow_014el6n&amp;lt;/bpmn2:incoming&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:incoming&amp;gt;SequenceFlow_0odgyv0&amp;lt;/bpmn2:incoming&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmn2:endEvent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:sequenceFlow id="SequenceFlow_014el6n" name="No" sourceRef="ExclusiveGateway_0oag0b8" targetRef="EndEvent_0l0ebwj"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression"&amp;gt;${wocontainsofferings==false}&amp;lt;/bpmn2:conditionExpression&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/bpmn2:sequenceFlow&amp;gt;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;lt;/bpmn2&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://connect.hyland.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;rocess&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProcessStartController:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ProcessInstance processInstance = processRuntime&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.start(ProcessPayloadBuilder.start().withProcessDefinitionKey(processDefinitionKey)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.withProcessInstanceName("Create&amp;nbsp;Entity Process: " + new Date())&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;.withVariable("entity",objectToBeValidated).build());&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Feb 2019 13:45:01 GMT</pubDate>
    <dc:creator>parul_b_aggarwa</dc:creator>
    <dc:date>2019-02-28T13:45:01Z</dc:date>
    <item>
      <title>How can we return an functional error in activiti 7</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-we-return-an-functional-error-in-activiti-7/m-p/25214#M10913</link>
      <description>We have a usecase where we need to perform some business validations when a process is started and return an error code with synchronous response in case the business validation fails. Is there any way we can do that in activiti 7. Below is an example of validating the input parameters inside the XM</description>
      <pubDate>Thu, 28 Feb 2019 13:45:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-we-return-an-functional-error-in-activiti-7/m-p/25214#M10913</guid>
      <dc:creator>parul_b_aggarwa</dc:creator>
      <dc:date>2019-02-28T13:45:01Z</dc:date>
    </item>
  </channel>
</rss>

