<?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 Start a process instance using Signal instead of Message in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148698#M103798</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am developing a new feature for our product which involves starting a process instance when something in the system (product) happens. So this is an external trigger from Activiti point of view.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have read the User Guide, and also found some hints in the forum.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;After trying to understand, i have some questions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that there is a MessageStartEvent which allows a process to be started when the Activiti Engine receives a message. I am able to start my process when calling &lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;getProcessEngine().getRuntimeService().startProcessInstanceByMessage('autoStart')&lt;SPAN class="line-numbers-rows"&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;Also querying the Engine to see which process instance is "listening" to that _unique_ message, I get my process returned, so everything if OK until now&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;getProcessEngine().getRepositoryService().createProcessDefinitionQuery().messageEventSubscription("autoStart").singleResult()&lt;SPAN class="line-numbers-rows"&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;In the documentation is stated that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;The name of the message start event must be unique across all deployed process definitions. Activiti throws an exception upon deployment of a process definition such that one or more message start events reference a message with the same name as a message start event already deployed by a different process definition. &lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to do the same, but instead using Messages (which have to be unique across all deployments within the engine) I'd like to use Events. One of my usecases would be that I want to start several different processes when the engine receives a message (the same message).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I don't see any start node which listens for an Event, so I am stuck here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I also see that querying for registered Signals is done using RuntimeService, and for querying listening Messages the RepositoryService is used.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any hints or clarifications would be very helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorin B.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 May 2013 00:47:24 GMT</pubDate>
    <dc:creator>sorinello</dc:creator>
    <dc:date>2013-05-04T00:47:24Z</dc:date>
    <item>
      <title>Start a process instance using Signal instead of Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148698#M103798</link>
      <description>Hello,I am developing a new feature for our product which involves starting a process instance when something in the system (product) happens. So this is an external trigger from Activiti point of view.I have read the User Guide, and also found some hints in the forum.After trying to understand, i h</description>
      <pubDate>Sat, 04 May 2013 00:47:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148698#M103798</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-04T00:47:24Z</dc:date>
    </item>
    <item>
      <title>Re: Start a process instance using Signal instead of Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148699#M103799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Why can't you simply have some queue for those events and call the startProcessInstanceByMessage accordingly?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or am I not understanding your use case correct?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 09:43:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148699#M103799</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2013-05-06T09:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Start a process instance using Signal instead of Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148700#M103800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This might be the case, but i wanted to know exactly the diference between Messages and Signals before making a decision.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Messages are sent to the Engine which starts the proces intances and Signals are _only_ for already running proceses ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I understanding properly ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2013 14:01:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148700#M103800</guid>
      <dc:creator>sorinello</dc:creator>
      <dc:date>2013-05-06T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: Start a process instance using Signal instead of Message</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148701#M103801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, that's how it is currently implemented in Activiti.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 07:30:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/start-a-process-instance-using-signal-instead-of-message/m-p/148701#M103801</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-05-08T07:30:44Z</dc:date>
    </item>
  </channel>
</rss>

