Reply To: add Rule realy dynamic

Splash Forums Rewrite Users add Rule realy dynamic Reply To: add Rule realy dynamic

#25196

I think I don’t understand your question completely. Building rules dynamically should be easy:


@Override
public Configuration getConfiguration( ServletContext context ) {

  ConfigurationBuilder builder = ConfigurationBuilder.begin();

  if( somethingIsTrue ) {
    builder.addRule( .... )
  }
  
  return builder;
}

Or do you want to do something else?