@Test public void testAcceptRequest() { DecisionExplainabilityResourceExecutor executor = new DecisionExplainabilityResourceExecutor(); ModelIdentifier notADMNModelIdentifier = new ModelIdentifier("notAdmn", String.format("%s%s%s", "namespace", RESOURCE_ID_SEPARATOR, "name")); ModelIdentifier DMNModelIdentifier = new ModelIdentifier("dmn", String.format("%s%s%s", "namespace", RESOURCE_ID_SEPARATOR, "name")); PredictInput notADMNModelPredictInput = new PredictInput(notADMNModelIdentifier, null); PredictInput DMNModelPredictInput = new PredictInput(DMNModelIdentifier, null); Assertions.assertFalse(executor.acceptRequest(notADMNModelPredictInput)); Assertions.assertTrue(executor.acceptRequest(DMNModelPredictInput)); }
@Override public boolean acceptRequest(PredictInput predictInput) { return "dmn".equalsIgnoreCase(predictInput.getModelIdentifier().getResourceType()); }
DecisionExplainabilityResourceExecutor implements ExplainabilityResourceExecutor { @Override public boolean acceptRequest(PredictInput predictInput) { return "dmn".equalsIgnoreCase(predictInput.getModelIdentifier().getResourceType()); } }
DecisionExplainabilityResourceExecutor implements ExplainabilityResourceExecutor { @Override public boolean acceptRequest(PredictInput predictInput) { return "dmn".equalsIgnoreCase(predictInput.getModelIdentifier().getResourceType()); }  }
DecisionExplainabilityResourceExecutor implements ExplainabilityResourceExecutor { @Override public boolean acceptRequest(PredictInput predictInput) { return "dmn".equalsIgnoreCase(predictInput.getModelIdentifier().getResourceType()); }  @Override boolean acceptRequest(PredictInput predictInput); @Override PredictOutput processRequest(Application application, PredictInput predictInput); DecisionModel getDecisionModel(DecisionModels decisionModels, ModelIdentifier modelIdentifier); Map<String, Object> convertDMNInput(PredictInput predictInput); PredictOutput convertDMNOutput(DMNResult dmnResult, PredictInput predictInput); }
DecisionExplainabilityResourceExecutor implements ExplainabilityResourceExecutor { @Override public boolean acceptRequest(PredictInput predictInput) { return "dmn".equalsIgnoreCase(predictInput.getModelIdentifier().getResourceType()); }  @Override boolean acceptRequest(PredictInput predictInput); @Override PredictOutput processRequest(Application application, PredictInput predictInput); DecisionModel getDecisionModel(DecisionModels decisionModels, ModelIdentifier modelIdentifier); Map<String, Object> convertDMNInput(PredictInput predictInput); PredictOutput convertDMNOutput(DMNResult dmnResult, PredictInput predictInput);  }