# oarepo\_config.workflows.simplified.individual

## `oarepo_config.workflows.simplified.individual`

Individual (non-community) workflow configuration for OARepo.

### `IndividualWorkflow`

Bases: `BaseWorkflowSettings`

Workflow configuration for deposits outside of communities.

#### `code: str = 'individual'`

Unique code identifier for this workflow.

#### `label: LazyString = _('Individual Submission Workflow')`

Human-readable label for this workflow.

#### `authenticated_draft_creation: bool = True`

Allow authenticated users to create drafts in this workflow.

Overrides the base-class default of `False`; any authenticated user can create a draft unless more-specific role or need restrictions are configured via `draft_creation_roles` or `draft_creation_needs`.

#### `publish_without_review: bool = False`

Allow draft owners to publish without submitting a review request.

When enabled, draft owners can publish directly, subject to `publish_without_review_states`.

#### `publish_without_review_roles: list[str] = dataclasses.field(default_factory=list)`

Roles that allow a draft owner to publish without a review request.

Users must still be owners of the draft record. If the list is non-empty, `publish_without_review` is ignored.

#### `publish_without_review_needs: list[str] = dataclasses.field(default_factory=list)`

Permission needs that allow a draft owner to publish without a review request.

Users must still be owners of the draft record. If the list is non-empty, `publish_without_review` is ignored.

#### `publish_without_review_states: list[str] = dataclasses.field(default_factory=lambda: ['draft'])`

Record workflow states in which publication without review is allowed.

#### `review_required: bool = False`

Require a review request before publication.

If `publish_without_review` is `False` and `review_required` is `False`, records can only be published through a community workflow.

#### `reviewer_roles: list[str] = dataclasses.field(default_factory=list)`

Roles that allow users to review and curate records.

Users with these roles are also granted read access to draft records.

#### `reviewer_needs: list[str] = dataclasses.field(default_factory=list)`

Permission needs that allow users to review and curate records.

Users with these needs are also granted read access to draft records.

#### `self_review_enabled: bool = False`

Allow the record owner to approve their own review request.

Normally, submitting a record for review prevents the owner from approving it themselves. When set to `True`, the review request is still created on submission, but the owner is permitted to accept it.

This is primarily useful when `invenio-checks` is active: checks are tied to an open request, so the request must exist even when no external reviewer is needed. With this option the owner can see and act on the check results without waiting for a curator.

Has no effect when `publish_without_review` is `True`, because in that case user can bypass the review request and publish the record directly.

#### `record_owners_with_correct_roles(record_owner_generator: RecordOwners) -> list[Generator]`

Return the record owner generator with the correct roles/needs.
