<?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: Extends EnumFormType in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183963#M137093</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the type of extended type are: "serializable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to overload somewhere the base type ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Dec 2014 15:31:56 GMT</pubDate>
    <dc:creator>marcantoine</dc:creator>
    <dc:date>2014-12-08T15:31:56Z</dc:date>
    <item>
      <title>Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183958#M137088</link>
      <description>Hi,I wan't to create a new custom form type.I need a list a values (list of companies available on a database).For that I want to create an type based on EnumFormType. I can create a new type in may form and it will appear correctly loaded (not via activiti-explorer but via activiti-rest - I think i</description>
      <pubDate>Wed, 12 Nov 2014 17:13:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183958#M137088</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-11-12T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183959#M137089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arter properties are submitted, they will be stored as regular process variables in your process instance. You can access them via the rest api as regular variables from that point on.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2014 22:34:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183959#M137089</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-11-19T22:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183960#M137090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In fact the current problem is based on enum type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to define a new Enum type named Companies to create a specific list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but as i can see the code here: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/form/FormTypes.java#L44" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-engine/src/main/java/org/activiti/engine/impl/form/FormTypes.java#L44&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Values in the form are only asked to the formType if the type name is "enum".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to define the name as a companies but defined as an enum to get the call of the method: getInformation("values") ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:57:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183960#M137090</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-11-27T12:57:32Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183961#M137091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ok i see. Isn't it possible to register your own type with the 'formTypes' map above there?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If not, can you provide a bit of code here so we can try it out?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Dec 2014 15:01:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183961#M137091</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-05T15:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183962#M137092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I publish some code for that here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/MarcAntoine-Arnaud/activiti-tests" rel="nofollow noopener noreferrer"&gt;https://github.com/MarcAntoine-Arnaud/activiti-tests&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can also found the jar in releases:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="https://github.com/MarcAntoine-Arnaud/activiti-tests/releases" rel="nofollow noopener noreferrer"&gt;https://github.com/MarcAntoine-Arnaud/activiti-tests/releases&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can comment or send some pull request if you found some bad code &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 11:01:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183962#M137092</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-12-08T11:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183963#M137093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think the type of extended type are: "serializable"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to overload somewhere the base type ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Dec 2014 15:31:56 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183963#M137093</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-12-08T15:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183964#M137094</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I look on Activiti-Explorer and it work fine to list every values with this implementation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But using the Rest-API with the call on:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;form/form-data?processDefinitionId=formExtension:2:60132&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;values are empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to create a patch to insert values here ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I see in the code &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/form/FormDataResource.java#L68" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/form/FormDataResource.java#L68&lt;/A&gt;&lt;SPAN&gt; who the method will call &amp;lt;code&amp;gt;getStartFormData(String processDefinitionId)&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And this code don't use the Property Renderer to get values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to have the best way to implement/update that and to send you a pull request ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2014 12:46:28 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183964#M137094</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-12-11T12:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183965#M137095</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Marc-Antoine,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the delay, been traveling the last couple of days and zero time to check on this issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, so you've done some nice investigation and you are right. The reason why it works in Explorer is because of the renderer that is used there. Now the problem is of course, we can't add the renderers to the&amp;nbsp; REST api, cause it used UI elements and it doesn't really 'render' anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So two things here:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- Is it a decision to use the form properties vs the form key approach? it seems you are not using Explorer, right? With the form key approach you're pretty open to do whatever you want (which is also what we use in the commercial Activiti product).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- I think the problem is actually this bit of code indeed: &lt;/SPAN&gt;&lt;A href="https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/RestResponseFactory.java#L680" rel="nofollow noopener noreferrer"&gt;https://github.com/Activiti/Activiti/blob/master/modules/activiti-rest/src/main/java/org/activiti/rest/service/api/RestResponseFactory.java#L680&lt;/A&gt;&lt;SPAN&gt; . For enums, special care is taken, but not for custom types. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As a short term-workaround, have you tried to let the getName() method return 'enum', instead of 'compagnies' ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;code&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; public String getName() {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return "enum";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;/code&amp;gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 11:19:42 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183965#M137095</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2014-12-16T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Extends EnumFormType</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183966#M137096</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Joram,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No problem about he delay &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I understand the problem around the rendering. I supposed that before but not sure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What do ou mean by form key ? Because I set an formKey value to use form in start or user task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible to define a template form and use it in workflows definitions ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have any simple example ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The case to set the name with "enum", I have no idea how to consume this resource in the form instead the basic enum type.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;And with the link you mentioned, it will be correct if we can overload the getType() method to return "enum" with a getName which return "companies" for example. But actually i's impossible.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And yes of course I use activiti-rest API to integrate the BPM product in our frontend product.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2014 12:25:58 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/extends-enumformtype/m-p/183966#M137096</guid>
      <dc:creator>marcantoine</dc:creator>
      <dc:date>2014-12-16T12:25:58Z</dc:date>
    </item>
  </channel>
</rss>

