<?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 How to set a default task type in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31208#M13227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I have a workflow that requires all tasks to have additional information, which does not fit in the standard "&lt;SPAN&gt;bpm_workflowTask" that gets created by default by Alfresco. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I defined a different base task type, "my:baseTask", and added the additional slots for data there: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type name="my:baseTask"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;parent&amp;gt;bpm:workflowTask&amp;lt;/parent&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;properties&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;property name="my:data1"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;property name="my:data2"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;property name="my:data3"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;property name="my:data4"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;type&amp;gt;d:text&amp;lt;/type&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/property&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/properties&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/type&amp;gt;&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I also have some more specialised task types that inherit from this one. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Now, in my workflow, I have added&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #660e7a; background-color: #efefef; font-weight: bold;"&gt;activiti&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #efefef; font-weight: bold;"&gt;:formKey&lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #efefef; font-weight: bold;"&gt;="my:baseTask"&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;to all the tasks (user or service) that I have. Except, obviously, the ones that need a more specialised type of task. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The start of my workflow goes directly to the first service task. So far so good. At the end of that task, if everything went successfully, and we exit via one of the transitions onto the next task (which happens to be a user task of one of the more specific types), the resulting task if of a custom type and has all the data it needs on it. However - if an exception happen, it gets caught, and the task ends by taking a different transition, it ends up on a different user task, which should be of type baseTask .But it's not. It always ends up being a default Alfresco task, so the additional data that I need on that task gets lost. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any idea what I'm doing wrong? What's the easiest way of ensuring all tasks created in a workflow are of a given basic type, unless otherwise specified? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any help much appreciated. &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE style="background-color: #ffffff; color: #000000; font-family: 'Courier New'; font-size: 9.0pt;"&gt;&lt;SPAN style="color: #660e7a; background-color: #efefef; font-weight: bold;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Apr 2019 09:27:37 GMT</pubDate>
    <dc:creator>estela_garcia_p</dc:creator>
    <dc:date>2019-04-01T09:27:37Z</dc:date>
    <item>
      <title>How to set a default task type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31208#M13227</link>
      <description>Hello all,So, I have a workflow that requires all tasks to have additional information, which does not fit in the standard "bpm_workflowTask" that gets created by default by Alfresco. I defined a different base task type, "my:baseTask", and added the additional slots for data there: &amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type</description>
      <pubDate>Mon, 01 Apr 2019 09:27:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31208#M13227</guid>
      <dc:creator>estela_garcia_p</dc:creator>
      <dc:date>2019-04-01T09:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default task type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31209#M13228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's difficult give you any advice without see your model and process definition because probably they have some mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you override the default outcome property on your tasks model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Apr 2019 16:45:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31209#M13228</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-04-01T16:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default task type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31210#M13229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will attached an anonimised version of the model and the workflow.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite a novice to Alfresco and Activiti, and I've inherited this project so I'm not that familiar with it either. What exactly do you mean by overriding the default outcome property? How is that done? I can check whether that's been done or not.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 08:53:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31210#M13229</guid>
      <dc:creator>estela_garcia_p</dc:creator>
      <dc:date>2019-04-02T08:53:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to set a default task type</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31211#M13230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;It seems not to be any problem with definitión or model. Maybe the problem is in the forms ui definition in the file share-config-custom.xml. Can you upload this configuration?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Apr 2019 01:48:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/how-to-set-a-default-task-type/m-p/31211#M13230</guid>
      <dc:creator>roberto_gamiz</dc:creator>
      <dc:date>2019-04-08T01:48:08Z</dc:date>
    </item>
  </channel>
</rss>

