package com.ffii.fpsms.modules.productProcess.enums

enum class ProductProcessStatus(val value: String) {
    PENDING("pending"),
    IN_PROGRESS("in_progress"),
    STOPPED("stopped"),
    COMPLETED("completed"),
    CANCELLED("cancelled");
    
    companion object {
        fun fromValue(value: String): ProductProcessStatus {
            return values().find { it.value == value }
                ?: throw IllegalArgumentException("Unknown status: $value")
        }
    }
}



