A connection is a mechanism to store files.
Each connection consists of three parts:
and the schema is:
blueriq.connection.<name>.<type>[.path = <path>] |
As a name you can enter whathever you like as name. The name of a connection is handled as a string.
The type defines on which system the file is stored. The following systems are possible:
The value is memory
. In case of a memory connection an example of the schema is:
blueriq.connection.system1.memory
The value is filesystem
. In case of a file system connection an example of the schema is:
blueriq.connection.system2.filesystem.path=<path>
In case the type is a filesystem
, also the path of the root folder must be specified, e.g.:
C:/Blueriq/Uploads
Note to use forward slashes '/' in the path; backward slashes as used in Windows will not work.
An example of the complete file system connection is:
blueriq.connection.filesystemconnection.filesystem.path=
C:/Blueriq/Uploads
It is also possible to use a relative path. In that case relative paths start in directory jboss/bin, so please use this as the starting point.
As soon as the first document is stored via the runtime, inside the root folder two sub folders are created:
In this folder the real file is stored. Each file gets its id as file name, without extension. An example is:
0d80ebe2-73b2-482b-ae64-53ffe7d923fb
For each file stored in DATA there is a metadata file. This file also gets the id as file name and is stored in xml format. An example is:
0d80ebe2-73b2-482b-ae64-53ffe7d923fb.xml
In this metadata file the following information is kept:
Name | Description | Example |
---|---|---|
ID | The Id of the file. | 0d80ebe2-73b2-482b-ae64-53ffe7d923fb |
Name | The file name as it is shown in the application (at runtime). | Test_Application.pdf |
ContentType | The type of the file. | application/pdf, image/jpeg |
CreationDate | The date when this file was stored. | 2015-06-18T11:52:08 |
CreatedByUserId | The user who stored the file. | anonymousUser |
CASE_ID | The corresponding case id. |
A metadata file is illustrated by the following example.
|
In order to use a connection please take the following steps:
blueriq.connection.<name>.<type>[.path = <path>]
.connection
as parameter).Related articles appear here based on the labels you select. Click to edit the macro and add or change labels. Note: the article itself also appears as related article, this is a known limitation.