> For the complete documentation index, see [llms.txt](https://community-test.logicnets.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://community-test.logicnets.com/release-9/design-considerations-and-frameworks/frameworks/workflow-framework/workflow-framework-tasks.md).

# Workflow Framework: Tasks

The LogicNets system allows you to add workflow functionality to applications you create using the Application Starter Portal Framework. This functionality supports the following:

* Task creation
* Role-based task actions
* Task lists
* Sequential and/or parallel workflows
* Task locking
* Persistent workflow data objects that can be passed between tasks

Workflows are modelled as logicnets like the one in the diagram below, but these logicnets are slightly different than non-workflow logicnets in that they contain task nodes.

![](https://2802811211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FdFhfexCjZ5JMhwGzzywq%2Fuploads%2Fgit-blob-d17d3cd35ab757bad97686d21f377d70c50b1e47%2F655137f4-2832-4b1b-9391-6a1d68a2175a.png?alt=media)

Each task node represents a distinct step or unit of execution within the workflow, and the workflow steps from one task to the next based on the outcome of that task. Each task node has the following configuration options:

| Field Name       | Description/Use                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Type/Options                                                                                 | Optional/Mandatory                                                                                                                                                                                                                                                                                                   |            |           |
| ---------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | --------- |
| Task label       | This is the label of the task as shown in the logicnet.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Text                                                                                         | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Task type        | <p>This is the type of task.<br>- Choose <em>user</em> if the task requires user interaction.<br>- Choose <em>system</em> if the system executes the task in the background using a process called the <em>system task runner</em>.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | User \| System                                                                               | Mandatory                                                                                                                                                                                                                                                                                                            |            |           |
| Subject          | This is the title of the task if it displays to users.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Text                                                                                         | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Display          | <p>When this parameter is set to <em>Yes</em> the system assumes the task has a user interface and will render a top bar with navigation and action buttons. The system will also include a message area where validation errors display if necessary.<br>If this parameter is set to <em>No</em> the system assumes the task is a processing task or has a custom user interface that implements the navigation bar and errors if necessary.</p>                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Yes \| No                                                                                    | Mandatory                                                                                                                                                                                                                                                                                                            |            |           |
| Outputs          | <p>This is the outputs for the task. Each output has the following parameters:<br>- <strong>Value:</strong> This is the value of the output.<br>- <strong>Caption:</strong> This is the caption of the output value (only relevant for tasks with a UI).<br>- <strong>Applies to:</strong> This is the user role that is associated with the button. It is only relevant for tasks with a UI, and--when filled—the button is only visible to users with the specified role.<br>- <strong>Next status:</strong> This is the caption displayed on the button.<br>- <strong>Save:</strong> yes                                                                                                                                                                                                                                                                                                                                                                                             | no. This sets whether the system should save the task.<br>- <strong>Validation:</strong> yes | no. This determines if the system will step the task forward if there are validation errors. This is only relevant for tasks with a UI.<br>- <strong>Condition:</strong> This is the condition (f there is one) for enabling the output button on the navigation bar. This is only relevant for tasks with a UI.</p> | Collection | Mandatory |
| Actions          | <p>This parameter is only applies when <em>Display</em> is set to "yes". These are the buttons the system will display on the top bar for triggering another logicnet.<br>Each action has the following parameters:<br>- <strong>Caption:</strong> This is the caption of the action button.<br>- <strong>Applies to:</strong> This is the user role linked to the button. If this parameter is provided the button is only visible to users with the specified role.<br>- <strong>Call logicnet:</strong> This is the name of the logicnet to call when the button is clicked.<br>- <strong>Display:</strong> When set to "yes" the system will open the logicnet in a popup window.<br>- <strong>Parameters:</strong> These are the input parameters the system should send to the called logicnet. The system supports string interpolation, however, the interpolation happens at server side when the button is being rendered and not at the time the user clicks the button.</p> | Collection                                                                                   | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Task net         | This is the logicnet the system will call when the task is executed.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Logicnet                                                                                     | Mandatory                                                                                                                                                                                                                                                                                                            |            |           |
| Load net         | This is the logicnet the system will call to load task data. If this is not specified the system will load task data from default task storage.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | Logicnet                                                                                     | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Save net         | This is the logicnet the system will call to save task data. If this is not specified the system will use the default saver.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Logicnet                                                                                     | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Pre-process net  | This the logicnet the system will call before the start of the task; for example, to pre-process data.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Logicnet                                                                                     | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Post-process net | This the logicnet the system will call after the task logicnet; for example, to perform post-processing actions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Logicnet                                                                                     | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Parameters       | These are the input parameters for the task. The system supports string interpolation.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Text                                                                                         | Optional                                                                                                                                                                                                                                                                                                             |            |           |
| Planned start    | This is the date after which the system must start the task. It is only applicable for system tasks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Date                                                                                         | Mandatory                                                                                                                                                                                                                                                                                                            |            |           |
| Tags             | <p>This is the meta-data associated with the task. Each tag has the following parameters:<br>- <strong>Type:</strong> This is the key of a tag. One predefined key is "role" but you can enter any key.<br>- <strong>Value:</strong> If the key is set to "role" the value specifies the role(s) to which the task applies. The task-locking mechanism will only allow a user to open task if the user has one of the specified roles. If no role is specified any user can open the task.<br>- <strong>Value-type:</strong> This is the type of the value: value                                                                                                                                                                                                                                                                                                                                                                                                                       | collection.</p>                                                                              | Collection                                                                                                                                                                                                                                                                                                           | Optional   |           |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://community-test.logicnets.com/release-9/design-considerations-and-frameworks/frameworks/workflow-framework/workflow-framework-tasks.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
