# workflowIsAssignable

Audience: Developer

Returns whether the given workflow execution is currently assignable.

Returns whether the given workflow execution is currently assignable.

Reads the `pyck_workflow_is_assignable` Temporal search attribute on the
execution. Workflows that never wrote the attribute are treated as
assignable (returns `true`) — matching the SDK's default behaviour for
workflows that didn't opt in via `workflowsdk.WorkflowIsAssignableSetter`.

**Served by:** [workflow](https://docs.pyck.cloud/dev/api/services/workflow.md)

## Arguments

| Name | Type |
| --- | --- |
| `input` | [GetWorkflowIsAssignableInput](https://docs.pyck.cloud/dev/api/inputs/getworkflowisassignableinput.md)! |

## Returns

[GetWorkflowIsAssignableResponse](https://docs.pyck.cloud/dev/api/types/getworkflowisassignableresponse.md)!

## Example

Returns whether a given workflow execution currently advertises itself as assignable via the pyck_workflow_is_assignable search attribute. Workflows that never wrote the attribute are treated as assignable (returns true).

```graphql
query GetWorkflowIsAssignable($input: GetWorkflowIsAssignableInput!) {
  workflowIsAssignable(input: $input) {
    isAssignable
  }
}
```

**Variables**

```json
{
  "input": {
    "workflowExecutionID": "<run ID>",
    "workflowID": "<workflow execution ID>"
  }
}
```
