<?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 Questions around Design pattern and usage of Event Handler which are introduced in 5.15 in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190314#M143444</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;USECASE:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] We have software system where we can create tasks and these tasks contains data about domain specific stuff.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] We want to use Activiti as workflow engine for our tasks.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[3] Also we want that when a process instance is created and task are created in activiti system , tasks in our system should get created with correct assigned people, due date and priorities and also task in activiti should get correct "related content" based on what our system returns.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[4] We also want that we can filter Task for which we need to create corresponding task in our system.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[5] Also give user the ability to create new task in activiti which are not part of a process instance and&amp;nbsp; user can decide whether he want to create a task in our system for this particular task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[6] when user is done with the task , he can click a custom button on our system and task in activiti gets completed/or go in different state.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For this we are looking at using Event Handler that were introduced in 5.15.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Our Plan:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[1] Listen for all type of events and when we find an event related to task we either create or update task in our system with same taskId.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[2] Data return by our system is then saved into the task object either in variables or in "related content"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; Is it ok to modify task object in event handlers ?&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt; How to set/get related content from task object ?&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;[3] When user is done with work he will click a custom button on our system and we will use rest-api to complete that task in activiti.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does above design pattern is good for our use case or is there a better way to achieve it ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the best way to filter out task: USECASE STEP [4] and [5].&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for reading this post!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Jul 2014 09:38:12 GMT</pubDate>
    <dc:creator>bhuvangupta</dc:creator>
    <dc:date>2014-07-11T09:38:12Z</dc:date>
    <item>
      <title>Questions around Design pattern and usage of Event Handler which are introduced in 5.15</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190314#M143444</link>
      <description>USECASE:[1] We have software system where we can create tasks and these tasks contains data about domain specific stuff.[2] We want to use Activiti as workflow engine for our tasks.[3] Also we want that when a process instance is created and task are created in activiti system , tasks in our system</description>
      <pubDate>Fri, 11 Jul 2014 09:38:12 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190314#M143444</guid>
      <dc:creator>bhuvangupta</dc:creator>
      <dc:date>2014-07-11T09:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Questions around Design pattern and usage of Event Handler which are introduced in 5.15</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190315#M143445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well, it would be better to work with the Activiti service interfaces like the TaskService and RuntimeService to add variables. Filtering on the task events you want to handle should be done in the event handler implementation.&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, 21 Jul 2014 10:31:02 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190315#M143445</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2014-07-21T10:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: Questions around Design pattern and usage of Event Handler which are introduced in 5.15</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190316#M143446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;Well, it would be better to work with the Activiti service interfaces like the TaskService and RuntimeService to add variables&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sense.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;Filtering on the task events you want to handle should be done in the event handler implementation&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which event handler you are referring to::: " the task listeners" or the "new event api" ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you are referring to "the task listeners" than according to my understanding it does not provides event on very activity on a task like changing description… so in the case "new event api" is the only way out..it that correct ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Jul 2014 12:10:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190316#M143446</guid>
      <dc:creator>bhuvangupta</dc:creator>
      <dc:date>2014-07-21T12:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: Questions around Design pattern and usage of Event Handler which are introduced in 5.15</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190317#M143447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I believe he means the new event api (not task listeners) indeed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 07:04:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/questions-around-design-pattern-and-usage-of-event-handler-which/m-p/190317#M143447</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-07-25T07:04:03Z</dc:date>
    </item>
  </channel>
</rss>

