By default Audit is disable for all forms. When enabled each time a form is saved a copy of the old form is stored in the Audit Storage. This is also configurable by Form Definition.
"Enable audit for drafts of form named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
enableDraftAuditFor: 'newCustomer' in: 'customers'.
"Disable audit for drafts of form named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
disableDraftAuditFor: 'newCustomer' in: 'customers'.
"Enable audit for instances of form named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
enableInstanceAuditFor: 'newCustomer' in: 'customers'.
"Disable audit for instances of form named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
disableInstanceAuditFor: 'newCustomer' in: 'customers'.
"Enable audit for definition named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
enableDefinitionAuditFor: 'newCustomer' in: 'customers'.
"Disable audit for definition named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
disableDefinitionAuditFor: 'newCustomer' in: 'customers'.