openepcis / epcis-testdata-generator

EPCIS 2.0 Testdata Generator
https://openepcis.io
Apache License 2.0
3 stars 2 forks source link

Q: How to configure tool that inherited SSCC appears in parentID, not childEPCList field #31

Closed RalphTro closed 1 year ago

RalphTro commented 1 year ago

Dear @Aravinda93 , Brief question: if you have a look at the below design template and execute it in the tool, you will see that the SSCC in the last (i.e. unloading event) appears in the childEPCList.

How can I configure the tool that the SSCC appears in the parentID field?

And do you see any way that the childQuantities in the loading event (at the beginning of the chain) can be used to populate the childQuantityList in the unloading event?

Many thanks in advance for your reply/sharing yor thoughts.

Kind regards, @RalphTro

{
    "eventNodeInfo": [
        {
            "eventId": 1,
            "eventType": "AggregationEvent",
            "eventInfo": {
                "eventCount": 1,
                "identifierSyntax": "URN",
                "vocabularySyntax": "WebURI",
                "eventType": "AggregationEvent",
                "importEvent": false,
                "ordinaryEvent": true,
                "eventTimeSelector": "TimeRange",
                "eventTime": {
                    "specificTime": "2023-07-20T09:02:09.000",
                    "fromTime": "2023-07-19T06:00",
                    "toTime": "2023-07-19T13:59:59",
                    "timeZoneOffset": "+01:00"
                },
                "RecordTimeOption": "no",
                "recordTimeType": "SAME_AS_EVENT_TIME",
                "readpointselector": "SGLN",
                "readPoint": {
                    "gcpLength": null,
                    "gln": "4012345000115",
                    "extensionType": "static"
                },
                "businesslocationselector": null,
                "bizLocation": {
                    "gcpLength": null
                },
                "businessStep": "LOADING",
                "disposition": null,
                "eventID": false,
                "eventIdType": "UUID",
                "hashAlgorithm": "sha-256",
                "action": "ADD",
                "error": {
                    "ErrorTimeZone": "+02:00",
                    "ErrorDeclarationTimeSelector": "SpecificTime",
                    "ErrorReasonType": null,
                    "errorCorrectiveIdsList": [],
                    "errorCorrectiveCount": 0,
                    "ErrorDeclarationTime": "2023-07-20T09:02:09.000",
                    "ErrorDeclarationTimeFrom": "2023-07-19T09:02:09.000",
                    "ErrorDeclarationTimeTo": "2023-07-20T09:02:09.000",
                    "errorExtensions": []
                },
                "persistentDispositionCount": 0,
                "persistentDispositionList": [],
                "bizTransactionCount": 0,
                "businessTransactionList": [],
                "sensorElementList": [],
                "referencedIdentifier": [],
                "outputReferencedIdentifier": [],
                "parentReferencedIdentifier": {},
                "userExtensions": [],
                "ilmd": [],
                "parentID": "",
                "epcList": [],
                "quantityList": [],
                "outputEPCList": [],
                "outputQuantityList": [],
                "sources": [],
                "destinations": []
            }
        },
        {
            "eventId": 4,
            "eventType": "ObjectEvent",
            "eventInfo": {
                "eventCount": 1,
                "identifierSyntax": "URN",
                "vocabularySyntax": "WebURI",
                "eventType": "ObjectEvent",
                "importEvent": false,
                "ordinaryEvent": true,
                "eventTimeSelector": "TimeRange",
                "eventTime": {
                    "specificTime": "2023-07-20T09:11:45.000",
                    "fromTime": "2023-07-19T14:15:45",
                    "toTime": "2023-07-19T17:59:59",
                    "timeZoneOffset": "+01:00"
                },
                "RecordTimeOption": "no",
                "recordTimeType": "SAME_AS_EVENT_TIME",
                "readpointselector": "SGLN",
                "readPoint": {
                    "gcpLength": null,
                    "gln": "4012345000115",
                    "extensionType": "static"
                },
                "businesslocationselector": "SGLN",
                "bizLocation": {
                    "gcpLength": null,
                    "gln": "4012345000122",
                    "extensionType": "static"
                },
                "businessStep": "STAGING_OUTBOUND",
                "disposition": null,
                "eventID": false,
                "eventIdType": "UUID",
                "hashAlgorithm": "sha-256",
                "action": "OBSERVE",
                "error": {
                    "ErrorTimeZone": "+02:00",
                    "ErrorDeclarationTimeSelector": "SpecificTime",
                    "ErrorReasonType": null,
                    "errorCorrectiveIdsList": [],
                    "errorCorrectiveCount": 0,
                    "ErrorDeclarationTime": "2023-07-20T09:11:45.000",
                    "ErrorDeclarationTimeFrom": "2023-07-19T09:11:45.000",
                    "ErrorDeclarationTimeTo": "2023-07-20T09:11:45.000",
                    "errorExtensions": []
                },
                "persistentDispositionCount": 0,
                "persistentDispositionList": [],
                "bizTransactionCount": 0,
                "businessTransactionList": [],
                "sensorElementList": [],
                "referencedIdentifier": [],
                "outputReferencedIdentifier": [],
                "parentReferencedIdentifier": {},
                "userExtensions": [],
                "ilmd": [],
                "parentID": "",
                "epcList": [],
                "quantityList": [],
                "outputEPCList": [],
                "outputQuantityList": [],
                "sources": [],
                "destinations": []
            }
        },
        {
            "eventId": 5,
            "eventType": "ObjectEvent",
            "eventInfo": {
                "eventCount": 1,
                "identifierSyntax": "URN",
                "vocabularySyntax": "WebURI",
                "eventType": "ObjectEvent",
                "importEvent": false,
                "ordinaryEvent": true,
                "eventTimeSelector": "TimeRange",
                "eventTime": {
                    "specificTime": "2023-07-20T09:15:06.000",
                    "fromTime": "2023-07-19T16:00",
                    "toTime": "2023-07-19T22:00",
                    "timeZoneOffset": "+01:00"
                },
                "RecordTimeOption": "no",
                "recordTimeType": "SAME_AS_EVENT_TIME",
                "readpointselector": "SGLN",
                "readPoint": {
                    "gcpLength": null,
                    "gln": "4012345000122",
                    "extensionType": "static"
                },
                "businesslocationselector": null,
                "bizLocation": {
                    "gcpLength": null
                },
                "businessStep": "DEPARTING",
                "disposition": "IN_TRANSIT",
                "eventID": false,
                "eventIdType": "UUID",
                "hashAlgorithm": "sha-256",
                "action": "OBSERVE",
                "error": {
                    "ErrorTimeZone": "+02:00",
                    "ErrorDeclarationTimeSelector": "SpecificTime",
                    "ErrorReasonType": null,
                    "errorCorrectiveIdsList": [],
                    "errorCorrectiveCount": 0,
                    "ErrorDeclarationTime": "2023-07-20T09:15:06.000",
                    "ErrorDeclarationTimeFrom": "2023-07-19T09:15:06.000",
                    "ErrorDeclarationTimeTo": "2023-07-20T09:15:06.000",
                    "errorExtensions": []
                },
                "persistentDispositionCount": 0,
                "persistentDispositionList": [],
                "bizTransactionCount": 0,
                "businessTransactionList": [],
                "sensorElementList": [],
                "referencedIdentifier": [],
                "outputReferencedIdentifier": [],
                "parentReferencedIdentifier": {},
                "userExtensions": [],
                "ilmd": [],
                "parentID": "",
                "epcList": [],
                "quantityList": [],
                "outputEPCList": [],
                "outputQuantityList": [],
                "sources": [],
                "destinations": []
            }
        },
        {
            "eventId": 6,
            "eventType": "ObjectEvent",
            "eventInfo": {
                "eventCount": 1,
                "identifierSyntax": "URN",
                "vocabularySyntax": "WebURI",
                "eventType": "ObjectEvent",
                "importEvent": false,
                "ordinaryEvent": true,
                "eventTimeSelector": "TimeRange",
                "eventTime": {
                    "specificTime": "2023-07-20T09:34:03.000",
                    "fromTime": "2023-07-19T18:45",
                    "toTime": "2023-07-21T15:30",
                    "timeZoneOffset": "+01:00"
                },
                "RecordTimeOption": "no",
                "recordTimeType": "SAME_AS_EVENT_TIME",
                "readpointselector": "SGLN",
                "readPoint": {
                    "gcpLength": null,
                    "gln": "4012345000009",
                    "extensionType": "static"
                },
                "businesslocationselector": "SGLN",
                "bizLocation": {
                    "gcpLength": null,
                    "gln": "4000001000029",
                    "extensionType": "static"
                },
                "businessStep": "ARRIVING",
                "disposition": "IN_PROGRESS",
                "eventID": false,
                "eventIdType": "UUID",
                "hashAlgorithm": "sha-256",
                "action": "OBSERVE",
                "error": {
                    "ErrorTimeZone": "+02:00",
                    "ErrorDeclarationTimeSelector": "SpecificTime",
                    "ErrorReasonType": null,
                    "errorCorrectiveIdsList": [],
                    "errorCorrectiveCount": 0,
                    "ErrorDeclarationTime": "2023-07-20T09:34:03.000",
                    "ErrorDeclarationTimeFrom": "2023-07-19T09:34:03.000",
                    "ErrorDeclarationTimeTo": "2023-07-20T09:34:03.000",
                    "errorExtensions": []
                },
                "persistentDispositionCount": 0,
                "persistentDispositionList": [],
                "bizTransactionCount": 0,
                "businessTransactionList": [],
                "sensorElementList": [],
                "referencedIdentifier": [],
                "outputReferencedIdentifier": [],
                "parentReferencedIdentifier": {},
                "userExtensions": [],
                "ilmd": [],
                "parentID": "",
                "epcList": [],
                "quantityList": [],
                "outputEPCList": [],
                "outputQuantityList": [],
                "sources": [],
                "destinations": []
            }
        },
        {
            "eventId": 7,
            "eventType": "AggregationEvent",
            "eventInfo": {
                "eventCount": 1,
                "identifierSyntax": "URN",
                "vocabularySyntax": "WebURI",
                "eventType": "AggregationEvent",
                "importEvent": false,
                "ordinaryEvent": true,
                "eventTimeSelector": "TimeRange",
                "eventTime": {
                    "specificTime": "2023-07-20T09:37:06.000",
                    "fromTime": "2023-07-19T20:00",
                    "toTime": "2023-07-21T20:00",
                    "timeZoneOffset": "+01:00"
                },
                "RecordTimeOption": "no",
                "recordTimeType": "SAME_AS_EVENT_TIME",
                "readpointselector": "SGLN",
                "readPoint": {
                    "gcpLength": null,
                    "gln": "4000001000029",
                    "extensionType": "static"
                },
                "businesslocationselector": null,
                "bizLocation": {
                    "gcpLength": null
                },
                "businessStep": "UNLOADING",
                "disposition": null,
                "eventID": false,
                "eventIdType": "UUID",
                "hashAlgorithm": "sha-256",
                "action": "DELETE",
                "error": {
                    "ErrorTimeZone": "+02:00",
                    "ErrorDeclarationTimeSelector": "SpecificTime",
                    "ErrorReasonType": null,
                    "errorCorrectiveIdsList": [],
                    "errorCorrectiveCount": 0,
                    "ErrorDeclarationTime": "2023-07-20T09:37:06.000",
                    "ErrorDeclarationTimeFrom": "2023-07-19T09:37:06.000",
                    "ErrorDeclarationTimeTo": "2023-07-20T09:37:06.000",
                    "errorExtensions": []
                },
                "persistentDispositionCount": 0,
                "persistentDispositionList": [],
                "bizTransactionCount": 0,
                "businessTransactionList": [],
                "sensorElementList": [],
                "referencedIdentifier": [],
                "outputReferencedIdentifier": [],
                "parentReferencedIdentifier": {},
                "userExtensions": [],
                "ilmd": [],
                "parentID": "",
                "epcList": [],
                "quantityList": [],
                "outputEPCList": [],
                "outputQuantityList": [],
                "sources": [],
                "destinations": []
            }
        }
    ],
    "identifiersNodeInfo": [
        {
            "identifiersId": 2,
            "identifierSyntax": "WebURI",
            "parentData": {
                "identifierType": "sscc",
                "gcpLength": null,
                "gcp": "4012345",
                "serialType": "random"
            }
        },
        {
            "identifiersId": 3,
            "identifierSyntax": "WebURI",
            "classData": {
                "identifierType": "lgtin",
                "gcpLength": 7,
                "quantityType": "Fixed Measure Quantity",
                "uom": null,
                "lgtin": "04012345123456",
                "serialType": "random",
                "quantity": 8
            }
        }
    ],
    "connectorsInfo": [
        {
            "ID": 1,
            "name": "connector1",
            "source": "2",
            "target": "1",
            "hideInheritParentCount": false
        },
        {
            "ID": 2,
            "name": "connector2",
            "source": "3",
            "target": "1",
            "hideInheritParentCount": true,
            "epcCount": 0,
            "inheritParentCount": 0,
            "classCount": 1,
            "quantity": 0
        },
        {
            "ID": 3,
            "name": "connector3",
            "source": "1",
            "target": "4",
            "hideInheritParentCount": false,
            "epcCount": 0,
            "inheritParentCount": 1,
            "classCount": 0,
            "quantity": 0
        },
        {
            "ID": 4,
            "name": "connector4",
            "source": "4",
            "target": "5",
            "hideInheritParentCount": false,
            "epcCount": 1,
            "inheritParentCount": 0,
            "classCount": 0,
            "quantity": 0
        },
        {
            "ID": 5,
            "name": "connector5",
            "source": "5",
            "target": "6",
            "hideInheritParentCount": false,
            "epcCount": 1,
            "inheritParentCount": 0,
            "classCount": 0,
            "quantity": 0
        },
        {
            "ID": 6,
            "name": "connector6",
            "source": "6",
            "target": "7",
            "hideInheritParentCount": false,
            "epcCount": 1,
            "inheritParentCount": 0,
            "classCount": 0,
            "quantity": 0
        }
    ],
    "drawflowInfo": {
        "drawflow": {
            "Home": {
                "data": {
                    "1": {
                        "id": 1,
                        "name": "Events",
                        "data": {
                            "ID": 1,
                            "eventType": "AggregationEvent"
                        },
                        "class": "AggregationEvent",
                        "html": "Events",
                        "typenode": "vue",
                        "inputs": {
                            "input_1": {
                                "connections": [
                                    {
                                        "node": "2",
                                        "input": "output_1"
                                    }
                                ]
                            },
                            "input_2": {
                                "connections": [
                                    {
                                        "node": "3",
                                        "input": "output_1"
                                    }
                                ]
                            }
                        },
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "4",
                                        "output": "input_1"
                                    }
                                ]
                            }
                        },
                        "pos_x": 242,
                        "pos_y": 162
                    },
                    "2": {
                        "id": 2,
                        "name": "ParentIdentifiers",
                        "data": {
                            "ID": 2,
                            "eventType": "ParentID"
                        },
                        "class": "ParentID",
                        "html": "ParentIdentifiers",
                        "typenode": "vue",
                        "inputs": {},
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "1",
                                        "output": "input_1"
                                    }
                                ]
                            }
                        },
                        "pos_x": 37,
                        "pos_y": 8
                    },
                    "3": {
                        "id": 3,
                        "name": "Identifiers",
                        "data": {
                            "ID": 3,
                            "eventType": "Identifiers"
                        },
                        "class": "Identifiers",
                        "html": "Identifiers",
                        "typenode": "vue",
                        "inputs": {},
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "1",
                                        "output": "input_2"
                                    }
                                ]
                            }
                        },
                        "pos_x": 39,
                        "pos_y": 326
                    },
                    "4": {
                        "id": 4,
                        "name": "Events",
                        "data": {
                            "ID": 4,
                            "eventType": "ObjectEvent"
                        },
                        "class": "ObjectEvent",
                        "html": "Events",
                        "typenode": "vue",
                        "inputs": {
                            "input_1": {
                                "connections": [
                                    {
                                        "node": "1",
                                        "input": "output_1"
                                    }
                                ]
                            }
                        },
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "5",
                                        "output": "input_1"
                                    }
                                ]
                            }
                        },
                        "pos_x": 458,
                        "pos_y": 162
                    },
                    "5": {
                        "id": 5,
                        "name": "Events",
                        "data": {
                            "ID": 5,
                            "eventType": "ObjectEvent"
                        },
                        "class": "ObjectEvent",
                        "html": "Events",
                        "typenode": "vue",
                        "inputs": {
                            "input_1": {
                                "connections": [
                                    {
                                        "node": "4",
                                        "input": "output_1"
                                    }
                                ]
                            }
                        },
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "6",
                                        "output": "input_1"
                                    }
                                ]
                            }
                        },
                        "pos_x": 670,
                        "pos_y": 162
                    },
                    "6": {
                        "id": 6,
                        "name": "Events",
                        "data": {
                            "ID": 6,
                            "eventType": "ObjectEvent"
                        },
                        "class": "ObjectEvent",
                        "html": "Events",
                        "typenode": "vue",
                        "inputs": {
                            "input_1": {
                                "connections": [
                                    {
                                        "node": "5",
                                        "input": "output_1"
                                    }
                                ]
                            }
                        },
                        "outputs": {
                            "output_1": {
                                "connections": [
                                    {
                                        "node": "7",
                                        "output": "input_1"
                                    }
                                ]
                            }
                        },
                        "pos_x": 896,
                        "pos_y": 158
                    },
                    "7": {
                        "id": 7,
                        "name": "Events",
                        "data": {
                            "ID": 7,
                            "eventType": "AggregationEvent"
                        },
                        "class": "AggregationEvent",
                        "html": "Events",
                        "typenode": "vue",
                        "inputs": {
                            "input_1": {
                                "connections": [
                                    {
                                        "node": "6",
                                        "input": "output_1"
                                    }
                                ]
                            },
                            "input_2": {
                                "connections": []
                            }
                        },
                        "outputs": {
                            "output_1": {
                                "connections": []
                            }
                        },
                        "pos_x": 1112,
                        "pos_y": 160
                    }
                }
            }
        }
    }
}
Aravinda93 commented 1 year ago

