Task decision
Answers to a process task right on the form.
The decision widget
The widget shows the answers to your open task of a task-module process (approve, reject, send back…) and a Reassign button. The answer is written as a request into the FCRequests list and the process engine decides. The main form is not saved and the widget also works in Display mode. It is a virtual widget, not stored in the item. It is a Pro feature (counted like a write to another list, the same as the button action Create item).
Adding it
On the Widgets card choose Task decision and place it in a section of the source item form (or of the task form itself). The FCTasks and FCRequests lists live on the process web; enter its address in the settings, empty means the current web.
Settings
| Option | Property | Meaning | Default |
|---|---|---|---|
| Mode | mode | Trusted (request): writes a request into FCRequests. Lite mode (direct, writing straight to the item) is reserved in the schema but not available yet. | request |
| Process web | processWebUrl | For example /sites/Processes or an absolute address on the same host. Reading tasks and writing requests go through this web. | current web |
| Tasks / requests list | tasksList, requestsList | Title or GUID of the lists. | FCTasks, FCRequests |
| Which tasks to show | taskSource | Tasks of this item (sourceItem) or Task form (currentTask): the form item is the task itself. | sourceItem |
| Heading, text without a task | title, emptyText | Translatable texts. Without text the widget is hidden when there is no task. | empty |
| Reassign button | allowReassign, reassignLabel | Switch and label. The button is hidden anyway when the process step does not allow reassignment. | on |
| Answer overrides | outcomeOverrides | List of { key, label, appearance }: overrides the label and appearance (primary, secondary, danger) of an answer by its key. The label is a translatable text (Translations card). | none |
| Request column names | requestColumns | Overrides of the internal column names of FCRequests (defaults follow the specification, for example ProcInstanceId). | per specification |
| Waiting for the result | timeoutSeconds | Longest wait in seconds, 5 to 900. | 120 |
Runtime behaviour
- Which tasks: open tasks (
Status = Open) of the current item (by web, list and item number) where you are inAssignedToorAssignees. Several tasks are shown separately, each with its step title. The assignee filter is only a convenience: the engine decides whether you may answer (notAssignee). - Answers: the buttons come from the JSON snapshot
AllowedOutcomeson the task ([{key, label{cs,en,…}, commentRequired, appearance}]); the form does not read the process definition. The label is picked by the form language, otherwise by another language, otherwise the key is shown. - Comment and reassign: a click opens a dialog with a comment (required when the answer requires it). Reassign needs a target person and a comment and writes a
reassignrequest. - After sending: the widget shows progress, waits for the request result (
StatusDone, Rejected, Failed) and on success reloads the item without a page refresh (with unsaved changes it does not reload and warns you). Rejections by the engine (for examplenotAssignee,commentRequired,stepNotOpen,outcomeNotAllowed,targetRequired,notImplemented) are shown as readable messages. - The process code always comes from the task. Writing to
FCRequestsneeds permission to add items on the process web.
Configuration example (JSON)
{
"internalName": "__decision",
"customLabel": "Decision",
"fieldType": "decision",
"colSpan": 12,
"decisionConfig": {
"processWebUrl": "/sites/Processes",
"title": "Your task",
"emptyText": "No task is waiting for you.",
"allowReassign": true,
"outcomeOverrides": [{ "key": "reject", "appearance": "danger" }]
}
}
Limits and tips
- Answers to tasks are processed by the process engine. The PM-21 engine version only processes
startandcancel;respondandreassignarrive with later engine versions. Until then a request can end with the rejectionnotImplemented. - The task lists must have the columns of the task module specification (
AllowedOutcomes,SourceItemId,ProcessCodeand others).