cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic Forms with Form Key Attribute

smee82
Champ in-the-making
Champ in-the-making
Hey guys,

i want to have dynamic forms for my tasks. I think i'm not really getting the idea of the user so guide. So i tried the following:

in my bpmn process file:
….
<process id="TheFlexibleFrog" name="TheFlexibleFrog">
    <documentation>Test a froggy dynamic dropdown menu.</documentation>
    <startEvent id="startevent1" name="Start"></startEvent>
    <endEvent id="endevent1" name="End"></endEvent>
    <userTask id="dynamic_dropdown" name="Dynamic Dropdown" activiti:assignee="kermit" activiti:formKey="main/resources/diagrams/FlexForm.xml"></userTask>
    <sequenceFlow id="flow1" name="" sourceRef="startevent1" targetRef="dynamic_dropdown"></sequenceFlow>
    <sequenceFlow id="flow2" name="" sourceRef="dynamic_dropdown" targetRef="endevent1"></sequenceFlow>
  </process>
…..

in an extra xml-file which i deloyes on my activi:
<?xml version="1.0" encoding="UTF-8"?>
<extensionElements>
        <activiti:formProperty id="no_frogs" name="Anzahl Frösche" type="long" variable="0" required="true" readable="true" writable="true"></activiti:formProperty>
        <activiti:formProperty id="zubereitungsart" name="Zubereitungsart" type="enum" required="true" readable="true" writable="true">
          <activiti:value id="gebraten" name="gebraten"></activiti:value>
          <activiti:value id="gekocht" name="gekocht"></activiti:value>
          <activiti:value id="frittiert" name="frittiert"></activiti:value>
        </activiti:formProperty>
</extensionElements>

But there are no form properties shown when i execute the process and complete the task.

Hope anyone understands my problem  :roll: Thanks.
10 REPLIES 10

smee82
Champ in-the-making
Champ in-the-making
Ok thanks, now i have the point now. Thought i would be possible without developing an own UI. This would have been a nice feature.