<?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: BusinessProcessEvent and variables in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162433#M116313</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Created a pull request for all these at &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/133" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/133&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Sep 2013 21:02:13 GMT</pubDate>
    <dc:creator>mandas</dc:creator>
    <dc:date>2013-09-19T21:02:13Z</dc:date>
    <item>
      <title>BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162428#M116308</link>
      <description>Hi,Is there any limitation in attaching DelegateExecution in BusinessProcessEvent in order for observers to be able to query/update process variables? ThanksDimitris</description>
      <pubDate>Sat, 14 Sep 2013 10:17:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162428#M116308</guid>
      <dc:creator>mandas</dc:creator>
      <dc:date>2013-09-14T10:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162429#M116309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hmm if an observer catches the event after transaction completion it won't find a valid DelegateExecution right?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2013 11:24:21 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162429#M116309</guid>
      <dc:creator>mandas</dc:creator>
      <dc:date>2013-09-14T11:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162430#M116310</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, my assumption was wrong. Let me explain you the use case, because this thread doesn't actually make any sense only a few hours after I 've started it &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://connect.hyland.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to get task id in a CDI observer through BusinessProcessEvent. My initial thought is that I couldn't, so I 've written some code to fire my own event carrying a DelegateTask to find task id, and some variables. I still believe that my custom code is needed for the following reasons :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* After @StartActivity, the task is created in a List&amp;lt;PersistentObject&amp;gt;, but it will only be flushed when @StartActivity observer end its work. So, I cannot use TaskService even though I 'm inside JTA container, and TaskService has been initialized with interceptors which don't require a new transaction. Using TransactionPhase.AFTER_SUCCESS is not an option in my case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* The only way to find my way out of this is to pass DelegateTask to my custom event class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Am I right? If yes, is there any plan for activiti to support such case? would it be useful if I would create a pull request with my custom addition to be included?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dimitris&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Sep 2013 17:55:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162430#M116310</guid>
      <dc:creator>mandas</dc:creator>
      <dc:date>2013-09-14T17:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162431#M116311</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That's right. The task is only flushed to the database when a wait state is encountered or the process was ended. So before that you can't query on a newly created task and you have to work with the DelegateTask.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If your pull request contains code to make it easier to get hold of a DelegateTask then that would certainly be helpful.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 07:45:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162431#M116311</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2013-09-16T07:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162432#M116312</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well there are two choices for implementing this :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;* Using neither CdiBusinessProcessEvent, nor BusinessProcessEvent : That is, to create another class for representing task events. It's more clear in terms of code, but it will be probably confusing to observe another hierarchy of process events.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;* The other solution requires to pass (and store) a VariableScope to CdiBusinessProcessEvent : However, as getting execution and process instance id is not feasible through VariableScope, I may have to modify VariableScope, ExecutionEntity and TaskEntity to use a visitor pattern to provide its own execution and process instance id.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using #1 is more isolated, however although #2 seems nice, it will introduce execution terms in variable which I don't know if it's desired.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Dimitris&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 20:12:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162432#M116312</guid>
      <dc:creator>mandas</dc:creator>
      <dc:date>2013-09-16T20:12:37Z</dc:date>
    </item>
    <item>
      <title>Re: BusinessProcessEvent and variables</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162433#M116313</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Created a pull request for all these at &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/pull/133" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/pull/133&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Sep 2013 21:02:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/businessprocessevent-and-variables/m-p/162433#M116313</guid>
      <dc:creator>mandas</dc:creator>
      <dc:date>2013-09-19T21:02:13Z</dc:date>
    </item>
  </channel>
</rss>

