@@ -1095,8 +1095,6 @@ private Variation getVariation(@Nonnull ProjectConfig projectConfig,
10951095 .withExperimentKey (experiment .getKey ())
10961096 .withVariation (variation )
10971097 .withType (notificationType )
1098- .withExperimentId (experiment .getId ())
1099- .withVariationId (variation .getId ())
11001098 .build ();
11011099
11021100 notificationCenter .send (decisionNotification );
@@ -1305,6 +1303,8 @@ private OptimizelyDecision createOptimizelyDecision(
13051303 ProjectConfig projectConfig
13061304 ) {
13071305 String userId = user .getUserId ();
1306+ String experimentId = null ;
1307+ String variationId = null ;
13081308
13091309 Boolean flagEnabled = false ;
13101310 if (flagDecision .variation != null ) {
@@ -1338,8 +1338,8 @@ private OptimizelyDecision createOptimizelyDecision(
13381338
13391339
13401340 Boolean decisionEventDispatched = false ;
1341- String experimentId = flagDecision .experiment != null ? flagDecision .experiment .getId () : null ;
1342- String variationId = flagDecision .variation != null ? flagDecision .variation .getId () : null ;
1341+ experimentId = flagDecision .experiment != null ? flagDecision .experiment .getId () : null ;
1342+ variationId = flagDecision .variation != null ? flagDecision .variation .getId () : null ;
13431343
13441344 Map <String , Object > attributes = user .getAttributes ();
13451345 Map <String , ?> copiedAttributes = new HashMap <>(attributes );
0 commit comments