Workflows.PayloadTemplate (Workflows v0.2.0) View Source

A PayloadTemplate is used to create new Json objects by combining other objects.

Link to this section Summary

Functions

Apply payload template to arguments, returning a new, transformed output.

Create a payload template.

Link to this section Types

Link to this section Functions

Specs

apply(t() | nil, Workflows.Activity.ctx(), Workflows.Activity.args()) ::
  {:ok, Workflows.Activity.args()} | {:error, term()}

Apply payload template to arguments, returning a new, transformed output.

Specs

create(map()) :: {:ok, t()} | {:error, term()}

Create a payload template.