<?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: Queries from 'start' executionListener on first user task. in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16398#M7302</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;BR /&gt;&lt;SPAN&gt;Nothing is persisted until a wait-state is reached (or the end of the process) so in the listeners, nothing will be flushed to the database (transaction won't be committed). It's not possible to use any API methods (eg. query for timers) from inside listener, this will use another transaction an won't see the changes in the DB, which are pending in the uncommitted transaction used by the process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What functionality are you trying to accomplish?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Feb 2011 17:28:46 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-02-05T17:28:46Z</dc:date>
    <item>
      <title>Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16397#M7301</link>
      <description>I have a process that goes:start-&amp;gt; manual task -&amp;gt; user task -&amp;gt; exclusive gateway -&amp;gt; stuff that doesn't matter -&amp;gt; end.I've put a "start" event execution listener on the first user task. The problem I'm having is, the engine doesn't seem to persist anything until some point past that li</description>
      <pubDate>Fri, 04 Feb 2011 23:58:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16397#M7301</guid>
      <dc:creator>jenguran</dc:creator>
      <dc:date>2011-02-04T23:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16398#M7302</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;BR /&gt;&lt;SPAN&gt;Nothing is persisted until a wait-state is reached (or the end of the process) so in the listeners, nothing will be flushed to the database (transaction won't be committed). It's not possible to use any API methods (eg. query for timers) from inside listener, this will use another transaction an won't see the changes in the DB, which are pending in the uncommitted transaction used by the process execution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What functionality are you trying to accomplish?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Feb 2011 17:28:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16398#M7302</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-05T17:28:46Z</dc:date>
    </item>
    <item>
      <title>Re: Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16399#M7303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello, thanks for the reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to drop a message on our service bus when we enter a user task. The message would have the name of the process, business key, the user task just entered and the last task finished.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 16:56:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16399#M7303</guid>
      <dc:creator>jenguran</dc:creator>
      <dc:date>2011-02-07T16:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16400#M7304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe you can try the folowing:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;LI&gt;When a task is finished, set a execution-variable with the task's ID (or some other stuff that you need) in an taskListener on the task, event=complete (delegateTask.getExection().setVariableLocally()).&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;When the next task starts, you can use a taskListener, event=start, to send the message you want. Using the passed delegateTask, you can get hold of the variables: delegateTask.getExecution().getVariable('lastFinishedTask'). Info of the current started task is found in the delegateTask itself.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 07:16:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16400#M7304</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-23T07:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16401#M7305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Not allowing to query "fresh" data about the process/task trough an executionListener/taskListener seem to limit the usefulness of those…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have the following scenario: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My ProcessListener is listening to process "end" events to register internally the time and duration of that process instance. I won't be able to do that at the most obvious time: upon process completion. I'm thinking of using that listener only to put the process instance id on some "to be updated" queue so I can later on process what was added to that queue, creating a period of inconsistency on my system.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2014 19:52:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16401#M7305</guid>
      <dc:creator>hendrix</dc:creator>
      <dc:date>2014-06-18T19:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: Queries from 'start' executionListener on first user task.</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16402#M7306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;An option would be to add an async manual task at the end of your process definition (before the end event) and add an execution listener there. Then all previous data of the process instance is persisted, so you should be able to query anything you are looking for.&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>Thu, 19 Jun 2014 17:03:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/queries-from-start-executionlistener-on-first-user-task/m-p/16402#M7306</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-06-19T17:03:08Z</dc:date>
    </item>
  </channel>
</rss>

