How to put workflow into a form?