Dear @RalphTro

We did some analysis of this issue and we need to make some modifications to the front-end and back-end, we have just started making those changes and update you once the issue has been fixed.

With the modifications, we should be able to inherit the identifiers from parent event to ParentID of the child event if applicable.

RalphTro commented 1 year ago

Dear @Aravinda93 , This sounds great! Happy to support this enhancement through testing once your modificatins are deployed.

Aravinda93 commented 1 year ago

Dear @RalphTro

We have modified the code and added the feature to inherit either ParentID or EPC into subsequent events.

If we are inheriting the identifier from ObjectEvent (or similar events) to AggregationEvent (or similar events) then within the connector we should mention what needs to be inherited in the following way:

Also, if we are inheriting the values from AggregationEvent (or similar events) to ObjectEvent (or similar events) then within the connector we should mention what needs to be inherited in the following way:

Currently, the changes are present within the feature branch, will update you once it has been merged into the main and redeployed in the production.

Based on the following approach we have modified your design a bit to make it work for the ParentID inheritance, please test and let us know if you are facing any issues:

Design Template Updated ```json { "eventNodeInfo": [ { "eventId": 1, "eventType": "AggregationEvent", "eventInfo": { "eventCount": 1, "identifierSyntax": "URN", "vocabularySyntax": "WebURI", "eventType": "AggregationEvent", "importEvent": false, "ordinaryEvent": true, "eventTimeSelector": "TimeRange", "eventTime": { "specificTime": "2023-07-20T09:02:09.000", "fromTime": "2023-07-19T06:00", "toTime": "2023-07-19T13:59:59", "timeZoneOffset": "+01:00" }, "RecordTimeOption": "no", "recordTimeType": "SAME_AS_EVENT_TIME", "readpointselector": "SGLN", "readPoint": { "gcpLength": null, "gln": "4012345000115", "extensionType": "static" }, "businesslocationselector": null, "bizLocation": { "gcpLength": null }, "businessStep": "LOADING", "disposition": null, "eventID": false, "eventIdType": "UUID", "hashAlgorithm": "sha-256", "action": "ADD", "error": { "ErrorTimeZone": "+02:00", "ErrorDeclarationTimeSelector": "SpecificTime", "ErrorReasonType": null, "errorCorrectiveIdsList": [], "errorCorrectiveCount": 0, "ErrorDeclarationTime": "2023-07-20T09:02:09.000", "ErrorDeclarationTimeFrom": "2023-07-19T09:02:09.000", "ErrorDeclarationTimeTo": "2023-07-20T09:02:09.000", "errorExtensions": [] }, "persistentDispositionCount": 0, "persistentDispositionList": [], "bizTransactionCount": 0, "businessTransactionList": [], "sensorElementList": [], "referencedIdentifier": [], "outputReferencedIdentifier": [], "parentReferencedIdentifier": {}, "userExtensions": [], "ilmd": [], "parentID": "", "epcList": [], "quantityList": [], "outputEPCList": [], "outputQuantityList": [], "sources": [], "destinations": [] } }, { "eventId": 4, "eventType": "ObjectEvent", "eventInfo": { "eventCount": 1, "identifierSyntax": "URN", "vocabularySyntax": "WebURI", "eventType": "ObjectEvent", "importEvent": false, "ordinaryEvent": true, "eventTimeSelector": "TimeRange", "eventTime": { "specificTime": "2023-07-20T09:11:45.000", "fromTime": "2023-07-19T14:15:45", "toTime": "2023-07-19T17:59:59", "timeZoneOffset": "+01:00" }, "RecordTimeOption": "no", "recordTimeType": "SAME_AS_EVENT_TIME", "readpointselector": "SGLN", "readPoint": { "gcpLength": null, "gln": "4012345000115", "extensionType": "static" }, "businesslocationselector": "SGLN", "bizLocation": { "gcpLength": null, "gln": "4012345000122", "extensionType": "static" }, "businessStep": "STAGING_OUTBOUND", "disposition": null, "eventID": false, "eventIdType": "UUID", "hashAlgorithm": "sha-256", "action": "OBSERVE", "error": { "ErrorTimeZone": "+02:00", "ErrorDeclarationTimeSelector": "SpecificTime", "ErrorReasonType": null, "errorCorrectiveIdsList": [], "errorCorrectiveCount": 0, "ErrorDeclarationTime": "2023-07-20T09:11:45.000", "ErrorDeclarationTimeFrom": "2023-07-19T09:11:45.000", "ErrorDeclarationTimeTo": "2023-07-20T09:11:45.000", "errorExtensions": [] }, "persistentDispositionCount": 0, "persistentDispositionList": [], "bizTransactionCount": 0, "businessTransactionList": [], "sensorElementList": [], "referencedIdentifier": [], "outputReferencedIdentifier": [], "parentReferencedIdentifier": {}, "userExtensions": [], "ilmd": [], "parentID": "", "epcList": [], "quantityList": [], "outputEPCList": [], "outputQuantityList": [], "sources": [], "destinations": [] } }, { "eventId": 5, "eventType": "ObjectEvent", "eventInfo": { "eventCount": 1, "identifierSyntax": "URN", "vocabularySyntax": "WebURI", "eventType": "ObjectEvent", "importEvent": false, "ordinaryEvent": true, "eventTimeSelector": "TimeRange", "eventTime": { "specificTime": "2023-07-20T09:15:06.000", "fromTime": "2023-07-19T16:00", "toTime": "2023-07-19T22:00", "timeZoneOffset": "+01:00" }, "RecordTimeOption": "no", "recordTimeType": "SAME_AS_EVENT_TIME", "readpointselector": "SGLN", "readPoint": { "gcpLength": null, "gln": "4012345000122", "extensionType": "static" }, "businesslocationselector": null, "bizLocation": { "gcpLength": null }, "businessStep": "DEPARTING", "disposition": "IN_TRANSIT", "eventID": false, "eventIdType": "UUID", "hashAlgorithm": "sha-256", "action": "OBSERVE", "error": { "ErrorTimeZone": "+02:00", "ErrorDeclarationTimeSelector": "SpecificTime", "ErrorReasonType": null, "errorCorrectiveIdsList": [], "errorCorrectiveCount": 0, "ErrorDeclarationTime": "2023-07-20T09:15:06.000", "ErrorDeclarationTimeFrom": "2023-07-19T09:15:06.000", "ErrorDeclarationTimeTo": "2023-07-20T09:15:06.000", "errorExtensions": [] }, "persistentDispositionCount": 0, "persistentDispositionList": [], "bizTransactionCount": 0, "businessTransactionList": [], "sensorElementList": [], "referencedIdentifier": [], "outputReferencedIdentifier": [], "parentReferencedIdentifier": {}, "userExtensions": [], "ilmd": [], "parentID": "", "epcList": [], "quantityList": [], "outputEPCList": [], "outputQuantityList": [], "sources": [], "destinations": [] } }, { "eventId": 6, "eventType": "ObjectEvent", "eventInfo": { "eventCount": 1, "identifierSyntax": "URN", "vocabularySyntax": "WebURI", "eventType": "ObjectEvent", "importEvent": false, "ordinaryEvent": true, "eventTimeSelector": "TimeRange", "eventTime": { "specificTime": "2023-07-20T09:34:03.000", "fromTime": "2023-07-19T18:45", "toTime": "2023-07-21T15:30", "timeZoneOffset": "+01:00" }, "RecordTimeOption": "no", "recordTimeType": "SAME_AS_EVENT_TIME", "readpointselector": "SGLN", "readPoint": { "gcpLength": null, "gln": "4012345000009", "extensionType": "static" }, "businesslocationselector": "SGLN", "bizLocation": { "gcpLength": null, "gln": "4000001000029", "extensionType": "static" }, "businessStep": "ARRIVING", "disposition": "IN_PROGRESS", "eventID": false, "eventIdType": "UUID", "hashAlgorithm": "sha-256", "action": "OBSERVE", "error": { "ErrorTimeZone": "+02:00", "ErrorDeclarationTimeSelector": "SpecificTime", "ErrorReasonType": null, "errorCorrectiveIdsList": [], "errorCorrectiveCount": 0, "ErrorDeclarationTime": "2023-07-20T09:34:03.000", "ErrorDeclarationTimeFrom": "2023-07-19T09:34:03.000", "ErrorDeclarationTimeTo": "2023-07-20T09:34:03.000", "errorExtensions": [] }, "persistentDispositionCount": 0, "persistentDispositionList": [], "bizTransactionCount": 0, "businessTransactionList": [], "sensorElementList": [], "referencedIdentifier": [], "outputReferencedIdentifier": [], "parentReferencedIdentifier": {}, "userExtensions": [], "ilmd": [], "parentID": "", "epcList": [], "quantityList": [], "outputEPCList": [], "outputQuantityList": [], "sources": [], "destinations": [] } }, { "eventId": 7, "eventType": "AggregationEvent", "eventInfo": { "eventCount": 1, "identifierSyntax": "URN", "vocabularySyntax": "WebURI", "eventType": "AggregationEvent", "importEvent": false, "ordinaryEvent": true, "eventTimeSelector": "TimeRange", "eventTime": { "specificTime": "2023-07-20T09:37:06.000", "fromTime": "2023-07-19T20:00", "toTime": "2023-07-21T20:00", "timeZoneOffset": "+01:00" }, "RecordTimeOption": "no", "recordTimeType": "SAME_AS_EVENT_TIME", "readpointselector": "SGLN", "readPoint": { "gcpLength": null, "gln": "4000001000029", "extensionType": "static" }, "businesslocationselector": null, "bizLocation": { "gcpLength": null }, "businessStep": "UNLOADING", "disposition": null, "eventID": false, "eventIdType": "UUID", "hashAlgorithm": "sha-256", "action": "DELETE", "error": { "ErrorTimeZone": "+02:00", "ErrorDeclarationTimeSelector": "SpecificTime", "ErrorReasonType": null, "errorCorrectiveIdsList": [], "errorCorrectiveCount": 0, "ErrorDeclarationTime": "2023-07-20T09:37:06.000", "ErrorDeclarationTimeFrom": "2023-07-19T09:37:06.000", "ErrorDeclarationTimeTo": "2023-07-20T09:37:06.000", "errorExtensions": [] }, "persistentDispositionCount": 0, "persistentDispositionList": [], "bizTransactionCount": 0, "businessTransactionList": [], "sensorElementList": [], "referencedIdentifier": [], "outputReferencedIdentifier": [], "parentReferencedIdentifier": {}, "userExtensions": [], "ilmd": [], "parentID": "", "epcList": [], "quantityList": [], "outputEPCList": [], "outputQuantityList": [], "sources": [], "destinations": [] } } ], "identifiersNodeInfo": [ { "identifiersId": 2, "identifierSyntax": "WebURI", "parentData": { "identifierType": "sscc", "gcpLength": null, "gcp": "4012345", "serialType": "random" } }, { "identifiersId": 3, "identifierSyntax": "WebURI", "classData": { "identifierType": "lgtin", "gcpLength": 7, "quantityType": "Fixed Measure Quantity", "uom": null, "lgtin": "04012345123456", "serialType": "random", "quantity": 8 } } ], "connectorsInfo": [ { "ID": 1, "name": "connector1", "source": "2", "target": "1", "hideInheritParentCount": false }, { "ID": 2, "name": "connector2", "source": "3", "target": "1", "hideInheritParentCount": true, "epcCount": 0, "inheritParentCount": 0, "classCount": 1, "quantity": 0 }, { "ID": 3, "name": "connector3", "source": "1", "target": "4", "hideInheritParentCount": false, "epcCount": 0, "inheritParentCount": 1, "classCount": 0, "quantity": 0 }, { "ID": 4, "name": "connector4", "source": "4", "target": "5", "hideInheritParentCount": false, "epcCount": 1, "inheritParentCount": 0, "classCount": 0, "quantity": 0 }, { "ID": 5, "name": "connector5", "source": "5", "target": "6", "hideInheritParentCount": false, "epcCount": 1, "inheritParentCount": 0, "classCount": 0, "quantity": 0 }, { "ID": 6, "name": "connector6", "source": "6", "target": "7", "hideInheritParentCount": true, "epcCount": 0, "inheritParentCount": 1, "classCount": 0, "quantity": 0 } ], "drawflowInfo": { "drawflow": { "Home": { "data": { "1": { "id": 1, "name": "Events", "data": { "ID": 1, "eventType": "AggregationEvent" }, "class": "AggregationEvent", "html": "Events", "typenode": "vue", "inputs": { "input_1": { "connections": [ { "node": "2", "input": "output_1" } ] }, "input_2": { "connections": [ { "node": "3", "input": "output_1" } ] } }, "outputs": { "output_1": { "connections": [ { "node": "4", "output": "input_1" } ] } }, "pos_x": 265, "pos_y": 151 }, "2": { "id": 2, "name": "ParentIdentifiers", "data": { "ID": 2, "eventType": "ParentID" }, "class": "ParentID", "html": "ParentIdentifiers", "typenode": "vue", "inputs": {}, "outputs": { "output_1": { "connections": [ { "node": "1", "output": "input_1" } ] } }, "pos_x": 17, "pos_y": 82 }, "3": { "id": 3, "name": "Identifiers", "data": { "ID": 3, "eventType": "Identifiers" }, "class": "Identifiers", "html": "Identifiers", "typenode": "vue", "inputs": {}, "outputs": { "output_1": { "connections": [ { "node": "1", "output": "input_2" } ] } }, "pos_x": 16, "pos_y": 268 }, "4": { "id": 4, "name": "Events", "data": { "ID": 4, "eventType": "ObjectEvent" }, "class": "ObjectEvent", "html": "Events", "typenode": "vue", "inputs": { "input_1": { "connections": [ { "node": "1", "input": "output_1" } ] } }, "outputs": { "output_1": { "connections": [ { "node": "5", "output": "input_1" } ] } }, "pos_x": 466, "pos_y": 154 }, "5": { "id": 5, "name": "Events", "data": { "ID": 5, "eventType": "ObjectEvent" }, "class": "ObjectEvent", "html": "Events", "typenode": "vue", "inputs": { "input_1": { "connections": [ { "node": "4", "input": "output_1" } ] } }, "outputs": { "output_1": { "connections": [ { "node": "6", "output": "input_1" } ] } }, "pos_x": 666, "pos_y": 152 }, "6": { "id": 6, "name": "Events", "data": { "ID": 6, "eventType": "ObjectEvent" }, "class": "ObjectEvent", "html": "Events", "typenode": "vue", "inputs": { "input_1": { "connections": [ { "node": "5", "input": "output_1" } ] } }, "outputs": { "output_1": { "connections": [ { "node": "7", "output": "input_1" } ] } }, "pos_x": 889, "pos_y": 144 }, "7": { "id": 7, "name": "Events", "data": { "ID": 7, "eventType": "AggregationEvent" }, "class": "AggregationEvent", "html": "Events", "typenode": "vue", "inputs": { "input_1": { "connections": [ { "node": "6", "input": "output_1" } ] }, "input_2": { "connections": [] } }, "outputs": { "output_1": { "connections": [] } }, "pos_x": 1118, "pos_y": 141 } } } } } } ```
Generated Events ```json { "@context": [ "https://ref.gs1.org/standards/epcis/2.0.0/epcis-context.jsonld" ], "type": "EPCISDocument", "schemaVersion": "2.0", "creationDate": "2023-08-23T11:37:57.28Z", "epcisBody": { "eventList": [ { "type": "AggregationEvent", "eventTime": "2023-07-19T08:40:25.808+02:00", "eventTimeZoneOffset": "+01:00", "parentID": "https://id.gs1.org/00/401234563302460812", "action": "ADD", "bizStep": "loading", "readPoint": { "id": "https://id.gs1.org/414/4012345000115" }, "childQuantityList": [ { "epcClass": "https://id.gs1.org/01/04012345123456/10/8221092057993521", "quantity": 8 } ] }, { "type": "ObjectEvent", "eventTime": "2023-07-19T17:09:35.951+02:00", "eventTimeZoneOffset": "+01:00", "epcList": [ "https://id.gs1.org/00/401234563302460812" ], "action": "OBSERVE", "bizStep": "staging_outbound", "readPoint": { "id": "https://id.gs1.org/414/4012345000115" }, "bizLocation": { "id": "https://id.gs1.org/414/4012345000122" } }, { "type": "ObjectEvent", "eventTime": "2023-07-19T17:05:27.07+02:00", "eventTimeZoneOffset": "+01:00", "epcList": [ "https://id.gs1.org/00/401234563302460812" ], "action": "OBSERVE", "bizStep": "departing", "disposition": "in_transit", "readPoint": { "id": "https://id.gs1.org/414/4012345000122" } }, { "type": "ObjectEvent", "eventTime": "2023-07-20T12:18:34.549+02:00", "eventTimeZoneOffset": "+01:00", "epcList": [ "https://id.gs1.org/00/401234563302460812" ], "action": "OBSERVE", "bizStep": "arriving", "disposition": "in_progress", "readPoint": { "id": "https://id.gs1.org/414/4012345000009" }, "bizLocation": { "id": "https://id.gs1.org/414/4000001000029" } }, { "type": "AggregationEvent", "eventTime": "2023-07-21T15:46:35.875+02:00", "eventTimeZoneOffset": "+01:00", "parentID": "https://id.gs1.org/00/401234563302460812", "action": "DELETE", "bizStep": "unloading", "readPoint": { "id": "https://id.gs1.org/414/4000001000029" } } ] } } ```

Thanks and best regards, Aravinda

Aravinda93 commented 1 year ago

Dear @RalphTro

We would like to inform you that the most recent updates have been successfully deployed to the production environment. We kindly request you to test recent modifications. If any discrepancies persist, please let us know.

I have noticed that the utilization of the recordTime in conjunction with current_time is resulting in the presentation of datetime in the Zulu format, contrary to our original intentions. While this combination functions as anticipated in my local environment, but different in the production environment due to the server-sourced time component. I will look into this issue and fix it during the next iteration.

Thanks and best regards, Aravinda

RalphTro commented 1 year ago

Great, @Aravinda93 - many thanks!

I reserved some time for testing tomorrow and will share my findings.

RalphTro commented 1 year ago

Dear @Aravinda93 , This is a great improvement and, as of now, I am able to generate an event sequence that inherits the parent ID as described above. In testing your deployment, I came across another subject, which I will hand in via another issue though. For now, MANY THANKS!

sboeckelmann commented 1 year ago

Dear @RalphTro,

yes - there is ;-) I had @Aravinda93 improve this as well

2023-08-25_09-13-40

I will share the designer json by email