Define Simulator Template
A simulator template enables you to generate mock data using which you can test your business flows and identify potential issues.
Oracle Intelligent Track and Trace enables this simulation functionality by providing you a mechanism to define a simulator template for each document type in your business flow. In a simulator template, you specify a list of values for the JSON schema attributes, using which the application generates mock documents. You can specify values for all the JSON schema attributes, or can choose a few important ones which are essential for metadata template and schema generation.
To facilitate the generation of mock data, Oracle Intelligent Track and Trace provides a list of attribute types which you can use to assign random values to the JSON attributes in the simulator template.
Type | Type Definition/Syntax | Example |
---|---|---|
Constant |
|
To support "CONSTANT_DATE", specify |
Random Date |
|
Example:
|
Random Number |
|
Example:
|
Random From List |
|
Example:
To support "Random Boolean from List", specify " |
Random Money |
|
Decimals is optional. If not specified, only whole numbers (i.e, non-fractional) are generated. |
Random Measure |
|
Example:
Decimals is optional. If not specified, only whole numbers (i.e, non-fractional) are generated. |
Random String |
|
Example:
|
Usage Example
{
"attributes": [
{
"field": "#/properties/IpEventId",
"label": "IpEventId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/weightInKilograms" : {
"label": "weightInKilograms",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 72,
"highLimit": 80.5,
"decimals": 3
}
},
{
"field": "#/properties/EventType",
"label": "EventType",
"modelDefault": {
"type": "RANDOM_FROM_LIST",
"values": [
"MANUFACTURING",
"RECEIVING",
"STANDALONE"
]
}
},
{
"field": "#/properties/InspectionPlanId",
"label": "InspectionPlanId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/InspectionLevelId",
"label": "InspectionLevelId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/IpCriteriaId",
"label": "IpCriteriaId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SourceLineQty",
"label": "SourceLineQty",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/UomCode",
"label": "UomCode",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/QtyRequested",
"label": "QtyRequested",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SamplingQty",
"label": "SamplingQty",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/QtyInspected",
"label": "QtyInspected",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/QtyAccepted",
"label": "QtyAccepted",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/QtyRejected",
"label": "QtyRejected",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/OriginalDisposition",
"label": "OriginalDisposition",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/InspectionStatus",
"label": "InspectionStatus",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/InlineFlag",
"label": "InlineFlag",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/DraftFlag",
"label": "DraftFlag",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/InspectedBy",
"label": "InspectedBy",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/InspectionDate",
"label": "InspectionDate",
"modelDefault": {
"type": "RANDOM_DATE",
"value": "PAST"
}
},
{
"field": "#/properties/DispositionDate",
"label": "DispositionDate",
"modelDefault": {
"type": "RANDOM_DATE",
"value": "PAST"
}
},
{
"field": "#/properties/InventoryItemId",
"label": "InventoryItemId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/OrganizationId",
"label": "OrganizationId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/RevisionId",
"label": "RevisionId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/ItemRevision",
"label": "ItemRevision",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/CategorySetId",
"label": "CategorySetId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/CategoryId",
"label": "CategoryId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/WorkOrderId",
"label": "WorkOrderId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/WoOperationId",
"label": "WoOperationId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/OperationSeqNumber",
"label": "OperationSeqNumber",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/DispatchStatus",
"label": "DispatchStatus",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/WorkCenterId",
"label": "WorkCenterId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/WorkAreaId",
"label": "WorkAreaId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/ResourceId",
"label": "ResourceId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SubinventoryCode",
"label": "SubinventoryCode",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/LocatorId",
"label": "LocatorId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/LotNumber",
"label": "LotNumber",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/TransactionType",
"label": "TransactionType",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/SourceOrgId",
"label": "SourceOrgId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SupplierId",
"label": "SupplierId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SupplierSiteId",
"label": "SupplierSiteId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/CustomerId",
"label": "CustomerId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/DocType",
"label": "DocType",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/DocNumber",
"label": "DocNumber",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/DocLineNumber",
"label": "DocLineNumber",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/DocScheduleNumber",
"label": "DocScheduleNumber",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/ReceiptNum",
"label": "ReceiptNum",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/ShipmentHeaderId",
"label": "ShipmentHeaderId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/ShipmentLineId",
"label": "ShipmentLineId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/SupplierLotNum",
"label": "SupplierLotNum",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/InterfaceTransactionId",
"label": "InterfaceTransactionId",
"modelDefault": {
"type": "RANDOM_NUMBER",
"lowLimit": 10,
"highLimit": 100000
}
},
{
"field": "#/properties/CreatedBy",
"label": "CreatedBy",
"modelDefault": {
"type": "RANDOM_STRING",
"minLength": 10,
"maxLength": 20,
"numeric": false,
"prefix": null,
"suffix": null
}
},
{
"field": "#/properties/CreationDate",
"label": "CreationDate",
"modelDefault": {
"type": "RANDOM_DATE",
"value": "PAST"
}
}
],
"fixedValues": []
}