<?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 Task Created by Timer Boundary in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123762#M87115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;want to ask is there any way to get the task created by Timer Boundary using service task?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BPMN Example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A href="http://img15.imageshack.us/img15/2480/screenshot20130402at506.png" rel="nofollow noopener noreferrer"&gt;http://img15.imageshack.us/img15/2480/screenshot20130402at506.png&lt;/A&gt;&lt;SPAN&gt;[/img]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User Order.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The worker received the order and must response with "Accept" or "Denied"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If Due, Service task will automatically generate response as "Canceled" and Interrupt the Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's the case.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using my own tables to show the Order Current Task. In one of the table there's a Task ID field which pointed to the task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which is why when User submitted an Order, I insert the params I need to my own table but still there's a Task ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, my question is how to get the "Order Canceled" Task ID while the task is auto generated by timer boundary?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Apr 2013 10:19:12 GMT</pubDate>
    <dc:creator>waqses</dc:creator>
    <dc:date>2013-04-02T10:19:12Z</dc:date>
    <item>
      <title>Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123762#M87115</link>
      <description>Hi All,want to ask is there any way to get the task created by Timer Boundary using service task?BPMN Example[img]http://img15.imageshack.us/img15/2480/screenshot20130402at506.png[/img]User Order.The worker received the order and must response with "Accept" or "Denied"If Due, Service task will autom</description>
      <pubDate>Tue, 02 Apr 2013 10:19:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123762#M87115</guid>
      <dc:creator>waqses</dc:creator>
      <dc:date>2013-04-02T10:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123763#M87116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;By "Order Canceled", you mean the service-task "Auto generate …"?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If it's a service-task, there is no task-id, only an "activity id", since there is no user-input required for a service-task, no UserTask is create.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 08:51:49 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123763#M87116</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-03T08:51:49Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123764#M87117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;By "Order Canceled", you mean the service-task "Auto generate …"?&lt;BR /&gt;&lt;BR /&gt;If it's a service-task, there is no task-id, only an "activity id", since there is no user-input required for a service-task, no UserTask is create.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi frederik and thanks for your reply,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm sorry for misguided "Order Canceled". I mean "Confirm Order Canceled".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Order Canceled" is a status that I need. The service-task "Auto Generate" is generating the params that hold the "Canceled" status and send it to the next task which is "Confirm Order Canceled".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yeah I know there is no task-id for service-task. What I would get is the task ID for "Confirm Order Canceled".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I already looked at the database, the service-task works just fine and it continue to task "Confirm Order Canceled" and again it works great, the task has been made and appear on ACT tables. But, like I told at the beginning, I'm using other tables that hold the params I need and also the Current Task ID.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need the "Confirm Order Canceled" Task ID that generated automatically and put it in my own tables.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank You once again.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 10:32:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123764#M87117</guid>
      <dc:creator>waqses</dc:creator>
      <dc:date>2013-04-03T10:32:54Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123765#M87118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Add a task-listener (&lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#taskListeners" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#taskListeners&lt;/A&gt;&lt;SPAN&gt;) on the create-event of the task you're interested in. When it's created, you get a callback with a delegateTask, which exposes it's ID. From here, you can write to your database (best to reuse the transaction activiti uses, in order to prevent your DB to be populated with a task-id that doesn't exist in case something goes wrong in activiti when/after creating the task).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 11:43:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123765#M87118</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-03T11:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123766#M87119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm sorry frederik but which task should I add the task-listener to? "Confirm Order Canceled" or "Receive and Confirm Order" task?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 04:04:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123766#M87119</guid>
      <dc:creator>waqses</dc:creator>
      <dc:date>2013-04-04T04:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123767#M87120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You should add a task-listener to the task you want to retrieve (and store in your DB) the task-id from.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 08:54:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123767#M87120</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-04T08:54:38Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123768#M87121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you so much frederik.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I got the Task ID but more problem occurred&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My Timer Boundary did not work when it reach the Due Date. How to Debug this thing??&amp;nbsp; :cry: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is my Listener Class&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;class ListenerTaskDue implements TaskListener {&lt;BR /&gt;&lt;BR /&gt; @Override&lt;BR /&gt; public void notify(DelegateTask delegateTask) {&lt;BR /&gt;&amp;nbsp; // TODO Auto-generated method stub&lt;BR /&gt;&amp;nbsp; System.out.println(delegateTask.getId());&lt;BR /&gt; }&lt;BR /&gt;}&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;SPAN&gt;I tested it by attaching this to "Received Order" Task and it worked. When the User submitted the order and the workflow moving to "Received Order" Task, it printed the Task ID of "Received Order" Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then I also attached this listener to "Confirm Order Canceled" Task, which is the Task that I want to retrieve the Task ID of it, and I waited for the timer to trigger by its own but nothing happened. The Task is not even moving from "Received Order" Task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any log for this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 04:08:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123768#M87121</guid>
      <dc:creator>waqses</dc:creator>
      <dc:date>2013-04-05T04:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Task Created by Timer Boundary</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123769#M87122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;How did you 'test' this? In a live-environment or using a unit-test?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regardless of what environment, you should validate if the activiti-config defines that de jobExecutor should be activated on startup. If you're using a unit-test, you can use ClockUtil to set the time the engine is using, to force a timer to trigger…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 10:59:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/task-created-by-timer-boundary/m-p/123769#M87122</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2013-04-05T10:59:32Z</dc:date>
    </item>
  </channel>
</rss>

