# StateDecl

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.StateDecl/

One state in a workflow.

- **Full name:** `MFiles.StateDecl`
- **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-state"></a>`state` | [`State`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.State/index.md) | 2 | The workflow state. The name of the state is in `base_info`, and its description in the per-language `base_info.translations`. |
| <a id="f-action_code"></a>`action_code` | [`MetadataStructureResourceRef`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MetadataStructureResourceRef/index.md) | 3 | The action VBScript resource reference. |

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

## Used in fields

- [`WorkflowDecl.states`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.WorkflowDecl/index.md#f-states): The states of this workflow.
