Programmatically controlling persisted workflow instances