This Quickstart demonstrates how to use the Embedded Forms Feature. Embedded Forms are plain HTML5 documents which can be loaded from your app and rendered embedded inside the camunda Tasklist:
Embedded Forms can be added to the web resources of a web application. Since we use maven, they are added to the src/main/webapp folder of your project.
Embedded Taskforms are referenced using the camunda:taskKey
property of a BPMN <startEvent>
or a BPMN <userTask>
:
<startEvent id="startEvent" camunda:formKey="embedded:app:start-form.html" name="Loan Request Received">
...
</startEvent>
The attribute can also be set through the properties panel using camunda modeler:
This quickstart demonstrates the use of most of the supported form controls. See start-form.html for the complete example.
<input form-field required type="text" name="firstname" placeholder="John" ng-minlength="2" ng-maxlength="20">
<input form-field type="number" name="loanAmount" required min="1000">
<select form-field type="string" name="loanType" required>
<option value="mortage" checked>Mortage Loan (5%)</option>
<option value="cashAdvance">Cash Advance (10%)</option>
</select>
<label class="radio inline">
<input form-field type="radio" name="gender" value="m">
Mr.
</label>
<label class="radio inline">
<input form-field type="radio" name="gender" value="w">
Mrs.
</label>
<textarea form-field name="address" rows="4"> </textarea>
<script form-script type="text/form-script">
...
</script>
- Checkout the project with Git
- Build the project with maven
- Deploy the war file to a camunda BPM platform distribution
- Go the the Tasklist and start a process instance for the process named "Embedded Forms Quickstart"