<?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 to pass a BusinessKey to a SignalStartEvent process definition? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217710#M170840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, my first inclination was close, but not perfect.!&amp;nbsp; Big "swing and a miss" on the ENTITY_INITIALIZED event.&amp;nbsp; But, here's how I was able to get a business key into my process that is started by a signal…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I created a 'reserved' process variable name, let's say "SIGNALSTARTEVENT_BUSINESSKEY"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Registered Process ExecutionListener for the "start" event on the process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ExecutionListener.notify() method I do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; I always use RuntimeService APIs to signalEventReceived(…….) overload API that takes the Map&amp;lt;String,Object&amp;gt; to include process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the process is started by the signal, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In the ExecutionListener.notify(), if a process variable exists, I call RuntimeService.updateBusinessKey() with the value of SIGNALSTARTEVENT_BUSINESSKEY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. And, then I call "execution.removeVariable(SIGNALSTARTEVENT_BUSINESSKEY)" to clean it out since it is no longer needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps others solve this problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Apr 2016 15:29:57 GMT</pubDate>
    <dc:creator>jwestra</dc:creator>
    <dc:date>2016-04-29T15:29:57Z</dc:date>
    <item>
      <title>How to pass a BusinessKey to a SignalStartEvent process definition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217709#M170839</link>
      <description>I'd like to kick off any number of processes that are subscribed to a signal name and started therefore by a SignalStartEvent.&amp;nbsp; I'd also like these process instances to have a "business key".However, there is no API to pass a business key in the numerous RuntimeService.signalEventReceived() overload</description>
      <pubDate>Thu, 28 Apr 2016 23:45:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217709#M170839</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-28T23:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a BusinessKey to a SignalStartEvent process definition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217710#M170840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, my first inclination was close, but not perfect.!&amp;nbsp; Big "swing and a miss" on the ENTITY_INITIALIZED event.&amp;nbsp; But, here's how I was able to get a business key into my process that is started by a signal…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;=======================================================================&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. I created a 'reserved' process variable name, let's say "SIGNALSTARTEVENT_BUSINESSKEY"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Registered Process ExecutionListener for the "start" event on the process definition.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the ExecutionListener.notify() method I do this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3.&amp;nbsp; I always use RuntimeService APIs to signalEventReceived(…….) overload API that takes the Map&amp;lt;String,Object&amp;gt; to include process variables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once the process is started by the signal, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. In the ExecutionListener.notify(), if a process variable exists, I call RuntimeService.updateBusinessKey() with the value of SIGNALSTARTEVENT_BUSINESSKEY.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. And, then I call "execution.removeVariable(SIGNALSTARTEVENT_BUSINESSKEY)" to clean it out since it is no longer needed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps others solve this problem!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jason&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Apr 2016 15:29:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217710#M170840</guid>
      <dc:creator>jwestra</dc:creator>
      <dc:date>2016-04-29T15:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to pass a BusinessKey to a SignalStartEvent process definition?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217711#M170841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for posting this, Using an execution listener with the map payload is indeed what I would do too.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 May 2016 12:27:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-pass-a-businesskey-to-a-signalstartevent-process/m-p/217711#M170841</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2016-05-03T12:27:00Z</dc:date>
    </item>
  </channel>
</rss>

