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. As 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 the camunda Modeler:
This quickstart demonstrates the use of most of the supported form controls. See start-form.html for the complete example.
<input required
type="text"
cam-variable-name="firstname"
cam-variable-type="String"
placeholder="John"
ng-minlength="2"
ng-maxlength="20" />
<input required
type="number"
cam-variable-name="loanAmount"
cam-variable-type="Double"
min="1000" />
<select required cam-variable-name="loanType" cam-variable-type="String">
<option value="mortage" checked>Mortage Loan (5%)</option>
<option value="cashAdvance">Cash Advance (10%)</option>
</select>
<textarea cam-variable-name="address"
cam-variable-type="String"
rows="4"></textarea>
<script cam-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"