CDM/schemaDocuments/Marketing/EventManagement/FileOBSOLETE.1.0.cdm.json

398 строки
14 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.0.0",
"imports": [
{
"corpusPath": "_allImports.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "FileOBSOLETE",
"extendsEntity": "CdsStandard",
"exhibitsTraits": [
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"File (OBSOLETE)"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "fileId",
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_fileId"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"File"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_fileid",
"displayName": "File",
"description": "Unique identifier for entity instances"
},
{
"name": "name",
"purpose": "hasA",
"dataType": "name",
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msevtmgt_name"
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "required"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The name of the file"
]
]
}
}
]
}
],
"sourceName": "msevtmgt_name",
"displayName": "Name",
"description": "The name of the file",
"maximumLength": 100
},
{
"name": "stateCode",
"purpose": "representsStateWith",
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder}",
"entityShape": "listLookupValues",
"constantValues": [
[
"en",
"Active",
"0",
"0"
],
[
"en",
"Inactive",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statecode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status of the file"
]
]
}
}
]
}
],
"sourceName": "statecode",
"displayName": "Status",
"description": "Status of the file",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'stateCode_display' is added to the 'FileOBSOLETE' entity to provide the localized display text for the value of the listLookup attribute 'stateCode'",
"name": "stateCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
},
{
"name": "statusCode",
"purpose": {
"purposeReference": "representsCorrelatedStatusWith",
"appliedTraits": [
{
"traitReference": "is.correlatedWith",
"arguments": [
"stateCode"
]
}
]
},
"dataType": {
"dataTypeReference": "listLookup",
"appliedTraits": [
{
"traitReference": "does.haveDefault",
"arguments": [
{
"entityReference": {
"explanation": "The constantValues below correspond to the attributes of the 'listLookupCorrelatedValues' entityShape which are: {languageTag, displayText, attributeValue, displayOrder, correlatedValue}",
"entityShape": "listLookupCorrelatedValues",
"constantValues": [
[
"en",
"Active",
"1",
"0",
"0"
],
[
"en",
"Inactive",
"2",
"1",
"1"
]
]
}
}
]
}
]
},
"appliedTraits": [
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"statuscode"
]
},
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Status reason"
]
]
}
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Reason for the status of the file"
]
]
}
}
]
}
],
"isNullable": true,
"sourceName": "statuscode",
"displayName": "Status reason",
"description": "Reason for the status of the file",
"resolutionGuidance": {
"addSupportingAttribute": {
"explanation": "This attribute 'statusCode_display' is added to the 'FileOBSOLETE' entity to provide the localized display text for the value of the listLookup attribute 'statusCode'",
"name": "statusCode_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true,
"isNullable": true
}
}
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Marketing/EventManagement/FileOBSOLETE.1.0.cdm.json/FileOBSOLETE/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
],
"sourceName": "msevtmgt_file",
"displayName": "File (OBSOLETE)"
}
],
"documentVersion": "1.0"
}