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:
This function should return the constructed "BaseTask", which should be used to store state across steps.
It also returns the list of steps that this task has, in its most natural progression.
Last updated 10 months ago