bland-crowd-96288
09/29/2024, 10:01 AM1. final TrackingCallback trackingCallback = new TrackingCallback() {
@Override
public <ValueType> void onTrack(final Experiment<ValueType> experiment, final ExperimentResult<ValueType> experimentResult) {
System.out.println("Experiment Id: " + experiment.getKey());
System.out.println("Variation Id: " + experimentResult.getVariationId());
}};
2. setting the GB Context (attributesStr has ids for eg. ("id":"123") :
final GBContext context = GBContext.builder().featuresJson(featuresJson).trackingCallback(trackingCallback).attributesJson(attributesStr).build();
I am running this experiment for a single user id, i have hard-coded it right now.
value of feature flag is not changing as per the "Test feature rule" that we have in Growthbook. Please guide me here. Stuck herefresh-football-47124
bland-crowd-96288
09/29/2024, 4:00 PMfresh-football-47124
bland-crowd-96288
09/29/2024, 4:02 PMfresh-football-47124
bland-crowd-96288
09/29/2024, 4:10 PMfresh-football-47124
fresh-football-47124
fresh-football-47124
I am running this experiment for a single user id, i have hard-coded it right now.
bland-crowd-96288
09/29/2024, 4:13 PMfresh-football-47124
bland-crowd-96288
09/29/2024, 4:14 PMfresh-football-47124
fresh-football-47124
bland-crowd-96288
09/29/2024, 4:20 PMfresh-football-47124
bland-crowd-96288
09/29/2024, 4:23 PMfresh-football-47124
bland-crowd-96288
09/29/2024, 4:27 PMbland-crowd-96288
09/29/2024, 4:34 PMfresh-football-47124
fresh-football-47124
bland-crowd-96288
09/30/2024, 5:39 AMbland-crowd-96288
09/30/2024, 5:40 AMcalm-dog-24239
09/30/2024, 4:03 PMfresh-football-47124