Has any guru managed to programmatically (no hard-coded values) make a task in event handler aware of the GUID of the parent task to which the event handler is directly attached? The idea is to execute [parts of] the event handler only for the task it is directly attached to and not for the children of that task by comparing to @SourceID system value.
Any approach to solve the problem is welcome - custom tasks, custom assemblies, native SSIS techniques, etc.