<?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: startProcessInstanceByMessage in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103095#M71834</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have exactly same issue. Trying to start a process with messageStartEvent.&amp;nbsp; This is how I am trigering the flow in my main method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public static void main(String[] args) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{ repositoryService.createDeployment().addClasspathResource("diagrams/messageProcess.bpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; processVariables1 = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; processVariables1.put("newCustomerId","Ram");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance = runtimeService.startProcessInstanceByMessage("newCustomerRequest", processVariables1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting exception:&amp;nbsp; Cannot start process instance by message: no subscription to message with name 'newCustomerRequest' found&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2013 12:09:08 GMT</pubDate>
    <dc:creator>monika_b</dc:creator>
    <dc:date>2013-12-05T12:09:08Z</dc:date>
    <item>
      <title>startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103091#M71830</link>
      <description>Hi,I'm trying to utilise a model containing a none start event and a message start event, which has a different entry point into the flow.In my unit test I'm therefore utilising the startProcessInstanceByMessage method on the runtime service and using the message name as defined against the process.</description>
      <pubDate>Thu, 08 Nov 2012 16:08:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103091#M71830</guid>
      <dc:creator>alistair</dc:creator>
      <dc:date>2012-11-08T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103092#M71831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How does your bpmn xml looks like regarding this start event?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 23:16:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103092#M71831</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2012-11-13T23:16:15Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103093#M71832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Below is my flow diagram. plz help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also can someone help how to post flow diagram in this forum?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This diagram I copied in MS word and saved as text file might not be useful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance for help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 07:13:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103093#M71832</guid>
      <dc:creator>monika_b</dc:creator>
      <dc:date>2013-12-05T07:13:10Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103094#M71833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The links you posted do not work for me. But you can have a look on following test in the git repository to see how signal start event works. Following example is not exactly the same, but maybe it can help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.test.bpmn.event.message.MessageStartEventTest#testMessageStartEventAndNoneStartEvent&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/fd1e6259142d8050f5ab3c7d81b33e303b1b85ef/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/message/MessageStartEventTest.java" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/fd1e6259142d8050f5ab3c7d81b33e303b1b85ef/modules/activiti-engine/src/test/java/org/activiti/engine/test/bpmn/event/message/MessageStartEventTest.java&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Martin&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 07:38:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103094#M71833</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-12-05T07:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103095#M71834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have exactly same issue. Trying to start a process with messageStartEvent.&amp;nbsp; This is how I am trigering the flow in my main method:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;public static void main(String[] args) &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{ repositoryService.createDeployment().addClasspathResource("diagrams/messageProcess.bpmn20.xml").deploy();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Map&amp;lt;String, Object&amp;gt; processVariables1 = new HashMap&amp;lt;String, Object&amp;gt;();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; processVariables1.put("newCustomerId","Ram");&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; ProcessInstance processInstance = runtimeService.startProcessInstanceByMessage("newCustomerRequest", processVariables1);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting exception:&amp;nbsp; Cannot start process instance by message: no subscription to message with name 'newCustomerRequest' found&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:09:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103095#M71834</guid>
      <dc:creator>monika_b</dc:creator>
      <dc:date>2013-12-05T12:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103096#M71835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think I got my answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From user Guide:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;b&amp;gt;Message start events are only supported on top-level processes. Message start events are not supported on embedded sub processes.&amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My usecase is: to halt at a wait state that should get triggered from outside (without user task) and continue the flow.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestion (please elaborate simple things also, m new to activiti) would be highly appreciated and very helpful. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, plz tell me how to upload my workflow images (without using google site if possible) on this forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:30:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103096#M71835</guid>
      <dc:creator>monika_b</dc:creator>
      <dc:date>2013-12-05T12:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103097#M71836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin. Had gone through the repository code.&amp;nbsp; I am now able to resolve my earlier issue now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But still i am facing issue in my new implementation.&amp;nbsp; Here I am having 'message start event inside a subprocess' thats gets triggered outside by java service task using 'runtimeService.startProcessInstanceByMessage("waitMessage");' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please help me why I am getting exception as &amp;lt;b&amp;gt;"Exception in thread "main" org.activiti.engine.ActivitiException: Cannot start process instance by message: no subscription to message with name 'waitMessage' found.". &amp;lt;/b&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks for any help..&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 12:30:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103097#M71836</guid>
      <dc:creator>monika_b</dc:creator>
      <dc:date>2013-12-05T12:30:44Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103098#M71837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Any suggestion (please elaborate simple things also, m new to activiti) would be highly appreciated and very helpful.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;May be this test can help you:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;org.activiti.engine.test.bpmn.event.signal.SignalEventTest#testSignalCatchIntermediateAsynch&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Also, plz tell me how to upload my workflow images (without using google site if possible) on this forum.&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;I use references… .&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2013 14:50:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103098#M71837</guid>
      <dc:creator>martin_grofcik</dc:creator>
      <dc:date>2013-12-05T14:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: startProcessInstanceByMessage</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103099#M71838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Martin. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Dec 2013 11:50:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/startprocessinstancebymessage/m-p/103099#M71838</guid>
      <dc:creator>monika_b</dc:creator>
      <dc:date>2013-12-06T11:50:48Z</dc:date>
    </item>
  </channel>
</rss>

