Document Management

Data management applications created with AwareIM can store, retrieve and print documents. Documents are stored as values of attributes of the Document type, so the configurator has to define a business object that will own the document and define an attribute of the Document type to hold the document (configuration of attributes is described in the Adding/Editing Attributes section).

In the Operation Mode an attribute of the Document type is displayed on a business object form as a text box with the Browse button next to it (see Business Object Forms). A user can press the Browse button and select a document from a file on disk. When the form is submitted the file is uploaded to the AwareIM database and is stored permanently in the database. There are no restrictions on the type of file that can be stored.

To retrieve the stored document the user has to find an instance of a business object that stores the document and bring up its form for editing (see Data Retrieval). The attribute of the Document type is displayed as a text box with the Browse button next to it. The text box contains the name of the original file, which the document has been loaded from. There is also the button that allows viewing the document. When the user clicks on this link AwareIM downloads the original document from its database to the user’s machine. If the document belongs to one of the types that AwareIM recognizes AwareIM displays the document in a browser. Otherwise the copy of the document is downloaded to a file on disk (the original document remains stored in the system’s database). If the document is displayed in a browser, it can be viewed and printed from the browser. If the document has been downloaded to a file, it has to be opened and printed with the software that can work with documents of that type.

Documents stored as attribute values can be displayed, printed, exported and imported from rules (see DISPLAY DOCUMENT, PRINT DOCUMENT, EXPORT and IMPORT DOCUMENT actions).

It is also possible to search for documents using queries. While you cannot use the contents of the documents in queries directly you can use the values of other attributes to search for documents. For example, one could define a business object that would store a document in the attribute of the Document type and a keyword of search in another attribute of the Plain Text type. Then a query could search by keyword and retrieve the instances of the business object storing the documents that include the keyword.