cubeAutomation modules

An "Automation module" is a specific package in your project that has the following export:

func ConstructTask(*protocol.Task[T]) (protocol.BaseTask, []flowprotocol.TaskStep, error)

"T" in the first parameter must be a struct type that contains only primitive type parameters and slices of primitives, which will be used to generate the task creation form on the frontend.

To learn more:

Parameterschevron-right

This function should return the constructed "BaseTask", which should be used to store state across steps.

To learn more:

The task typechevron-right

It also returns the list of steps that this task has, in its most natural progression.

To learn more:

Step flowchevron-right

Last updated