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:
{ "storage" : { "@class" : "IndexUnit", "name" : "ManufacturingIndex", "description" : "", "config" : { "datamodel" : { "classes" : [ { "name" : "OrganizationalResource", "parents" : [ "Fri.ResourceComponent" ], "pkg" : "Fri", "attributes" : [ { "name" : "type", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] }, { "name" : "ResourceComponent", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "currentParent", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.OrganizationalResource" } }, { "name" : "name", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "description", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "deploymentDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } }, { "name" : "obsolescenceDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } } }, { "name" : "imageUrl", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "refPhysicalId", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "refName", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "position", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Common.GeoLocation" } }, { "name" : "refOccurrence", "type" : { "dataType" : "String", "dataStructure" : "List" } } ] }, { "name" : "ResourceAsset", "parents" : [ "Fri.ResourceComponent" ], "pkg" : "Fri", "attributes" : [ { "name" : "paypoints", "type" : { "dataType" : "Reference", "dataStructure" : "Collection", "referenceType" : "Fri.ResourceComponent" } }, { "name" : "constraints", "type" : { "dataType" : "Reference", "dataStructure" : "Collection", "referenceType" : "Fri.ResourceComponent" } }, { "name" : "useHierarchyRollup", "type" : { "dataType" : "Boolean", "dataStructure" : "Singleton" } } ] }, { "name" : "Kpi", "parents" : [ ], "pkg" : "Common", "attributes" : [ { "name" : "name", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "target", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "uom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "item", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "core.Item" } } ] }, { "name" : "KpiValue", "parents" : [ ], "pkg" : "Common", "attributes" : [ { "name" : "value", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "startTimeRange", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } }, { "name" : "endTimeRange", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } }, { "name" : "kpi", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Common.Kpi" } }, { "name" : "calculationTime", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } } ] }, { "name" : "Productivity", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "startDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } } }, { "name" : "endDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } } }, { "name" : "statusCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } } ] }, { "name" : "ProductivityStatus", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "standardValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "customerValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "color", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "track", "type" : { "dataType" : "Boolean", "dataStructure" : "Singleton" } }, { "name" : "standardValueIndex", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } } ] }, { "name" : "IdealCapacity", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "startDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } } }, { "name" : "endDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } } }, { "name" : "capacityValue", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } } ] }, { "name" : "ReportedItem", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "reportedQuantity", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "reportedUsageCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "reportedQualityCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } }, { "name" : "usageDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } } ] }, { "name" : "ItemUsage", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "standardValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "customerValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "standardValueIndex", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } } ] }, { "name" : "ItemQuality", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "standardValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "customerValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "standardValueIndex", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } } ] }, { "name" : "Breakdown", "parents" : [ ], "pkg" : "Fri", "attributes" : [ { "name" : "startDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "-99999999-01-01T00:00:00" } } }, { "name" : "endDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "+99999999-12-31T23:59:59" } } }, { "name" : "reasonCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } } ] }, { "name" : "GeoLocation", "parents" : [ ], "pkg" : "Common", "attributes" : [ { "name" : "lat", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "lng", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "description", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] }, { "name" : "HistoryResourceComponent", "parents" : [ ], "pkg" : "history", "attributes" : [ { "name" : "dayDate", "type" : { "dataType" : "Date", "dataStructure" : "Singleton" } }, { "name" : "quantityTotal", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "quantityGood", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "quantityIdeal", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "durationNoOp", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "durationProd", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "durationScheduled", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "durationUnscheduled", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "resourceComponent", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceComponent" } }, { "name" : "type", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] }, { "name" : "ExecutionWorkOrder", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "actualStartDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "actualEndDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "completedQuantity", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" }, "annotation" : { "defaultValue" : { "value" : "0" } } }, { "name" : "progressStatus", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } }, { "name" : "factory", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.OrganizationalResource" } } ] }, { "name" : "WorkOrder", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "scheduledStartDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "scheduledEndDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "lateToleranceDays", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "maturity", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "orderQuantity", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "order", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "mfgItem", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Common.MfgItem" } }, { "name" : "underTolerancePercent", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } } ] }, { "name" : "WorkOrderMaturity", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "standardValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "customerValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "standardValueIndex", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } } ] }, { "name" : "WorkOrderOperationMaturity", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "standardValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "customerValue", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "standardValueIndex", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } } ] }, { "name" : "ExecutionOperation", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "actualStartDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "actualEndDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "workCenter", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.OrganizationalResource" } }, { "name" : "order", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Ppi.ExecutionWorkOrder" } } ] }, { "name" : "WorkOrderOperation", "parents" : [ ], "pkg" : "Ppi", "attributes" : [ { "name" : "scheduledStartDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "scheduledEndDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" }, "annotation" : { } }, { "name" : "maturity", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "order", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Ppi.WorkOrder" } }, { "name" : "operation", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] }, { "name" : "MfgItem", "parents" : [ ], "pkg" : "Common", "attributes" : [ { "name" : "mfgItem", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "factory", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceComponent" } }, { "name" : "refPhysicalId", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "refName", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] }, { "name" : "OperationReportedItem", "parents" : [ "core.Item" ], "pkg" : "Ppi", "attributes" : [ { "name" : "completedQuantity", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "operation", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Ppi.ExecutionOperation" } }, { "name" : "reportedQuantity", "type" : { "dataType" : "Float", "dataStructure" : "Singleton" } }, { "name" : "reportedUsageCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "reportedQualityCustom", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } }, { "name" : "usageDate", "type" : { "dataType" : "LocalDateTime", "dataStructure" : "Singleton" } }, { "name" : "resource", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceAsset" } } ] }, { "name" : "HistoryChecker", "parents" : [ ], "pkg" : "history", "attributes" : [ { "name" : "dayDate", "type" : { "dataType" : "Date", "dataStructure" : "Singleton" } }, { "name" : "dailyResourceComponent", "type" : { "dataType" : "Boolean", "dataStructure" : "Singleton" } }, { "name" : "nbReportedItems", "type" : { "dataType" : "Integer", "dataStructure" : "Singleton" } }, { "name" : "dailyCustomMaps", "type" : { "dataType" : "Boolean", "dataStructure" : "Singleton" } } ] }, { "name" : "HistoryCustomMaps", "parents" : [ ], "pkg" : "history", "attributes" : [ { "name" : "quantities", "type" : { "dataType" : "Float", "dataStructure" : "Map" } }, { "name" : "durations", "type" : { "dataType" : "Float", "dataStructure" : "Map" } }, { "name" : "dayDate", "type" : { "dataType" : "Date", "dataStructure" : "Singleton" } }, { "name" : "resourceComponent", "type" : { "dataType" : "Reference", "dataStructure" : "Singleton", "referenceType" : "Fri.ResourceComponent" } }, { "name" : "type", "type" : { "dataType" : "String", "dataStructure" : "Singleton" } } ] } ] } } }, "version" : { "value" : "1.2" } } -
Save the file as
ManufacturingIndex.jsonon your local environment.