changed lifecycle of EventDefinitions from being bound to the processed message to being bound to its embedding flow node