Action event IDs for missing child contexts ?

Cantor, Scott cantor.2 at osu.edu
Wed Feb 5 11:47:51 EST 2014


On 2/5/14, 11:43 AM, "Tom Zeller" <tzeller at dragonacea.biz> wrote:

>I guess my question is : should we define an event id for every
>context required in actions ?

There were a lot in existence to start with, but I'm not one to advocate
creating them because they represent code bugs, not runtime conditions.

>We define event ids this way because they are part of flow navigation,
>at least that was the idea. But, it seems we probably will not handle
>these missing context ids uniquely, instead we have a global
>transition on 'Invalid*'. Maybe just an INVALID_CTX = "InvalidContext"
>event ID ? I guess I am thinking that we probably will not change flow
>navigation based on an invalid profile context vs invalid message
>context.

No, and they'll never happen in tested code. They're like null checks.

-- Scott




More information about the dev mailing list