Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Planout document #44

Open
dangchienhsgs opened this issue Jun 29, 2016 · 1 comment
Open

Planout document #44

dangchienhsgs opened this issue Jun 29, 2016 · 1 comment

Comments

@dangchienhsgs
Copy link

dangchienhsgs commented Jun 29, 2016

At document describe this.
nsConf.defineExperiment("default", "itemsToShow = uniformChoice(choices=[5, 10, 20], unit=userid);");

Newest api:
public void defineExperiment(final String definition, final Map<String, ?> assign)

But in the newest apis are different. Can you help me showing the new code to define this example experiment ?

@alexkamil
Copy link

alexkamil commented Jun 4, 2020

see https://github.com/Glassdoor/planout4j/pull/51/files
String script = "itemsToShow = uniformChoice(choices=[5, 10, 20], unit=userid);"; nsConf.defineExperiment(experimentName, PlanoutDSLCompiler.dsl_to_json(script));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants