Sample code for a workflow application