User task

Use a User task for work that waits for a person or an external worker to supply an answer. Select a Page-backed task processor for approval forms and other work someone completes through a form; use an automatic task for data transformation.

simple-task-processor.png

Choose it when the work belongs to an organization process rather than a built-in task type. Select the Page and Page Version on the Task Processor tab, provide matching Input Parameters, and connect the next route unless the task ends the path. When it runs, SimWorkflow hands the configured input to that Page-backed task processor.

The Page processor is optional. Without one, the task has no configured Page form. Check that your chosen way of completing the task is in place before running the workflow. When using a Page, check that it is available, its fields match the input, and the task is reachable.

Task processor tab

Use the Task Processor tab on a Simple task when someone needs a Page to do the work or complete a form. Select the Page, then select its Page Version. Choose the latest version to use the current editable Page, or choose a published version to keep using that specific Page version. When the task runs, the person completing it sees the selected Page.

Check that the Page and Page Version are available, do not expect a later Page draft change to alter a pinned version, and ensure Page fields match the task's Input Parameters.

Field

Required

Default Value

Description

Page

No

N/A

Selects the Page presented for this task's participant work. Leave it unset when the task does not use a Page processor.

Page Version

When Page is selected

Latest Page Version

Selects the Page revision used when the task is processed. Latest uses the current editable Page; a published version is a pinned snapshot.

The selected Page appears in a preview below these fields. Use it to check the form and selected version; the preview is not a live task submission.

Example: review a request

Use a User Task named Review request with the Review request Page from the Page walkthrough. Its Request and Priority paragraphs display summary and priority; its Resolution form field submits resolution. Map these Input Parameters:

{
  "summary": "${workflow.input.summary}",
  "priority": "${workflow.input.priority}"
}

With workflow input summary: Replace scanner and priority: High, the reviewer reads those values and submits:

{
  "resolution": "Replacement approved"
}

The submitted Resolution is the task output. The display-only summary and priority are not automatically copied into it. A following task needing them must map the original workflow input. Saving a task form is not submitting it: the task keeps waiting until completion. If it waits unexpectedly, check that the reviewer can access the selected Page and has actually submitted the task.

When you open a shared template, an available task processor Page appears selected and read-only until the first Save. Saving copies the available published Page into your organization and binds it to the saved workflow definition. You can then select or edit your own Page. See Launch Pages in shared templates for copying rules shared by both kinds of Page.

Example

There are no extra task-specific configuration fields.

Configure the example using its visible controls:

Select User Task, name it Review request on General, then open Task Processor. Select the Page that collects the review and its published version. Map the request data the reviewer needs on Input Parameters. The Page's answer fields collect submitted task output; they are not the incoming request mapping.

The screenshot uses the Page walkthrough's Review request form, which collects a Resolution. This preview shows the saved Page, so placeholders such as ${summary} and ${priority} remain visible. They receive the request's values when the Page is used by a running task. The Input and Output below use this same form.

example-user-task.png

Input

Captured task data after Input Parameters mapping:

{
  "summary": "Replace scanner",
  "priority": "High"
}

This input is for the form or worker. Submit a JSON object through the task form to complete the task; input is not automatically included in that output.

Output

Output is exactly the submitted ordinary fields after reserved-name filtering. Names starting _, swf: or jsonata: are excluded, except swf:cardIndex. A submitted branchOutputs is ordinary customer data. Empty submission can return {}.

Raw task output:

{
  "resolution": "Replacement approved"
}

When something goes wrong: If needed data disappeared, submit it explicitly or map the earlier task's output in the next task. Completing the task is separate from saving a form.

A following task can map this value: ${['Review request'].output.resolution}.