25. Platform - Long Running Transaction or Document Workflow
Document workflow is handled by a module consisting of a workflow log, a workflow engine and a model of states and transitions
Documents go through a sequence of stages based on user input
The state of the document needs to be persistent and available to the application
Document state information is stored in XML format in either a database or on filesystem
The engine processes the workflow request; records, updates and answers queries regarding a document's state