<?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: Form variable types in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34482#M18071</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that activiti explorer (and REST API) is using RuntimeService.startProcessInstanceById and TaskService.complete methods, which accept Map&amp;lt;String, Object&amp;gt; as parameters. The conversion from parameters passed to REST API (which include _type properties currently) is done in activiti-webapp-rest. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I think you can just use these methods and pass Boolean object as value in map. However, looking at source code it seems that these method do not insert some history date, as FormService does. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know when (and why) you should use FormService and when TaskService however…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Feb 2011 14:21:41 GMT</pubDate>
    <dc:creator>mproch</dc:creator>
    <dc:date>2011-02-23T14:21:41Z</dc:date>
    <item>
      <title>Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34476#M18065</link>
      <description>Hi,I have a question regarding the form variable types: I use the built in FormRenderer to render the forms and to display them inside our app. When submitted, I use submitStartFormData to start a new instance. I also pass the _type fields of the form.The method only accepts Map&amp;lt;String, String&amp;gt;</description>
      <pubDate>Fri, 18 Feb 2011 13:33:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34476#M18065</guid>
      <dc:creator>tbe</dc:creator>
      <dc:date>2011-02-18T13:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34477#M18066</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The type conversion is not based on the type_ properties that you submit. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The type conversion is specified in the process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://www.activiti.org/userguide/index.html#formProperties" rel="nofollow noopener noreferrer"&gt;http://www.activiti.org/userguide/index.html#formProperties&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 19:26:39 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34477#M18066</guid>
      <dc:creator>tombaeyens</dc:creator>
      <dc:date>2011-02-18T19:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34478#M18067</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;BR /&gt;&lt;SPAN&gt;I tried this also, but the manual doesn't list "boolean" as a supported type. I didn't find a way yet to create a boolean yes/no property in my form and to check it with a simple boolean expression (like ${approved}) in an exclusion gateway (but the vacation request example does it, even without form properties?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 15:14:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34478#M18067</guid>
      <dc:creator>tbe</dc:creator>
      <dc:date>2011-02-20T15:14:48Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34479#M18068</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If it is not in the docs and it does not work, it most likely is not implemented (yet)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Feb 2011 16:35:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34479#M18068</guid>
      <dc:creator>ronald_van_kuij</dc:creator>
      <dc:date>2011-02-20T16:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34480#M18069</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the example that is shipped in the distribution:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&amp;lt;select name="vacationApproved"&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="true"&amp;gt;Yes&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;option value="false"&amp;gt;No&amp;lt;/option&amp;gt;&lt;BR /&gt;&amp;lt;/select&amp;gt;&lt;BR /&gt;&amp;lt;input type="hidden" name="vacationApproved_type" value="Boolean" /&amp;gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Feb 2011 07:41:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34480#M18069</guid>
      <dc:creator>jbarrez</dc:creator>
      <dc:date>2011-02-21T07:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34481#M18070</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;BR /&gt;&lt;SPAN&gt;that's the example I used. But we use our own frontend instead of the activiti webapps. After the user commits a form, we use the FormService submit method (which only accepts a &amp;lt;String,String&amp;gt; map).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I still didn't get how to tell the system that "vacationApproved" is a boolean, because the _type args are unimportant and the form properties don't allow to declare a variable as boolean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tom&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 13:13:37 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34481#M18070</guid>
      <dc:creator>tbe</dc:creator>
      <dc:date>2011-02-23T13:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34482#M18071</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think that activiti explorer (and REST API) is using RuntimeService.startProcessInstanceById and TaskService.complete methods, which accept Map&amp;lt;String, Object&amp;gt; as parameters. The conversion from parameters passed to REST API (which include _type properties currently) is done in activiti-webapp-rest. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I think you can just use these methods and pass Boolean object as value in map. However, looking at source code it seems that these method do not insert some history date, as FormService does. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Don't know when (and why) you should use FormService and when TaskService however…&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:21:41 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34482#M18071</guid>
      <dc:creator>mproch</dc:creator>
      <dc:date>2011-02-23T14:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Form variable types</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34483#M18072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The form-properties were introduced to offer a more integrated approach on describing forms. With the properties, you can define the types etc. of the fields on the form, making it possible to have UI's create forms based on those values instead of using form-rendering. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, formproperties don't have to map one-to-one on variables. You can fill in a field on a form and have it be stored as another variable or have form-properties depend on other existing variables. When just completing a task using the taskService, ALL variables passed will be saved on the execution, and you have no real no fine-grained IN/OUT contol.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The form-properties typing mechanism is pluggable, so you can add custom form-types and supply your own string-object and visa-versa conversion, inside the engine. This way, all clients (rest, API) can just use Strings and conversion is done in the engine itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can offcourse just use taskService.completeTask() and pass variables, using strong-typed map, it's the easiest way to do this when you're invoking it using Java API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More on the form properties can be found in the userguide: &lt;/SPAN&gt;&lt;A href="http://activiti.org/userguide/index.html#formProperties" rel="nofollow noopener noreferrer"&gt;http://activiti.org/userguide/index.html#formProperties&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Feb 2011 14:30:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/form-variable-types/m-p/34483#M18072</guid>
      <dc:creator>frederikherema1</dc:creator>
      <dc:date>2011-02-23T14:30:14Z</dc:date>
    </item>
  </channel>
</rss>

