Mongoid persistence for the workflow framework