<?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 can I start a process and get response before arriving to wait state in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23196#M10132</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;B&gt;Greg Harley&lt;/B&gt;‌ for the immediate response. Sorry for my delay...&lt;/P&gt;&lt;P&gt;I have problem with using the message start event because that mean defining every WF with 'message start event'.&amp;nbsp;It has cost&amp;nbsp;of complication in WF construction (&lt;SPAN&gt;WF construction &lt;/SPAN&gt;is done by system users)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue - I use this rest call (start process instance) also&amp;nbsp;for 'errors handling'.&lt;/P&gt;&lt;P&gt;For now, I know how to catch errors occur in service tasks by two POST rest calls - complete task &amp;amp; start process.&lt;/P&gt;&lt;P&gt;Mean by the rest call of 'Start process' - I able to catch,&amp;nbsp;in my system, errors occur in service tasks&amp;nbsp;locating at the beginning of the process (before reaching wait state).&lt;/P&gt;&lt;P&gt;Strangely, I can not catch errors by 'ACTIVITY_ERROR_RECEIVED' event&lt;SPAN style="color: #6d6e71; background-color: #ffffff; font-size: 16px;"&gt;&amp;nbsp;i&lt;/SPAN&gt;n Active MQ.&lt;/P&gt;&lt;P style="direction: ltr;"&gt;If I will use fire and forget I will cut this "errors stream" and that is not good...&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Do you have any idea&amp;nbsp;for my problems?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Thank you,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Maayan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 May 2017 11:32:51 GMT</pubDate>
    <dc:creator>maayanl</dc:creator>
    <dc:date>2017-05-08T11:32:51Z</dc:date>
    <item>
      <title>How can I start a process and get response before arriving to wait state</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23194#M10130</link>
      <description>Hello,I designed a very long and complex WF with up to 30 service tasks at the beginning and then user task.When I run the WF through Activiti-Explorer the WF run just fine.But, When I run the WF through Activiti-Rest, I get Internal server error 500.This phenomenon happened again with WF that start</description>
      <pubDate>Wed, 03 May 2017 11:42:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23194#M10130</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-05-03T11:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: How can I start a process and get response before arriving to wait state</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23195#M10131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use a message start event rather than starting it in a regular fashion.&lt;/P&gt;&lt;P&gt;With the message start event, it is simply a fire and forget, the process will complete in it's own good time and you will get an immediate response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So....&lt;/P&gt;&lt;P&gt;1. Change the model to use a message start event (it can be in addition to the regular start event if you want).&lt;/P&gt;&lt;P&gt;2. When calling from REST, use the URL:&lt;BR /&gt;POST &lt;A href="http://&amp;lt;host&amp;gt;&amp;lt;port&amp;gt;" rel="nofollow noopener noreferrer"&gt;http://&amp;lt;host&amp;gt;:&amp;lt;port&amp;gt;/service/runtime/process-instances&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;POST Payload:&lt;/P&gt;&lt;P&gt;{ "message":"newOrderMessage", "businessKey":"myBusinessKey", "tenantId": "tenant_1", "variables": [ { "name":"myVar", "value":"This is a variable", } ] }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 20:05:34 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23195#M10131</guid>
      <dc:creator>gdharley</dc:creator>
      <dc:date>2017-05-03T20:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I start a process and get response before arriving to wait state</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23196#M10132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks &lt;B&gt;Greg Harley&lt;/B&gt;‌ for the immediate response. Sorry for my delay...&lt;/P&gt;&lt;P&gt;I have problem with using the message start event because that mean defining every WF with 'message start event'.&amp;nbsp;It has cost&amp;nbsp;of complication in WF construction (&lt;SPAN&gt;WF construction &lt;/SPAN&gt;is done by system users)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another issue - I use this rest call (start process instance) also&amp;nbsp;for 'errors handling'.&lt;/P&gt;&lt;P&gt;For now, I know how to catch errors occur in service tasks by two POST rest calls - complete task &amp;amp; start process.&lt;/P&gt;&lt;P&gt;Mean by the rest call of 'Start process' - I able to catch,&amp;nbsp;in my system, errors occur in service tasks&amp;nbsp;locating at the beginning of the process (before reaching wait state).&lt;/P&gt;&lt;P&gt;Strangely, I can not catch errors by 'ACTIVITY_ERROR_RECEIVED' event&lt;SPAN style="color: #6d6e71; background-color: #ffffff; font-size: 16px;"&gt;&amp;nbsp;i&lt;/SPAN&gt;n Active MQ.&lt;/P&gt;&lt;P style="direction: ltr;"&gt;If I will use fire and forget I will cut this "errors stream" and that is not good...&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Do you have any idea&amp;nbsp;for my problems?&lt;/P&gt;&lt;P style="direction: ltr;"&gt;&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Thank you,&lt;/P&gt;&lt;P style="direction: ltr;"&gt;Maayan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 May 2017 11:32:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-can-i-start-a-process-and-get-response-before-arriving-to/m-p/23196#M10132</guid>
      <dc:creator>maayanl</dc:creator>
      <dc:date>2017-05-08T11:32:51Z</dc:date>
    </item>
  </channel>
</rss>

