<?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: Timer Events based on task assignment in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60000#M36992</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't tell my boss, Tom, that I said what I'm about to say &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; Again, at your own risk…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, you should get hold of the command-context, in order to do stuff inside activiti-context, this can be done using the Process-engine (cast to ProcessEngineImpl).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, get hold of the ManagementSession using, get the JobEntity you need (using findById or something)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update the entity (set duedate), and save the entity using the DBSQLSessionFactory. No magic is performed, so mook at the way the ManagementSession works, that should get you a long way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 18:07:09 GMT</pubDate>
    <dc:creator>frederikherema1</dc:creator>
    <dc:date>2011-08-24T18:07:09Z</dc:date>
    <item>
      <title>Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59997#M36989</link>
      <description>Hi,Our customer has a request where once a task is assigned it can only sit with a person for a certain amount of time and then goes back to the queue (As there is no queue concept here, I managed this by setting the Assignee to null). Then the task can be picked up again by the same user, new user</description>
      <pubDate>Thu, 18 Aug 2011 22:20:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59997#M36989</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-18T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59998#M36990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm afraid not, that's just how the BPMN-spec works… you can, however, let the sequence-flow (when timer fires) go to a gateway that decides to go back to the user-task or do what the timer should do in case an assignee has been set. You can easilly set a variable 'wasAssigned' in a taskListener (event=assignee) and let the gateway act on that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Other solution is to alter the dueDate in the JobEntity table for the timer, but that will require using Impl stuff and probabily some dodgy stuff as well &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 08:54:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59998#M36990</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-24T08:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59999#M36991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well the gateway approach is not going to work. I was thinking of that at the beginning also. Because in order for that to work the user task has to be completed (so that it takes the next transition) But just getting an assignee cannot complete the task as the assignee has to do a unit of work and then complete the task.&amp;nbsp; So setting 'wasAssigned' in a taskListener will not really do anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The only way is to alter the dueDate in the JobEntity table for the timer in a tasklistener.&amp;nbsp; Can you assist me in some details as to the impl classes I need t use?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 13:59:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/59999#M36991</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-24T13:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60000#M36992</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Don't tell my boss, Tom, that I said what I'm about to say &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; Again, at your own risk…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;First, you should get hold of the command-context, in order to do stuff inside activiti-context, this can be done using the Process-engine (cast to ProcessEngineImpl).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Next, get hold of the ManagementSession using, get the JobEntity you need (using findById or something)…&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Update the entity (set duedate), and save the entity using the DBSQLSessionFactory. No magic is performed, so mook at the way the ManagementSession works, that should get you a long way.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 18:07:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60000#M36992</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-24T18:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60001#M36993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Wow. It is my happy day. Thank you so much. Since I am updating just the due date of the timer I doubt I will affect anything else (and I promise not to touch anything else&amp;nbsp; &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://connect.hyland.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the taskListner I have only a DelegateTask in the notify method. From that I am not sure how to get a Command Context etc. How do I do that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I could possibly get the processEngine directly and cast it as you say (as it is in the Weblogic JVM). But looking at the src for ProcessEngineImpl I do not see a way to get ManagementSession. If you can give some code snippets that would help a&amp;nbsp; lot.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks so much,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 15:44:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60001#M36993</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-29T15:44:43Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60002#M36994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should call use the static methods on Context object (org.activiti.engine.impl.context.Context) to get hold of the commandContext&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just call getSession(SessionClassYouNeed.class) on CommandContext&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 16:27:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60002#M36994</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-29T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60003#M36995</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks. Where do I find this ManagementSession that you describe above that I can take a look to see how DB updates are done?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Aug 2011 16:52:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60003#M36995</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-29T16:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60004#M36996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Activiti sourcecode… &lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Public SVN&lt;BR /&gt;&lt;BR /&gt;Our SVN repo has moved to codehaus!&lt;BR /&gt;&lt;BR /&gt;URL: &lt;A href="http://svn.codehaus.org/activiti" rel="nofollow noopener noreferrer"&gt;http://svn.codehaus.org/activiti&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Public anonymous access to the Activiti codebase. No username or password necessary.&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 07:34:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60004#M36996</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-08-31T07:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60005#M36997</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;There is a source.jar (activiti-engine-5.7-sources.jar)&amp;nbsp; file that gets installed in the lib directory . This seems to contain all the (or most of?) the source code? I just couldn't find the ManagementSession (if that is what it is actually named). Is that the correct name and what package could I find it?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Rue&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2011 18:12:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60005#M36997</guid>
      <dc:creator>ruedesilva</dc:creator>
      <dc:date>2011-08-31T18:12:06Z</dc:date>
    </item>
    <item>
      <title>Re: Timer Events based on task assignment</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60006#M36998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry, that's the old name… Use the JobManager :&lt;/SPAN&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;commandContext&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .getJobManager()&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2011 08:39:16 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/timer-events-based-on-task-assignment/m-p/60006#M36998</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-09-01T08:39:16Z</dc:date>
    </item>
  </channel>
</rss>

