Workflow implementation for node.js