Folders structure#
In order for RPS Files Processor
to run correctly, the folder structure must be the following
root
βββ RPSFilesProcessor
β βββ RPS Files Processor executable files
βββ RPSFilesProcessorConfigurations
β βββ ProjectName
β βββ dataProcessors.json
β βββ instances.json
β βββ rightsContexts.json
β βββ processingContexts.json
βββ RPSFilesProcessorData
β βββ ProjectName
β βββ in
β β βββ input files
β βββ out
β βββ errors
βββ RPSFilesProcessorExecution
βββ ProjectName
βββ appsettings.json
As many projects as needed can be created, each with there own configuration in its respective location.
Default root location is C:\
but can be set differently. Input files are to be placed in
root\RPSFilesProcessorData\ProjectName\in
, folders out
and errors
will automatically
be filled with output and error files during the execution.
appsettings.json#
The appsettings.json file is used for connection with RPS Engine
and RPS Manager
, beware of
using the right HostName
, ClientId
, ClientSecret
and
IdentityServerHostName
to ensure a successful connection between the RPS modules.
The appsettings.json also allows for configuration of the ChunkSize
, Timeout
and MaxDegreeOfParallelism
for the execution.
Example of appsettings.json#
{
"Logging": {
"LogLevel": {
"Default": "Information",
"System": "Information",
"Microsoft": "Information"
}
},
"ConnectionStrings": {
"MongoDatabaseInstance": "mongodb://127.0.0.1:27017/RPSFilesProcessor"
},
"RPS": {
"Engine": {
"HostName": "https://engine.rpsdev.net",
"ChunkSize": 1000,
"Timeout": "00:05:00",
"MaxDegreeOfParallelism": 1,
"ClientId": "b6aff204-0eb1-4055-8f81-3eaadasd744c",
"ClientSecret": "83f75d2c213e4f6190abdsd33202439c31f7151f487cb778bdb4db303ab7",
"IdentityServerHostName": "https://identity.rpsdev.net"
}
}
}
Files configuration#
Four additional files must be added to the configuration for the Files Processor to work: details on each of them can be found on instances.json, rightsContexts.json, processingContexts.json and dataProcessor.json.