cancel
Showing results for 
Search instead for 
Did you mean: 

Form Default Values

hheg8837
Champ in-the-making
Champ in-the-making
Hi,

I defined a process with some fields which should be prepopulated with defaul values.


      <extensionElements>
        <activiti:formProperty id="template" name="Template Name" type="string" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="vmname" name="Virtual Machine Name" type="string" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="path" name="Absolute Path to Folder" type="string" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="customspec" name="Customization Specification" type="string" value="XYZ" default="XYZ" required="true" readable="true" writable="false"></activiti:formProperty>
        <activiti:formProperty id="resourcepool" name="Resource Pool" type="string" value="XYZ" required="true" readable="true" writable="false"></activiti:formProperty>
        <activiti:formProperty id="cpu" name="CPU Count" type="string" default="1" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="limit" name="MHz Limit" type="string" default="800" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="ram" name="RAM Size" type="string" default="512" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="dvswitch" name="Distributed Virtual Switch" type="string" value="dvSwitch" required="true" readable="true" writable="false"></activiti:formProperty>
        <activiti:formProperty id="dvport" name="Port Group" type="string" value="XYZ" required="true" readable="true" writable="false"></activiti:formProperty>
        <activiti:formProperty id="ip" name="IP Address" type="string" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="mor" name="Managed Object Reference" type="string" required="false" readable="true" writable="false"></activiti:formProperty>
      </extensionElements>

Surprisingly, Activity Explorer ignores all default values and shows only empty text fields.

Could someone please explain, what I'm doing wrong?

Thank you in Advance!
Thomas
3 REPLIES 3

hheg8837
Champ in-the-making
Champ in-the-making
http://forums.activiti.org/en/viewtopic.php?f=6&t=3163

Uhm … this thread is 2 years old and nothing has happened yet?

frederikherema1
Star Contributor
Star Contributor
Something did happen, but not just for start-forms…

Not really the way to get help around here. Always happy to accept patches or insights in the problem rather than just stating the problem isn't fixed yet. That's the whole point off open source, mate Smiley Wink