package gw.bizrules.pcf uses java.util.Map /** * a CommandParameterUIConfig impl for parameters that aren't shown in the UI, but exist to "pass through" parameters * from the context definition */ class HiddenContextPassThruCommandParameterUIConfig implements CommandDefinitionUIConfig.CommandParameterUIConfig { delegate _config represents CommandDefinitionUIConfig.CommandParameterUIConfig construct(valuesPerContext: Map) { _config = new CommandParameterUIConfigBuilder() .withContextChangeHandler(\context, holder -> { var key = context == null ? null : context.get().getKey() var frag = holder.FragHolder.Fragment as CodeExpressionFragment if (key == null) { frag.setCodeText(null); } else { frag.setCodeText(valuesPerContext.get(key)); } }) .build() } override property get Visible() : boolean { return false } }