Documentation
¶
Overview ¶
Package nexusworkflowref converts a Nexus operation completion token between its HSM and CHASM forms. A rebuild (reset or conflict resolution) can re-create a workflow's Nexus operation under the other framework by dynamic config after its callback token was minted, so a completion may arrive addressing the framework the operation no longer lives in; converting the token lets it be retried against the current framework. Only workflow-backed operations are convertible — the HSM operation state machine and the CHASM workflow's Operations map are two representations of the same thing, keyed by scheduled event ID.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CHASMRefToHSMRef ¶
func CHASMRefToHSMRef(completion *tokenspb.NexusOperationCompletion) (*tokenspb.NexusOperationCompletion, error)
CHASMRefToHSMRef converts a CHASM-format Nexus operation completion token into the equivalent HSM-format token. It errors if the CHASM ref is not a workflow-backed operation (wrong archetype or unexpected component path), since only those have an HSM equivalent.
func HSMRefToCHASMRef ¶
func HSMRefToCHASMRef(completion *tokenspb.NexusOperationCompletion) (*tokenspb.NexusOperationCompletion, error)
HSMRefToCHASMRef converts an HSM-format Nexus operation completion token into the equivalent CHASM-format token.
Types ¶
This section is empty.