@Override public Parameter[] getParameters() { return new Parameter[] { ParameterBuilder.create(PARAM_PERCENTAGE) .label("Percentage") .matching("\\d{1,3}") .description( "Percentage of users for which the feature should be active (i.e. '25' for every fourth user).") }; }
@Override public Parameter[] getParameters() { return new Parameter[] { new ScriptLanguageParameter(engineManager), ParameterBuilder.create(PARAM_SCRIPT) .label("Script") .largeText() .description( "The script to check if the feature is active. " + "The script context provides access to some default objects. " + "The variable 'user' refers to the current acting FeatureUser " + "and 'date' to the current time represented as a java.util.Date.") }; }