<?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 Figure out if an execution is signalable in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-an-execution-is-signalable/m-p/149115#M104129</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to somehow check if an execution will throw 'ActivitiException: this activity doesn't accept signals' before actually doing a signal? We would like to be able to handle this error in our project, but in our case cannot use exception handling.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2014 16:51:52 GMT</pubDate>
    <dc:creator>sdeb</dc:creator>
    <dc:date>2014-01-09T16:51:52Z</dc:date>
    <item>
      <title>Figure out if an execution is signalable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-an-execution-is-signalable/m-p/149115#M104129</link>
      <description>Is there a way to somehow check if an execution will throw 'ActivitiException: this activity doesn't accept signals' before actually doing a signal? We would like to be able to handle this error in our project, but in our case cannot use exception handling.Thanks in advance!</description>
      <pubDate>Thu, 09 Jan 2014 16:51:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-an-execution-is-signalable/m-p/149115#M104129</guid>
      <dc:creator>sdeb</dc:creator>
      <dc:date>2014-01-09T16:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: Figure out if an execution is signalable</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-an-execution-is-signalable/m-p/149116#M104130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;in case it's a signal-catching event with a signalRef associated in the BPMN.xml, you can do an execution query and ask for all signal event subscriptions:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;/** &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * Only select executions which have a signal event subscription &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * for the given signal name.&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * (The signalName is specified using the 'name' attribute of the signal element &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * in the BPMN 2.0 XML.)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; * &lt;BR /&gt;&amp;nbsp;&amp;nbsp; * @param signalName the name of the signal the execution has subscribed to&lt;BR /&gt;&amp;nbsp;&amp;nbsp; */&lt;BR /&gt;&amp;nbsp; ExecutionQuery signalEventSubscriptionName(String signalName);&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;For receive-tasks, this is not as straight-forward. One option is, if you know what activityId you're expecting to be "signallable", you can query for all executions waiting in that activity. Or, if you don't know what acitvityId it will be, you can loop over the possible executions matching and cross-reference the activityId with the BPMNModel associated with the process-definition (use managementService to get the model, these are cached in the engine, so no overhead when getting the same model twice).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:06:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/figure-out-if-an-execution-is-signalable/m-p/149116#M104130</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2014-01-10T11:06:17Z</dc:date>
    </item>
  </channel>
</rss>

