@ApplicationScoped public class DMNTypeServiceImpl extends AbstractKieContainerService implements DMNTypeService
| Constructor and Description |
|---|
DMNTypeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkTypeSupport(org.kie.dmn.api.core.DMNType type,
org.drools.workbench.screens.scenariosimulation.backend.server.DMNTypeServiceImpl.ErrorHolder errorHolder,
String fullPropertyPath)
Recursively visit a composite
DMNType to eventually detect and add errors to given ErrorHolder |
protected FactModelTree |
createFactModelTreeForCollection(Map<String,List<String>> genericTypeInfoMap,
String factName,
org.kie.dmn.api.core.DMNType type,
SortedMap<String,FactModelTree> hiddenFacts,
FactModelTree.Type fmType,
List<String> alreadyVisited)
Creates a
FactModelTree for DMNType where DMNType.isCollection() == true |
protected FactModelTree |
createFactModelTreeForComposite(Map<String,List<String>> genericTypeInfoMap,
String name,
String fullPropertyPath,
org.kie.dmn.api.core.DMNType type,
SortedMap<String,FactModelTree> hiddenFacts,
FactModelTree.Type fmType,
List<String> alreadyVisited)
Creates a
FactModelTree for DMNType where DMNType.isComposite() == true |
protected FactModelTree |
createFactModelTreeForGenericType(Map<String,List<String>> genericTypeInfoMap,
String factName,
String propertyName,
String fullPropertyPath,
org.kie.dmn.api.core.DMNType type,
SortedMap<String,FactModelTree> hiddenFacts,
FactModelTree.Type fmType,
List<String> alreadyVisited)
Creates a
FactModelTree for DMNType |
protected FactModelTree |
createFactModelTreeForNoCollection(Map<String,List<String>> genericTypeInfoMap,
String factName,
String propertyName,
String fullPropertyPath,
org.kie.dmn.api.core.DMNType type,
SortedMap<String,FactModelTree> hiddenFacts,
FactModelTree.Type fmType,
List<String> alreadyVisited)
Creates a
FactModelTree for DMNType where DMNType.isCollection() ! |
protected FactModelTree |
createFactModelTreeForSimple(Map<String,List<String>> genericTypeInfoMap,
String factName,
String propertyClass,
FactModelTree.Type fmType)
Creates a
FactModelTree for DMNType where DMNType.isComposite() ! |
protected FactModelTree |
createTopLevelFactModelTree(String factName,
org.kie.dmn.api.core.DMNType type,
SortedMap<String,FactModelTree> hiddenFacts,
FactModelTree.Type fmType)
This method is the entry point for
FactModelTree. |
org.kie.dmn.api.core.DMNModel |
getDMNModel(org.uberfire.backend.vfs.Path path,
String dmnPath) |
org.kie.dmn.api.core.DMNRuntime |
getDMNRuntime(org.uberfire.backend.vfs.Path path) |
void |
initializeNameAndNamespace(org.drools.scenariosimulation.api.model.Settings settings,
org.uberfire.backend.vfs.Path path,
String dmnPath) |
protected void |
internalCheckTypeSupport(org.kie.dmn.api.core.DMNType type,
boolean alreadyInCollection,
org.drools.workbench.screens.scenariosimulation.backend.server.DMNTypeServiceImpl.ErrorHolder errorHolder,
String fullPropertyPath,
Set<String> alreadyVisited) |
FactModelTuple |
retrieveFactModelTuple(org.uberfire.backend.vfs.Path path,
String dmnPath) |
getKieContainerpublic FactModelTuple retrieveFactModelTuple(org.uberfire.backend.vfs.Path path, String dmnPath)
retrieveFactModelTuple in interface DMNTypeServicepublic void initializeNameAndNamespace(org.drools.scenariosimulation.api.model.Settings settings,
org.uberfire.backend.vfs.Path path,
String dmnPath)
initializeNameAndNamespace in interface DMNTypeServicepublic org.kie.dmn.api.core.DMNModel getDMNModel(org.uberfire.backend.vfs.Path path,
String dmnPath)
public org.kie.dmn.api.core.DMNRuntime getDMNRuntime(org.uberfire.backend.vfs.Path path)
protected FactModelTree createTopLevelFactModelTree(String factName, org.kie.dmn.api.core.DMNType type, SortedMap<String,FactModelTree> hiddenFacts, FactModelTree.Type fmType) throws WrongDMNTypeException
FactModelTree. It is the one to be called from the very top level DMNTypefactName - type - hiddenFacts - fmType - WrongDMNTypeExceptionprotected FactModelTree createFactModelTreeForCollection(Map<String,List<String>> genericTypeInfoMap, String factName, org.kie.dmn.api.core.DMNType type, SortedMap<String,FactModelTree> hiddenFacts, FactModelTree.Type fmType, List<String> alreadyVisited) throws WrongDMNTypeException
FactModelTree for DMNType where DMNType.isCollection() == truefactName - type - hiddenFacts - fmType - WrongDMNTypeException - if DMNType.isCollection() != trueprotected FactModelTree createFactModelTreeForNoCollection(Map<String,List<String>> genericTypeInfoMap, String factName, String propertyName, String fullPropertyPath, org.kie.dmn.api.core.DMNType type, SortedMap<String,FactModelTree> hiddenFacts, FactModelTree.Type fmType, List<String> alreadyVisited) throws WrongDMNTypeException
FactModelTree for DMNType where DMNType.isCollection() != truepropertyName - fullPropertyPath - type - hiddenFacts - fmType - WrongDMNTypeException - if DMNType.isCollection() == trueprotected FactModelTree createFactModelTreeForGenericType(Map<String,List<String>> genericTypeInfoMap, String factName, String propertyName, String fullPropertyPath, org.kie.dmn.api.core.DMNType type, SortedMap<String,FactModelTree> hiddenFacts, FactModelTree.Type fmType, List<String> alreadyVisited) throws WrongDMNTypeException
FactModelTree for DMNTypepropertyName - fullPropertyPath - type - hiddenFacts - fmType - WrongDMNTypeExceptionprotected FactModelTree createFactModelTreeForSimple(Map<String,List<String>> genericTypeInfoMap, String factName, String propertyClass, FactModelTree.Type fmType)
FactModelTree for DMNType where DMNType.isComposite() != true.
Returned FactModelTree will have only one single property, whose name is VALUE and whose value is the given propertyClassgenericTypeInfoMap - factName - propertyClass - fmType - protected FactModelTree createFactModelTreeForComposite(Map<String,List<String>> genericTypeInfoMap, String name, String fullPropertyPath, org.kie.dmn.api.core.DMNType type, SortedMap<String,FactModelTree> hiddenFacts, FactModelTree.Type fmType, List<String> alreadyVisited) throws WrongDMNTypeException
FactModelTree for DMNType where DMNType.isComposite() == truename - fullPropertyPath - type - hiddenFacts - fmType - WrongDMNTypeException - if DMNType.isComposite() != trueprotected void checkTypeSupport(org.kie.dmn.api.core.DMNType type,
org.drools.workbench.screens.scenariosimulation.backend.server.DMNTypeServiceImpl.ErrorHolder errorHolder,
String fullPropertyPath)
DMNType to eventually detect and add errors to given ErrorHoldertype - errorHolder - fullPropertyPath - Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.