ArtifactManager
Artifacts are how the MTOA platform stores large (BLOB) amounts of data that is associated to a service request.
An artifact is composed of the following:
Artifact type
Typical use cases are:
(JsonMetadata) - storing business-line specific data that describes the service request in further detail
(JsonDocument) - storing data retrieved from the user via form submission
Signed JSON document (SignedJsonDocument) - storing signed data (typically e-signature data)
Version
This is a user-defined string that allows you to specify the structure version of the document. This is useful for cases when you update your service application with a new or different data structure; knowing the version will allow for correct parsing of the data.
e.g. DOC_v1.0
User ID
This is the user ID of the user who created the artifact. It isn't necessarily the user ID of the user who created the associated service request.
Artifact
This is the blob data, in JSON format.
Example:
Metadata type data
{
"ModelName":"Wavemaster 2000",
"MicCode":"CA-QJT",
"MicDescription":"CA-QJT - Princecraft Boats Inc.",
"ModelYear":"2019",
"NMMACode":"9995453"
}
Document type data
{
"ManufacturerContactInfo":
{
"ManufacturerId":14964,
"ManufacturerName":"Princecraft Boats Inc.",
"ManufacturerStreet":"725 Rue St Henri",
"ManufacturerCity":"Princeville",
"ManufacturerProvinceId":"005",
"ManufacturerPostalCode":"G6L-5C2",
"MicId":"US-SER",
"IsValid":true,
},
"VesselDetailsPage":
{
"ProductionType":2,
"ModelName":"Wavemaster 2000",
"ModelYear":"2019",
"ModelLength":1800,
"BeamWidth":400,
"GrossLoad":600,
"MaxPersons":4,
"DryWeight":100,
"IsValid":true,
},
"VesselCodesPage":
{
"VesselTypeCodes":null,
"HullMaterialCodes":null,
"HullFormCodes":null,
"EngineTypeCodes":null,
"IsValid":false
},
"AcceptedDate":null,
"AcceptedBy":null,
"LastUpdateDate":null
}
Signed JSON data
{
"UserId":"12345",
"FirstName":"Jane",
"LastName":"Smith",
"SignatureDateTime":"2020-10-06T15:46:32.9160193-04:00",
"IpAddress":"100.200.120.77:62033",
"HostName":"ncrws323",
"BrowserDetails":"Name = Chrome,Type = Chrome64,Version = 64.0
}