<?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: Get task forms from RuntimeEventListener implementation in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9050#M4084</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;APS uses a custom form service. If you designed and deployed the process in an APS app you should use AlfrescoTaskFormService.getTaskForm(taskId) instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 09:52:41 GMT</pubDate>
    <dc:creator>bassam_al-saror</dc:creator>
    <dc:date>2018-02-23T09:52:41Z</dc:date>
    <item>
      <title>Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9049#M4083</link>
      <description>I'm using Alfresco Process Services 1.7I've implemented a RuntimeEventListener for process lifecycle events and publish them out to a Kafka stream. It's working, but I was unable to fetch task's task_form on TASK_CREATED and/or TASK_COMPLETED events. I figured I'd be able to retrieve the task form w</description>
      <pubDate>Fri, 23 Feb 2018 00:39:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9049#M4083</guid>
      <dc:creator>apita</dc:creator>
      <dc:date>2018-02-23T00:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9050#M4084</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;APS uses a custom form service. If you designed and deployed the process in an APS app you should use AlfrescoTaskFormService.getTaskForm(taskId) instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 09:52:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9050#M4084</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-02-23T09:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9051#M4085</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, try wiring com.activiti.service.runtime.SubmittedFormService and use submittedFormService .getTaskSubmittedForm(taskId) for task complete events&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 16:25:57 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9051#M4085</guid>
      <dc:creator>cjose</dc:creator>
      <dc:date>2018-02-23T16:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9052#M4086</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running your code on &lt;STRONG&gt;TASK_CREATED&lt;/STRONG&gt; events inside the onEvent method of my RuntimeEventListener implementation. I successfully get the taskId, but I always get a similar error.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Task task = (Task) ((ActivitiEntityEvent) event).getEntity();&lt;BR /&gt;String taskId = task.getId(); // returns&amp;nbsp;&lt;SPAN&gt;192507&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;FormDefinitionRepresentation taskForm = alfrescoTaskFormService.getTaskForm(taskId);&lt;/PRE&gt;&lt;P&gt;05:44:43,068 [http-nio-8080-exec-10] WARN org.activiti.engine.delegate.event.impl.ActivitiEventSupport - Exception while executing event-listener, which was ignored&lt;BR /&gt;&lt;STRONG&gt;com.activiti.service.exception.NotFoundException: No task with id 192507 exists&lt;/STRONG&gt;&lt;BR /&gt; at com.activiti.service.runtime.PermissionService.validateReadPermissionOnTask(PermissionService.java:95)&lt;BR /&gt; at com.activiti.service.runtime.AlfrescoTaskFormService.getTaskForm(AlfrescoTaskFormService.java:131)&lt;BR /&gt; at com.activiti.extension.bean.EagleEventListener.publishEvent(EagleEventListener.java:174)&lt;BR /&gt; at com.activiti.extension.bean.EagleEventListener.onEvent(EagleEventListener.java:350)&lt;BR /&gt;...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Feb 2018 22:54:03 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9052#M4086</guid>
      <dc:creator>apita</dc:creator>
      <dc:date>2018-02-25T22:54:03Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9053#M4087</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. This works great for TASK_COMPLETED events, but I'm still having trouble fetching task forms on TASK_CREATED events.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 25 Feb 2018 23:25:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9053#M4087</guid>
      <dc:creator>apita</dc:creator>
      <dc:date>2018-02-25T23:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9054#M4088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems that the event is triggered before the form is created. If&amp;nbsp;assignee is set&amp;nbsp;on the task you can try&amp;nbsp;TASK_ASSIGNED event.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 10:16:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9054#M4088</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-02-26T10:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9055#M4089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I get the exact same error on TASK_ASSIGNED events. Any other suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 16:50:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9055#M4089</guid>
      <dc:creator>apita</dc:creator>
      <dc:date>2018-02-26T16:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9056#M4090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From the log trace you provided it seems to be a permissions issue. It can't find the history task because it's&amp;nbsp;hasn't been created yet. You can get the form directly using the F&lt;SPAN&gt;ormStoreService&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;formStoreService&lt;/SPAN&gt;.getForm(&lt;SPAN class=""&gt;delegateTask&lt;/SPAN&gt;.getFormKey());&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 22:21:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9056#M4090</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-02-26T22:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9057#M4091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This worked on TASK_ASSIGNED events. I simply passed in task.getFormKey() to&amp;nbsp;&lt;SPAN class="" style="color: #727174; background-color: #ffffff; border: 0px;"&gt;formStoreService&lt;/SPAN&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;.getForm. Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Feb 2018 23:59:43 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9057#M4091</guid>
      <dc:creator>apita</dc:creator>
      <dc:date>2018-02-26T23:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9058#M4092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that helped. Btw, that should work for any task event, it&amp;nbsp;will provide the form regardless of the task state.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Feb 2018 00:52:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9058#M4092</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-02-27T00:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9059#M4093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apologies if the question seems too basic or invalid. I am new to Activiti and BPM.&lt;/P&gt;&lt;P&gt;I have an event listner and getting&amp;nbsp; ActivitiEvent object.&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #ffffff; font-size: 9.0pt;"&gt;ActivitiEvent event&lt;/PRE&gt;&lt;P&gt;How to get&amp;nbsp;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;delegateTask object from it?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #727174; background-color: #ffffff;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 12:52:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9059#M4093</guid>
      <dc:creator>sampopes</dc:creator>
      <dc:date>2018-07-13T12:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Get task forms from RuntimeEventListener implementation</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9060#M4094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can get the entity which should be a TaskEntity if it's&amp;nbsp;ActivitiEntityEvent event and task related (i.e. type is&amp;nbsp;ActivitiEventType.&lt;SPAN class=""&gt;TASK_CREATED).&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;TaskEntity &lt;SPAN class=""&gt;task&lt;/SPAN&gt; = (TaskEntity) ((ActivitiEntityEvent) &lt;SPAN class=""&gt;event&lt;/SPAN&gt;).getEntity();&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2018 09:19:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/get-task-forms-from-runtimeeventlistener-implementation/m-p/9060#M4094</guid>
      <dc:creator>bassam_al-saror</dc:creator>
      <dc:date>2018-07-16T09:19:36Z</dc:date>
    </item>
  </channel>
</rss>

