# WorkflowDecl

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WorkflowDecl/

Workflow.

- **Full name:** `MFiles.WorkflowDecl`
- **Proto file:** [`mfiles/structs.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/structs.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-base_info"></a>`base_info` | [`ValueListItemDecl`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ValueListItemDecl/index.md) | 1 | Value list item representing this element. |
| <a id="f-workflow"></a>`workflow` | [`WorkflowAdmin`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WorkflowAdmin/index.md) | 2 | Other information on the workflow. |
| <a id="f-states"></a>`states` | repeated [`StateDecl`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateDecl/index.md) | 3 | The states of this workflow. |
| <a id="f-transitions"></a>`transitions` | repeated [`StateTransitionDecl`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.StateTransitionDecl/index.md) | 4 | The state transitions of this workflow. |
| <a id="f-unknown_json"></a>`unknown_json` | `string` | 5 | Opaque JSON object of schema-recognized, converter-unmapped properties for this element, keyed by original property name. |

<a id="used-in-fields"></a>

## Used in fields

- [`DeclarativeMetadataStructure.workflows`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.DeclarativeMetadataStructure/index.md#f-workflows): An array of the WorkflowDecl structures.
