CDM/schemaDocuments/Sustainability/CloudforSustainabilityWater.../WaterQuantity.1.0.cdm.json

1805 строки
66 KiB
JSON

{
"jsonSchemaSemanticVersion": "1.1.0",
"imports": [
{
"corpusPath": "cdm:/core/cdsConcepts.1.1.cdm.json"
},
{
"corpusPath": "Facility.1.0.cdm.json"
},
{
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/IndustrialProcessType.1.0.cdm.json"
},
{
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/OrganizationalUnit.1.0.cdm.json"
},
{
"corpusPath": "/Sustainability/CloudforSustainabilitySharedDataModel/Unit.1.0.cdm.json"
},
{
"corpusPath": "WaterInstrument.1.0.cdm.json"
},
{
"corpusPath": "WaterSource.1.0.cdm.json"
}
],
"definitions": [
{
"entityName": "WaterQuantity",
"extendsEntity": "CdmEntity",
"displayName": "Water quantity",
"description": "Stores the actual quantity information from water transactions within the organization.",
"sourceName": "msdyn_waterquantity",
"exhibitsTraits": [
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Stores the actual quantity information from water transactions within the organization."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water quantity"
]
]
}
}
]
},
{
"traitReference": "is.CDM.entityVersion",
"arguments": [
{
"name": "versionNumber",
"value": "1.0"
}
]
}
],
"hasAttributes": [
{
"attributeGroupReference": {
"attributeGroupName": "attributesAddedAtThisScope",
"members": [
{
"name": "waterquantityId",
"sourceName": "msdyn_waterquantityid",
"sourceOrdering": 1,
"description": "Unique identifier for entity instances.",
"displayName": "Water quantity",
"isNullable": false,
"purpose": "identifiedBy",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "systemrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unique identifier for entity instances."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water quantity"
]
]
}
}
]
},
{
"traitReference": "is.CDS.sourceNamed",
"arguments": [
"msdyn_waterquantityid"
]
}
]
},
{
"name": "TTLInSeconds",
"sourceName": "ttlinseconds",
"sourceOrdering": 2,
"description": "Time to live in seconds.",
"displayName": "Time to live",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "1",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time to live in seconds."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Time to live"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "1"
}
]
}
]
},
{
"name": "partitionId",
"sourceName": "partitionid",
"sourceOrdering": 3,
"description": "Logical partition identifier. A logical partition consists of a set of records with same partition ID.",
"displayName": "Partition Id",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Logical partition identifier. A logical partition consists of a set of records with same partition ID."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Partition Id"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "createdOn",
"sourceName": "createdon",
"sourceOrdering": 4,
"description": "Date and time when the record was created.",
"displayName": "Created On",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was created."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Created On"
]
]
}
}
]
}
]
},
{
"name": "modifiedOn",
"sourceName": "modifiedon",
"sourceOrdering": 6,
"description": "Date and time when the record was modified.",
"displayName": "Modified On",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time when the record was modified."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Modified On"
]
]
}
}
]
}
]
},
{
"name": "importSequenceNumber",
"sourceName": "importsequencenumber",
"sourceOrdering": 28,
"description": "Sequence number of the import that created this record.",
"displayName": "Import Sequence Number",
"isNullable": true,
"purpose": "hasA",
"dataType": "integer",
"maximumValue": "2147483647",
"minimumValue": "-2147483648",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Sequence number of the import that created this record."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Import Sequence Number"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "2147483647"
},
{
"name": "minimumValue",
"value": "-2147483648"
}
]
}
]
},
{
"name": "overriddenCreatedOn",
"sourceName": "overriddencreatedon",
"sourceOrdering": 29,
"description": "Date and time that the record was migrated.",
"displayName": "Record Created On",
"isNullable": true,
"purpose": "hasA",
"dataType": "date",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Date and time that the record was migrated."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Record Created On"
]
]
}
}
]
}
]
},
{
"name": "name",
"sourceName": "msdyn_name",
"sourceOrdering": 30,
"description": "The name of the custom entity.",
"displayName": "Name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"The name of the custom entity."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "activityentityname",
"sourceName": "msdyn_activityentityname",
"sourceOrdering": 31,
"description": "Internal reference used to map an entity to the corresponding record.",
"displayName": "Activity entity name",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Internal reference used to map an entity to the corresponding record."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Activity entity name"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "activityid",
"sourceName": "msdyn_activityid",
"sourceOrdering": 32,
"description": "Internal reference used to map the entity to the corresponding record.",
"displayName": "Activity ID",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Internal reference used to map the entity to the corresponding record."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Activity ID"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "activityname",
"sourceName": "msdyn_activityname",
"sourceOrdering": 33,
"description": "Category or reference data used for reporting purposes and populated during the calculation process.",
"displayName": "Activity type",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "255",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Category or reference data used for reporting purposes and populated during the calculation process."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Activity type"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "255"
}
]
}
]
},
{
"name": "description",
"sourceName": "msdyn_description",
"sourceOrdering": 34,
"description": "Optional field to describe the entity.",
"displayName": "Description",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Optional field to describe the entity."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Description"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "origincorrelationid",
"sourceName": "msdyn_origincorrelationid",
"sourceOrdering": 35,
"description": "Optional field to store source unique identifier values for the entity.",
"displayName": "Origin correlation id",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Optional field to store source unique identifier values for the entity."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Origin correlation id"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "quantity",
"sourceName": "msdyn_quantity",
"sourceOrdering": 36,
"description": "Indicates the actual quantity of water that was part of the transaction.",
"displayName": "Quantity",
"isNullable": true,
"purpose": "hasA",
"dataType": "decimal",
"maximumValue": "100000000000",
"minimumValue": "-100000000000",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the actual quantity of water that was part of the transaction."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Quantity"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumValue",
"value": "100000000000"
},
{
"name": "minimumValue",
"value": "-100000000000"
}
]
}
]
},
{
"name": "transactionenddate",
"sourceName": "msdyn_transactionenddate",
"sourceOrdering": 37,
"description": "Indicates the date and time at which the transaction recording ended.",
"displayName": "Transaction end date",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the date and time at which the transaction recording ended."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Transaction end date"
]
]
}
}
]
}
]
},
{
"name": "transactionstartdate",
"sourceName": "msdyn_transactionstartdate",
"sourceOrdering": 38,
"description": "Indicates the date and time at which the transaction recording started.",
"displayName": "Transaction start date",
"isNullable": true,
"purpose": "hasA",
"dataType": "dateTime",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the date and time at which the transaction recording started."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Transaction start date"
]
]
}
}
]
}
]
},
{
"name": "evidence",
"sourceName": "msdyn_evidence",
"sourceOrdering": 39,
"description": "Optional field to indicate the origin for the water quantity data.",
"displayName": "Evidence",
"isNullable": true,
"purpose": "hasA",
"dataType": "string",
"maximumLength": "100",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Optional field to indicate the origin for the water quantity data."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Evidence"
]
]
}
}
]
},
{
"traitReference": "is.constrained",
"arguments": [
{
"name": "maximumLength",
"value": "100"
}
]
}
]
},
{
"name": "unit",
"sourceName": "msdyn_unit",
"sourceOrdering": 40,
"description": "Indicates the unit of measurement for the water transaction.",
"displayName": "Unit",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "Unit",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "unitId",
"replaceWith": {
"name": "unit",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the unit of measurement for the water transaction."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Unit"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "waterinstrument",
"sourceName": "msdyn_waterinstrument",
"sourceOrdering": 41,
"description": "Describes the corresponding water instrument for which the water quantity information is being recorded.",
"displayName": "Water instrument",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "WaterInstrument",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "waterinstrumentId",
"replaceWith": {
"name": "waterinstrument",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Describes the corresponding water instrument for which the water quantity information is being recorded."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water instrument"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "dataqualitytype",
"sourceName": "msdyn_dataqualitytype",
"sourceOrdering": 42,
"description": "Description of the data quality that identifies whether the data is metered, measured, or estimated.",
"displayName": "Data quality type",
"isNullable": true,
"purpose": "hasA",
"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",
"Actual",
"700610000",
"1"
],
[
"en",
"Estimated",
"700610001",
"2"
],
[
"en",
"Metered",
"700610002",
"3"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'dataqualitytype_display' is added to the 'WaterQuantity' entity to provide the localized display text for the value of the listLookup attribute 'dataqualitytype'",
"name": "dataqualitytype_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Description of the data quality that identifies whether the data is metered, measured, or estimated."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Data quality type"
]
]
}
}
]
}
]
},
{
"name": "facility",
"sourceName": "msdyn_facility",
"sourceOrdering": 44,
"description": "Indicates the facility mapped to the water instrument.",
"displayName": "Facility",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "Facility",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "facilityId",
"replaceWith": {
"name": "facility",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the facility mapped to the water instrument."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Facility"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "industrialprocesstype",
"sourceName": "msdyn_industrialprocesstype",
"sourceOrdering": 45,
"description": "Indicates the process for which the water instrument is being used.",
"displayName": "Industrial process type",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "IndustrialProcessType",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "industrialprocesstypeId",
"replaceWith": {
"name": "industrialprocesstype",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the process for which the water instrument is being used."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Industrial process type"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "organizationalunit",
"sourceName": "msdyn_organizationalunit",
"sourceOrdering": 46,
"description": "Indicates the organizational unit where the water instrument is located.",
"displayName": "Organizational unit",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "OrganizationalUnit",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "sustainabilityorganizationalunitId",
"replaceWith": {
"name": "organizationalunit",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the organizational unit where the water instrument is located."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Organizational unit"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "watersource",
"sourceName": "msdyn_watersource",
"sourceOrdering": 47,
"description": "Indicates the source from which the water enters or leaves the instrument.",
"displayName": "Water source",
"isNullable": true,
"purpose": "hasA",
"dataType": "entityId",
"entity": {
"source": "WaterSource",
"operations": [
{
"$type": "replaceAsForeignKey",
"condition": "referenceOnly",
"reference": "watersourceId",
"replaceWith": {
"name": "watersource",
"dataType": "entityId",
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "none"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the source from which the water enters or leaves the instrument."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water source"
]
]
}
}
]
},
{
"traitReference": "is.CDS.lookup",
"arguments": [
{
"name": "style",
"value": "single"
}
]
}
]
}
}
]
}
},
{
"name": "watertransactiontype",
"sourceName": "msdyn_watertransactiontype",
"sourceOrdering": 48,
"description": "Indicates the type of transaction related to water flow, such as withdrawal, discharge, consumption, or recycled.",
"displayName": "Water transaction type",
"isNullable": true,
"purpose": "hasA",
"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",
"Withdrawal",
"700610000",
"1"
],
[
"en",
"Discharge",
"700610001",
"2"
],
[
"en",
"Consumption",
"700610002",
"3"
],
[
"en",
"Recycled",
"700610003",
"4"
]
]
}
}
]
}
]
},
"projections": {
"operations": [
{
"$type": "addSupportingAttribute",
"condition": "virtual",
"supportingAttribute": {
"explanation": "This attribute 'watertransactiontype_display' is added to the 'WaterQuantity' entity to provide the localized display text for the value of the listLookup attribute 'watertransactiontype'",
"name": "watertransactiontype_display",
"purpose": "hasA",
"dataType": "localizedDisplayText",
"isReadOnly": true
}
}
]
},
"appliedTraits": [
{
"traitReference": "is.requiredAtLevel",
"arguments": [
{
"name": "level",
"value": "applicationrequired"
}
]
},
{
"traitReference": "is.localized.describedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Indicates the type of transaction related to water flow, such as withdrawal, discharge, consumption, or recycled."
]
]
}
}
]
},
{
"traitReference": "is.localized.displayedAs",
"arguments": [
{
"entityReference": {
"entityShape": "localizedTable",
"constantValues": [
[
"en",
"Water transaction type"
]
]
}
}
]
}
]
}
],
"exhibitsTraits": [
{
"traitReference": "is.CDM.attributeGroup",
"arguments": [
{
"entityReference": {
"entityShape": "attributeGroupSet",
"constantValues": [
[
"/Sustainability/CloudforSustainabilityWaterDataModel/WaterQuantity.1.0.cdm.json/WaterQuantity/hasAttributes/attributesAddedAtThisScope"
]
]
}
}
]
}
]
}
}
]
}
],
"documentVersion": "1.0"
}