Entity activation time
Posted: Tue Aug 15, 2023 2:13 am
Hi, I've attached a small example I'm using to help me understand how to use the time column with tidy data to activate model entities. The issue is with entities passing data to another entity type, where the reference is based on a compound key.
The original issue was showing up as null reference warnings, although I was able to work through most of them by making sure the activation time in the Stage 1 entity type is the same as the activation time in the Stage 2 entity type.
There is one last null reference that has me very puzzled. It doesn't resolve when I make the activation time the same in Stage 1 and Stage 2 (=4 in both entity initialization data). Also, when the activation time is different (=5) in Stage 1, the null reference warning changes the value of half the compound key (from HG D to HG B) for Stage 1 entity Harvester 8|HG D. When I make both Stage 1 and Stage 2 activation times = 4, the correct compound key pair is shown in the warning.
I understand the reference for Stage 1 entity Harvester 8|HG D to Stage 2 entity Maker 2|MG B makes it a many to many reference so I need an intermediate entity type to make it work. The question is why do I get warnings when the Stage 1 entity activation time is later than the referenced Stage 2 entity activation time? I'm concerned that this would occur If the Stage 1 entity was created by a Trigger/Action after the Stage 2 entity activation time.
Hope this makes sense...
cheers, Al
The original issue was showing up as null reference warnings, although I was able to work through most of them by making sure the activation time in the Stage 1 entity type is the same as the activation time in the Stage 2 entity type.
There is one last null reference that has me very puzzled. It doesn't resolve when I make the activation time the same in Stage 1 and Stage 2 (=4 in both entity initialization data). Also, when the activation time is different (=5) in Stage 1, the null reference warning changes the value of half the compound key (from HG D to HG B) for Stage 1 entity Harvester 8|HG D. When I make both Stage 1 and Stage 2 activation times = 4, the correct compound key pair is shown in the warning.
I understand the reference for Stage 1 entity Harvester 8|HG D to Stage 2 entity Maker 2|MG B makes it a many to many reference so I need an intermediate entity type to make it work. The question is why do I get warnings when the Stage 1 entity activation time is later than the referenced Stage 2 entity activation time? I'm concerned that this would occur If the Stage 1 entity was created by a Trigger/Action after the Stage 2 entity activation time.
Hope this makes sense...
cheers, Al