Create macros for generating workflows. Fix compilation errors
Compilation passed