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:
This example uses Jakarta API. It is compatible with the latest releases of Camunda Tomcat and WildFly distributions.
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 id="inputFirstname"
required
type="text"
cam-variable-name="firstname"
cam-variable-type="String"
placeholder="John"
ng-minlength="2"
ng-maxlength="20" />
<input id="inputLoanAmount"
required
type="number"
cam-variable-name="loanAmount"
cam-variable-type="Double"
min="1000" />
<select id="selectLoanType" 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 id="inputAddress"
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 Platform distribution
- Go the Tasklist and start a process instance for the process named "Embedded Forms Quickstart"