edi_state_oca
Provide an EDI framework extension that defines reusable state workflows assignable to models so records exchanged via EDI can share consistent lifecycle tracking.
Key Features
- edi.state.workflow: Groups EDI states by backend type and optional target model while exposing helpers to fetch default or code-specific states for validations and transitions.
- edi.state: Stores translatable EDI state metadata and enforces unique codes plus a single default state within each workflow to keep definitions consistent.
- edi.state.consumer.mixin: Adds EDI state fields and helper methods to consumer models so they can fetch permitted states from their originating exchange type and block unauthorized assignments.
- edi.exchange.type: Lets each exchange type enable specific EDI state workflows per model, ensures only one workflow is tied to a model, and provides lookup helpers to retrieve default or code-based states for consumers.