Skip to main content
Version: Next

Forms

Forms define the fields shown to users in the Task Portal. They are versioned by a stable formId, so a process can reference the latest deployed version without changing the process definition.

Design the form visually with the Form Modeler. Its reference covers every field type, validation setting, document control, preview, schema editing, import, export, and deployment.

Deploy a form​

curl -X POST http://localhost:8080/forms \
-H "Authorization: Bearer $TOKEN" \
-H 'Content-Type: application/json' \
-d '{
"formId": "expenseReview",
"name": "Expense Review",
"schema": {
"type": "object",
"title": "Expense Review",
"required": ["approved"],
"properties": {
"approved": { "type": "boolean", "title": "Approve request" },
"comment": { "type": "string", "title": "Manager comment" }
}
}
}'

Attach a form to a user task​

Set config.formId on a HumanTask node:

{
"id": "manager-review",
"name": "Manager Review",
"type": "HumanTask",
"config": {
"assignee": "manager",
"formId": "expenseReview"
}
}

Field types​

The Task Portal supports standard JSON-schema-style fields and Easy BPM file fields.

Field typeUse for
stringShort text values.
numberNumeric values.
booleanCheckbox or true/false input.
textLonger comments.
radioSingle choice with visible options.
selectSingle choice dropdown.
dateDate input.
fileUploadUpload a document and store document metadata.
fileDownloadProvide a downloadable document reference.
pdfViewerPreview PDF documents inline.

Retrieve forms​

curl "http://localhost:8080/forms/latest?formId=expenseReview" \
-H "Authorization: Bearer $TOKEN"
curl "http://localhost:8080/forms?formId=expenseReview" \
-H "Authorization: Bearer $TOKEN"