Skip to content

FE Document

04. Document Lifecycle

EVENTFLOW FE · TECHNICAL DOCUMENTATION · 04

Document Lifecycle

Defines the observable state progression of a fiscal document from product preparation through electronic processing and the resulting fiscal outcome.

Version
1.0

Status
Production

Lifecycle scope
Fiscal document states

Fiscal environment
SIFEN · Paraguay

Lifecycle definition

Document state records processing progress; fiscal outcome records the result returned through the authority integration.

A fiscal document progresses through explicit product states as EventFlow FE prepares its electronic representation, applies document integrity operations, performs SIFEN interoperability and records the resulting fiscal status.

Lifecycle model

BORRADOR
Product document under preparation
XML_GENERADO
Electronic fiscal representation generated
FIRMADO
Electronic representation digitally signed
QR_GENERADO
QR information generated for the fiscal document
ENVIANDO / ENVIADO
Fiscal interoperability in progress or submission completed
Fiscal outcome
APROBADO · RECHAZADO · OBSERVADO

State classification

State Class Meaning
BORRADOR Preparation The fiscal document remains under product-side preparation
XML_GENERADO Electronic generation The electronic fiscal representation has been generated
FIRMADO Document integrity The electronic representation has been digitally signed
QR_GENERADO Document integrity The QR information required by the fiscal process has been generated
ENVIANDO Interoperability A fiscal submission operation is in progress
ENVIADO Interoperability The document has completed the applicable submission operation
APROBADO Fiscal outcome The authority response represented by the product is approved
RECHAZADO Fiscal outcome The authority response represented by the product is rejected
OBSERVADO Fiscal outcome The authority response represented by the product contains observations

Preparation and generation

BORRADOR represents a document that remains under product-side preparation. Generation of the electronic fiscal representation moves the document to XML_GENERADO.

The document model used during this stage is specified in 03. Fiscal Document Model.

Document integrity stages

FIRMADO records completion of the configured digital signing stage. QR_GENERADO records completion of QR generation for the electronic fiscal document.

Security and document integrity requirements are specified separately in 06. Security & Document Integrity.

Submission stages

ENVIANDO indicates that fiscal interoperability is being executed. ENVIADO records completion of the applicable submission operation. Transport details, synchronous and asynchronous interaction, and authority consultation behavior belong to 05. SIFEN Interoperability.

Fiscal outcomes

APROBADO, RECHAZADO and OBSERVADO represent fiscal outcomes derived from the authority integration. EventFlow FE records these outcomes as product state; it does not originate the underlying authority decision.

Failure states

State Failure domain Meaning
ERROR_FIRMA Document integrity The configured signing stage did not complete successfully
ERROR_QR Document integrity QR generation did not complete successfully
SOAP_ERROR Fiscal interoperability The applicable communication operation encountered a transport or protocol failure
ERROR_RECONCILIACION Fiscal reconciliation The product could not reconcile the expected fiscal state with the available authority result

Transition rules

Lifecycle transitions record completed processing stages or externally derived fiscal outcomes. A later stage does not retroactively change the meaning of an earlier completed stage.

Failure states identify the stage that did not complete successfully. Recovery behavior is documented according to the responsible failure domain rather than as an implicit lifecycle transition.

Lifecycle invariants

  • XML_GENERADO represents completion of electronic document generation, not fiscal approval.
  • FIRMADO and QR_GENERADO represent completed product processing stages, not authority outcomes.
  • ENVIADO represents submission completion and is distinct from an authority result.
  • APROBADO, RECHAZADO and OBSERVADO represent outcomes obtained through fiscal interoperability.
  • A runtime observation state does not replace or redefine the fiscal lifecycle state maintained by EventFlow FE.

Runtime separation

The fiscal lifecycle belongs to EventFlow FE. Independent runtime processing may observe lifecycle evidence, but runtime state is not a fiscal document state and does not advance the fiscal lifecycle.