DataMapper plugin for creating state machines