Temporalex.Converter (Temporalex v0.2.0)

Copy Markdown View Source

Encodes and decodes workflow/activity payloads.

Default encoding is ETF (Erlang Term Format), which preserves full Elixir type fidelity. Payloads are represented as %{metadata: map, data: binary} matching the Temporal Payload protobuf structure.

Summary

Functions

Decode a payload map back to a term.

Decode a list of payload maps into terms.

Encode a term into a payload map.

Encode a list of terms into payload maps.

Functions

decode(map)

Decode a payload map back to a term.

decode_args(payloads)

Decode a list of payload maps into terms.

encode(term)

Encode a term into a payload map.

encode_args(args)

Encode a list of terms into payload maps.