<?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 getBusinessKey() on DelegateExecution returns null in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56982#M34562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Since Activiti 5.6, it's possible to retrieve business key from DelegateExecution in JavaDelegate task, which is great! It works in most cases. However, I came across a case where delegateExecution.getBusinessKey() returns null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following definition:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;parallelGateway id="fork" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow140" sourceRef="fork" targetRef="meetingUserTask" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;sequenceFlow id="flow150" sourceRef="fork" targetRef="meetingDelegateTask" /&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;meetingUserTask refers to a user task and meetingDelegateTask refers to a JavaDelegate task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I try to retrieve the business key from meetingDelegateTask, I get null back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It seems like a bug, but maybe there is a work around for it. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Your help is greatly appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jun 2011 01:18:21 GMT</pubDate>
    <dc:creator>mesterlis</dc:creator>
    <dc:date>2011-06-28T01:18:21Z</dc:date>
    <item>
      <title>getBusinessKey() on DelegateExecution returns null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56982#M34562</link>
      <description>Since Activiti 5.6, it's possible to retrieve business key from DelegateExecution in JavaDelegate task, which is great! It works in most cases. However, I came across a case where delegateExecution.getBusinessKey() returns null. I have the following definition:&amp;lt;parallelGateway id="fork" /&amp;gt;&amp;lt;</description>
      <pubDate>Tue, 28 Jun 2011 01:18:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56982#M34562</guid>
      <dc:creator>mesterlis</dc:creator>
      <dc:date>2011-06-28T01:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: getBusinessKey() on DelegateExecution returns null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56983#M34563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see what the problem is… We have 2 DelegateExecution implementing classes. The ExecutionEntity returns it's own business-key member field, while the ExecutionImpl returns the businesskey retrieved from the processInstance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll reopen the issue &lt;/SPAN&gt;&lt;A href="http://jira.codehaus.org/browse/ACT-730" rel="nofollow noopener noreferrer"&gt;http://jira.codehaus.org/browse/ACT-730&lt;/A&gt;&lt;SPAN&gt; and fix it in 5.7 release. Since the getBusinessKey() is used in persistence, having the ExecutionEntity return the process-instance's businesskey on getBusinessKey() is not an option, it will probabily be called getProcessBusinessKey().&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 06:54:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56983#M34563</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-06-28T06:54:35Z</dc:date>
    </item>
    <item>
      <title>Re: getBusinessKey() on DelegateExecution returns null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56984#M34564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply and for the fix in 5.7! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the meantime to work around the issue, I am going to cheat by casting delegateExecution to ExecutionEntity:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;((ExecutionEntity)delegateExecution).getProcessInstance().getBusinessKey();&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jun 2011 18:54:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56984#M34564</guid>
      <dc:creator>mesterlis</dc:creator>
      <dc:date>2011-06-28T18:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: getBusinessKey() on DelegateExecution returns null</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56985#M34565</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;SPAN&gt;I am trying to get ProcessBusinesskey on startEvent of Process by ExecutionListener, but it is returning null. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;None of them works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.getProcessBusinessKey()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;execution.getBusinessKey()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pls, can you suggest method to do it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2016 03:43:35 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/getbusinesskey-on-delegateexecution-returns-null/m-p/56985#M34565</guid>
      <dc:creator>yerbol777</dc:creator>
      <dc:date>2016-07-07T03:43:35Z</dc:date>
    </item>
  </channel>
</rss>

