public interface DMNRuntime extends DMNRuntimeEventManager
Modifier and Type | Method and Description |
---|---|
DMNResult |
evaluateAll(DMNModel model,
DMNContext context)
Evaluate all decisions for the model, given the context
|
DMNResult |
evaluateById(DMNModel model,
DMNContext context,
String... decisionIds)
Evaluate all decision identified by the given IDs and
all dependent decisions, given the context
|
DMNResult |
evaluateByName(DMNModel model,
DMNContext context,
String... decisionNames)
Evaluate all decisions identified by the given names and
all dependent decisions, given the context
|
DMNResult |
evaluateDecisionById(DMNModel model,
String decisionId,
DMNContext context)
Deprecated.
consider using
evaluateById(DMNModel, DMNContext, String...) instead |
DMNResult |
evaluateDecisionByName(DMNModel model,
String decisionName,
DMNContext context)
Deprecated.
consider using
evaluateByName(DMNModel, DMNContext, String...) instead |
DMNResult |
evaluateDecisionService(DMNModel model,
DMNContext context,
String decisionServiceName)
Evaluate the Decision Service identified by the given name, given the context
|
DMNModel |
getModel(String namespace,
String modelName)
Returns the model registered with the given namespace and
model name.
|
DMNModel |
getModelById(String namespace,
String modelId)
Returns the model registered with the given namespace and
model id.
|
List<DMNModel> |
getModels()
Returns a list of all models available to this runtime
|
ClassLoader |
getRootClassLoader()
Returns the ClassLoader used by this DMNRuntime
|
DMNContext |
newContext()
Creates a new empty DMNContext
|
addListener, getListeners, getRuntime, hasListeners, removeListener
List<DMNModel> getModels()
DMNModel getModel(String namespace, String modelName)
namespace
- the name space for the modelmodelName
- the name of the modelDMNModel getModelById(String namespace, String modelId)
namespace
- the name space for the modelmodelId
- the identifier of the modelDMNResult evaluateAll(DMNModel model, DMNContext context)
model
- the model to evaluatecontext
- the context with all the input variables@Deprecated DMNResult evaluateDecisionByName(DMNModel model, String decisionName, DMNContext context)
evaluateByName(DMNModel, DMNContext, String...)
insteadmodel
- the model to evaluatedecisionName
- the root decision to evaluate, identified
by namecontext
- the context with all the input variables@Deprecated DMNResult evaluateDecisionById(DMNModel model, String decisionId, DMNContext context)
evaluateById(DMNModel, DMNContext, String...)
insteadmodel
- the model to evaluatedecisionId
- the root decision to evaluate, identified
by IDcontext
- the context with all the input variablesDMNResult evaluateByName(DMNModel model, DMNContext context, String... decisionNames)
model
- the model to evaluatedecisionNames
- list of root decisions to evaluate, identified
by namecontext
- the context with all the input variablesDMNResult evaluateById(DMNModel model, DMNContext context, String... decisionIds)
model
- the model to evaluatedecisionIds
- list of root decisions to evaluate, identified
by IDcontext
- the context with all the input variablesDMNContext newContext()
ClassLoader getRootClassLoader()
DMNResult evaluateDecisionService(DMNModel model, DMNContext context, String decisionServiceName)
model
- the model to evaluatedecisionServiceName
- the Decision Service namecontext
- the context with all the required inputs (inputData and inputDecision) required by the Decision ServiceCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.