# ActivatePartner

## Overview

activatePartner transitions a business partner from DRAFT to ACTIVE status, making the partner eligible for role assignments, transactions, and other downstream operations. Only partners in DRAFT status can be activated.

## Business Rules

- Partner must exist in the system
- Partner must be in DRAFT status
- After activation, the partner can be assigned roles and participate in transactions

## Process Flow

```mermaid
flowchart TD
    A[Receive activate request] --> B{Partner exists?}
    B -->|No| C[Return error: not found]
    B -->|Yes| D{Status is DRAFT?}
    D -->|No| E[Return error: invalid state transition]
    D -->|Yes| F[Update status to ACTIVE]
    F --> G[Return activated partner]
```

## External Dependencies

- None

## Error Scenarios

- **PARTNER_NOT_FOUND**: Specified partner ID does not exist
- **INVALID_STATE_TRANSITION**: The required state transition is not valid for the current status

## Test Cases

- activates a DRAFT partner
- returns error when partner not found
- returns error when partner is ACTIVE
- returns error when partner is INACTIVE
