@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) |
getKieContainer
public FactModelTuple retrieveFactModelTuple(org.uberfire.backend.vfs.Path path, String dmnPath)
retrieveFactModelTuple
in interface DMNTypeService
public void initializeNameAndNamespace(org.drools.scenariosimulation.api.model.Settings settings, org.uberfire.backend.vfs.Path path, String dmnPath)
initializeNameAndNamespace
in interface DMNTypeService
public 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 DMNType
factName
- type
- hiddenFacts
- fmType
- WrongDMNTypeException
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) throws WrongDMNTypeException
FactModelTree
for DMNType
where DMNType.isCollection()
== true
factName
- type
- hiddenFacts
- fmType
- WrongDMNTypeException
- if DMNType.isCollection()
!= true
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) throws WrongDMNTypeException
FactModelTree
for DMNType
where DMNType.isCollection()
!= true
propertyName
- fullPropertyPath
- type
- hiddenFacts
- fmType
- WrongDMNTypeException
- if DMNType.isCollection()
== 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) throws WrongDMNTypeException
FactModelTree
for DMNType
propertyName
- fullPropertyPath
- type
- hiddenFacts
- fmType
- WrongDMNTypeException
protected 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()
== true
name
- fullPropertyPath
- type
- hiddenFacts
- fmType
- WrongDMNTypeException
- if DMNType.isComposite()
!= true
protected 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 ErrorHolder
type
- errorHolder
- fullPropertyPath
- Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.