A template-driven process system includes a template that contains
information about an interactive web program that utilizes a plurality of
web pages to create a document. The information defines for each web page
in the plurality of web pages characteristics about fields for receiving
data from an end user. The information also defines for the document a
plurality of document states. Each document state in the plurality of
document states identifies at least one end user allowed to access the
document and at least one action that can be performed on the document.
Different document states identify different end users and different
actions.