<?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 properly initialize a form property of type boolean? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89906#M61155</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In my process there is a loop with two user tasks: [attachment=0]Process Snippet.JPG[/attachment]). In the second user task a manager can verify the work performed as part of the first user task. When the work is not performed correctly the first user task should be re-created and so on. In order for the manager to specify wether the work is performed correctly I used the following form property:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;activiti:formProperty id="workCorrect" name="Work performed correct?" type="boolean" required="true"&amp;gt;&amp;lt;/activiti:formProperty&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The first time the manager claims the 'Verify work' user task and does not check the checkbox the 'Perform work' user task is recreated. However, the next time the manager claims the 'Verify work' user task in order to again verify the work performed as part of the first user task, the following exception is thrown when the activiti explorer tries to render the user task with the check box:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Caused by: java.lang.IllegalArgumentException: CheckBox only accepts Boolean values&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.vaadin.ui.Button.setInternalValue(Button.java:546)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; at com.vaadin.ui.AbstractField.setValue(AbstractField.java:493)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this only happens the second time around.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anybody have a suggestion on how to circumvent this exception?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe by using one of the 'value', 'expression' or 'default' atributes?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 May 2012 14:56:20 GMT</pubDate>
    <dc:creator>averberne</dc:creator>
    <dc:date>2012-05-02T14:56:20Z</dc:date>
    <item>
      <title>How to properly initialize a form property of type boolean?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89906#M61155</link>
      <description>In my process there is a loop with two user tasks: [attachment=0]Process Snippet.JPG[/attachment]). In the second user task a manager can verify the work performed as part of the first user task. When the work is not performed correctly the first user task should be re-created and so on. In order fo</description>
      <pubDate>Wed, 02 May 2012 14:56:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89906#M61155</guid>
      <dc:creator>averberne</dc:creator>
      <dc:date>2012-05-02T14:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly initialize a form property of type boolean?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89907#M61156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey! can you tell me what have you typed in the "condition" tab of the exclusive gateway?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyway you can use the enum form property with 2 options "YES" or "NO" instead of the boolean one, I think is better and i always use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2012 07:27:59 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89907#M61156</guid>
      <dc:creator>yz250</dc:creator>
      <dc:date>2012-05-08T07:27:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly initialize a form property of type boolean?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89908#M61157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The condition is not on the exclusive gateway but on the flows leaving the gateway offcourse. The condition I used on the flow going back is: ${!workCorrect}.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I know I can use the enum type instead but using a boolean seems more logical.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 06:36:10 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89908#M61157</guid>
      <dc:creator>averberne</dc:creator>
      <dc:date>2012-05-09T06:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly initialize a form property of type boolean?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89909#M61158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Right, the condition is on the flow not on the exclusive gateway, sorry my mistake.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mmm I don' t know the solution but I will work on it, any help from other users of the forum would be appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ivan.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 07:32:27 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89909#M61158</guid>
      <dc:creator>yz250</dc:creator>
      <dc:date>2012-05-09T07:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to properly initialize a form property of type boolean?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89910#M61159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Andy,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seems to be a bug in the Activiti Explorer. I saw some commits on trunk since 5.9 was released, so maybe this is already fixed now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you send me a process definition so I can test it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 May 2012 09:43:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/how-to-properly-initialize-a-form-property-of-type-boolean/m-p/89910#M61159</guid>
      <dc:creator>trademak</dc:creator>
      <dc:date>2012-05-09T09:43:53Z</dc:date>
    </item>
  </channel>
</rss>

