-
Notifications
You must be signed in to change notification settings - Fork 1
Persistence Layer Configuration Options
Persistence Configuration Options
There are a lof of options that can be configured in this persistence layer such as: deferred processing, path for attachments, search type and audit options.
Deferred Processing
When a form is saved a complex object structure is created from the original XML posted by Orbeon. The creation of the complex object structure can be executed on demand or can be deferred to be processed later. By default all processing is on demand. The configuration is applied on Form Definition this make it very flexible. Some forms can be processed on demand and others have a deferred strategy.
"Set a Deferred Processing Strategy for form named <newCustomer> in application <customer>"
OrbeonApiConfiguration default
setDeferredProcessingFor: 'newCustomer' in: 'customer'.
"Set an On Demand Processing Strategy for form named <newAccount> in application <customer>"
OrbeonApiConfiguration default
setOnDemandProcessingFor: 'newAccount' in: 'customer'.Path for Attachments
All attachments are stored in Linux hard drive. The path for each Form Definition is configurable where all forms have the same directory substructure.
basePath/temp
basePath/drafts
basePath/instances
basePath/definitions/published
basePath/definitions/saved
"To set the path </home/myFormsRepository/> for form named <newCustomer> in application <customer>"
OrbeonApiConfiguration default
setPath: '/home/myFormsRepository/' for: 'newCustomer' in: 'customer'.Search Types
When searching by more than one field Orbeon by default perform and AND search. This is configurable by Form Definition and two search types are available AND and OR. With AND all conditions must be met to produce a match. With OR any condition met produce a match
"Set an AND search type for form named <> in application <>"
OrbeonApiConfiguration default
setAndTypeSearchFor: 'newCustomer' in: 'customers'.
"Set an OR search type for form named <newCustomer> in application <customers>"
OrbeonApiConfiguration default
setOrTypeSearchFor: 'newCustomer' in: 'customers'.Forms Audit
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'.