Base library for workflow management