Workflow Logic and domain classes