function registerWorkflow(function() () workflowFunction, string workflowName, map<function() () >? activities)returnsboolean|error
Registers a workflow function with the program runtime.
This is an internal function used by the compiler plugin to register
workflows at module initialization time. It is not intended to be
called directly by users.
Parameters
workflowFunctionfunction() () - The workflow function to register (must be annotated with @workflow:Workflow)
workflowNamestring - The unique name to register the workflow under
activitiesmap<function() () >? (default ()) - Optional map of activity function pointers used by the workflow
Return Type
boolean|error - true if registration was successful, or an error if registration fails