Creating the Source Code File
To import data model, you need to create the code file containing the data.
-
Open a text editor and copy the following code:
{ "indexunit" : { "@class" : "IndexUnit", "config" : { "datamodel" : { "classes" : [ { "attributes" : [ { "name" : "type", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } } ], "name" : "OrganizationalResource", "parents" : [ "Fri.ResourceComponent" ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "currentParent", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Fri.OrganizationalResource" } }, { "name" : "name", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "description", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "deploymentDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } }, "name" : "obsolescenceDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "imageUrl", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "refPhysicalId", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "refName", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } } ], "name" : "ResourceComponent", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ ], "name" : "ResourceAsset", "parents" : [ "Fri.ResourceComponent" ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "name", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "target", "type" : { "dataStructure" : "Singleton", "dataType" : "Float" } }, { "name" : "uom", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "item", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "core.Item" } } ], "name" : "Kpi", "parents" : [ ], "pkg" : "Common" }, { "attributes" : [ { "name" : "value", "type" : { "dataStructure" : "Singleton", "dataType" : "Float" } }, { "name" : "startTimeRange", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "endTimeRange", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "kpi", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Common.Kpi" } }, { "name" : "calculationTime", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } } ], "name" : "KpiValue", "parents" : [ ], "pkg" : "Common" }, { "attributes" : [ { "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } }, "name" : "startDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } }, "name" : "endDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "statusCustom", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "resource", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Fri.ResourceAsset" } } ], "name" : "Productivity", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "standardValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "customerValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "color", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "track", "type" : { "dataStructure" : "Singleton", "dataType" : "Boolean" } }, { "name" : "standardValueIndex", "type" : { "dataStructure" : "Singleton", "dataType" : "Integer" } } ], "name" : "ProductivityStatus", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } }, "name" : "startDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } }, "name" : "endDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "capacityValue", "type" : { "dataStructure" : "Singleton", "dataType" : "Float" } }, { "name" : "resource", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Fri.ResourceAsset" } } ], "name" : "IdealCapacity", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "reportedQuantity", "type" : { "dataStructure" : "Singleton", "dataType" : "Float" } }, { "name" : "reportedUsageCustom", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "reportedQualityCustom", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "resource", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Fri.ResourceAsset" } }, { "name" : "usageDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } } ], "name" : "ReportedItem", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "standardValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "customerValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "standardValueIndex", "type" : { "dataStructure" : "Singleton", "dataType" : "Integer" } } ], "name" : "ItemUsage", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "name" : "standardValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "customerValue", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "standardValueIndex", "type" : { "dataStructure" : "Singleton", "dataType" : "Integer" } } ], "name" : "ItemQuality", "parents" : [ ], "pkg" : "Fri" }, { "attributes" : [ { "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } }, "name" : "startDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } }, "name" : "endDate", "type" : { "dataStructure" : "Singleton", "dataType" : "LocalDateTime" } }, { "name" : "reasonCustom", "type" : { "dataStructure" : "Singleton", "dataType" : "String" } }, { "name" : "resource", "type" : { "dataStructure" : "Singleton", "dataType" : "Reference", "referenceType" : "Fri.ResourceAsset" } } ], "name" : "Breakdown", "parents" : [ ], "pkg" : "Fri" } ] } }, "description" : "", "name" : "ManufacturingIndex" }, "version" : { "value" : "1.1" } }
-
Save the file as
ManufacturingIndex.json
on your local environment.