<?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: Does REST call task throw BPMNError? in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16610#M7361</link>
    <description>&lt;P&gt;AFAIK EndpointService belongs to enterprise apis (of APS). contact alfresco for APS javadocs to kown usage and other details,&lt;/P&gt;</description>
    <pubDate>Mon, 22 Feb 2021 04:34:43 GMT</pubDate>
    <dc:creator>abbask01</dc:creator>
    <dc:date>2021-02-22T04:34:43Z</dc:date>
    <item>
      <title>Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16601#M7352</link>
      <description>&lt;P&gt;If REST call task receives http status 400, for example, does it throw a BPMNError so that a boundary error event can catch it? It does not seem to happen.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2021 08:12:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16601#M7352</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-10T08:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16602#M7353</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am not so sure about your question but for example, If I take a look into &lt;A href="https://github.com/Alfresco/alfresco-repository/blob/master/src/main/java/org/alfresco/repo/workflow/activiti/ActivitiWorkflowEngine.java" target="_self" rel="nofollow noopener noreferrer"&gt;this&amp;nbsp;ActivitiWorkflowEngine&lt;/A&gt; java file I can see the errors are controlled like this:&lt;/P&gt;&lt;PRE&gt; private static final String ERR_DEPLOY_WORKFLOW = "activiti.engine.deploy.workflow.error";&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pl-k"&gt;So, i can make the trace to &lt;A href="https://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/repository/config/alfresco/messages/activiti-engine-messages.properties" target="_self" rel="nofollow noopener noreferrer"&gt;this activiti-engine-messages&lt;/A&gt; properties file where is defined the translation of this error:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;activiti.engine.deploy.workflow.error=Failed to deploy workflow definition.&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="pl-k"&gt;Is this helping you? If not, could you please give us more details about exactly what do you need to know?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Cris.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 10:07:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16602#M7353</guid>
      <dc:creator>cristinamr</dc:creator>
      <dc:date>2021-02-11T10:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16603#M7354</link>
      <description>&lt;P&gt;Actually not.&amp;nbsp;ERR_DEPLOY_WORKFLOW seems to be just a constant holding an error message for a failed deployment.&lt;BR /&gt;&lt;BR /&gt;I mean that, in runtime, if a REST call task submits a request and reveices any other http status than OK it just hangs forever (if you don't attach a timer boundary event). Instead, it should throw a BPMNError so that the process could catch it and do something.&amp;nbsp; My question is why it does not do it?&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 10:25:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16603#M7354</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-11T10:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16604#M7355</link>
      <description>&lt;P&gt;And exceptions like this are just logged and the execution hangs:&lt;/P&gt;&lt;PRE&gt;org.activiti.engine.ActivitiException: error while converting: 897 to long
	at com.activiti.runtime.activiti.BaseRestCallDelegate.getFormattedLongValue(BaseRestCallDelegate.java:760)
	at com.activiti.runtime.activiti.BaseRestCallDelegate.createJSONRequestObject(BaseRestCallDelegate.java:307)&lt;/PRE&gt;&lt;P&gt;It would be nice to know why numbers cannot be converted to long...&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 11:37:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16604#M7355</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-11T11:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16605#M7356</link>
      <description>&lt;P&gt;&lt;A href="https://alfresco.atlassian.net/browse/MNT-18756" target="_blank" rel="nofollow noopener noreferrer"&gt;https://alfresco.atlassian.net/browse/MNT-18756&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Seems no work has been logged...&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2021 17:54:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16605#M7356</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-11T17:54:24Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16606#M7357</link>
      <description>&lt;P&gt;No, it does not. create your custom service (fo a service task) that does the rest call and throws appropriate errors as you may need.&lt;/P&gt;</description>
      <pubDate>Fri, 12 Feb 2021 11:24:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16606#M7357</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2021-02-12T11:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16607#M7358</link>
      <description>&lt;P&gt;Hi, do you have any example of&amp;nbsp;&lt;SPAN&gt;custom service task that does rest call?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 12:14:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16607#M7358</guid>
      <dc:creator>wojtekb</dc:creator>
      <dc:date>2021-02-17T12:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16608#M7359</link>
      <description>&lt;P&gt;you can use &lt;A href="https://www.baeldung.com/rest-template" target="_self" rel="nofollow noopener noreferrer"&gt;rest template&lt;/A&gt; to call rest apis from code. if you have stored your URLS in admin endpoint, use APS' endpointService to access them&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 05:23:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16608#M7359</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2021-02-18T05:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16609#M7360</link>
      <description>&lt;P&gt;Do you have an exaple of how to use EndpointService?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2021 14:11:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16609#M7360</guid>
      <dc:creator>esakilpi</dc:creator>
      <dc:date>2021-02-18T14:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Does REST call task throw BPMNError?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16610#M7361</link>
      <description>&lt;P&gt;AFAIK EndpointService belongs to enterprise apis (of APS). contact alfresco for APS javadocs to kown usage and other details,&lt;/P&gt;</description>
      <pubDate>Mon, 22 Feb 2021 04:34:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/does-rest-call-task-throw-bpmnerror/m-p/16610#M7361</guid>
      <dc:creator>abbask01</dc:creator>
      <dc:date>2021-02-22T04:34:43Z</dc:date>
    </item>
  </channel>
</rss>

