Worker data

As well as the worker fields used to control the process, the worker contains all the business data required by the process.

The data is stored in a "data" folder. You can view this data folder by adding /data to the worker URL, to give a URL like https://www.metrici.com/yourcompany/process_client/workers/N123/data.

(Note that this is N123/data, not N123.1/data. The ".1" is a version number, and is not included when accessing sub folders.)

Worker data folder listing

Each data item in the folder represents a different piece of data used by the process. The data is expressed as a JSON object, and can contain any data in any structure.

Worker data node showing worker data JSON

Conceptually, files are stored inside this data. The data node acts as the folder to hold the file node, and the data node contains a FILE_INFO object to represent the file, as in this example.

{
  "name": "Improve the poem",
  "templateDocument": {
    "type": "FILE_INFO",
    "node": "test15.process_client.workers.N3.data.template.limerick",
    "storage_key": "test15/20210512160253041_D06990830748",
    "uuid": "52234ef7-d645-5824-8948-c972213c8a44",
    "size": 152,
    "extension": "txt",
    "name": "limerick.txt",
    "local_reference": "limerick"
  },
  "documentInstructions": "<p>Please download and improve the poem.<\/p>",
  "dueTimestamp": "2021-06-04"
}

The FILE_INFO object contains information required to retrieve the file or to send the file to another partner. The partner can use the FILE_INFO to recreate their own copy of the file, or to request the original file from the sender. (On the same server, the receiver uses the storage_key to create their own copy of the file. On a different server, the receiver can call the sender with the FILE_INFO to receive the content of the file.)