@Override public boolean evaluate(GraphRewrite event, EvaluationContext context) { GraphService<WindupConfigurationModel> service = new GraphService<>(event.getGraphContext(),WindupConfigurationModel.class); final WindupConfigurationModel windupConfiguration = service.findAll().iterator().next(); return windupConfiguration.isOnlineMode(); } }
@Override public void perform(GraphRewrite event, EvaluationContext context, XmlFileModel sourceFile) boolean onlineMode = WindupConfigurationService.getConfigurationModel(event.getGraphContext()).isOnlineMode(); boolean validationFailed = false; try
@Override public void perform(GraphRewrite event, EvaluationContext context, XmlFileModel sourceFile) boolean onlineMode = WindupConfigurationService.getConfigurationModel(event.getGraphContext()).isOnlineMode(); boolean validationFailed = false; try