DurableDashboard.Serializer (DurableDashboard v0.1.0-rc)

Copy Markdown View Source

Converts Elixir structs to JSON-safe maps for the React frontend.

Strips function references, converts atoms to strings, and formats datetimes as ISO 8601 strings.

Summary

Functions

Serializes graph data (nodes and edges) for ReactFlow.

Serializes a pending input to a JSON-safe map.

Serializes a scheduled workflow to a JSON-safe map.

Serializes a step execution to a JSON-safe map.

Serializes a workflow execution to a JSON-safe map.

Serializes a workflow execution with associated steps.

Functions

graph(map)

Serializes graph data (nodes and edges) for ReactFlow.

pending_input(pending)

Serializes a pending input to a JSON-safe map.

schedule(scheduled)

Serializes a scheduled workflow to a JSON-safe map.

step(step_execution)

Serializes a step execution to a JSON-safe map.

workflow(execution)

Serializes a workflow execution to a JSON-safe map.

workflow_with_steps(execution, steps)

Serializes a workflow execution with associated steps.