Knock.Workflows (Knock v0.4.0) View Source

Functions for interacting with Knock notify resources.

Link to this section Summary

Functions

Cancels the workflow with the given cancellation key.

Executes a notify call for the workflow with the given key.

Link to this section Functions

Link to this function

cancel(client, key, cancellation_key, properties \\ %{})

View Source

Specs

Cancels the workflow with the given cancellation key.

Can optionally be provided with:

  • recipients: A list of recipients to cancel the notify for
Link to this function

trigger(client, key, properties)

View Source

Specs

Executes a notify call for the workflow with the given key.

Note: properties must contain at least actor and recipents for the call to be valid.