Class DefaultDmnTransform
java.lang.Object
org.camunda.bpm.dmn.engine.impl.transform.DefaultDmnTransform
- All Implemented Interfaces:
DmnElementTransformContext,DmnTransform
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DmnDataTypeTransformerRegistryprotected DmnDecisionImplprotected DmnDecisionTableImplprotected DmnElementTransformHandlerRegistryprotected DmnHitPolicyHandlerRegistryprotected DmnModelInstanceprotected Objectprotected DmnTransformerprotected List<DmnTransformListener> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildDecisionRequirements(Collection<Decision> decisions, Map<String, DmnDecisionImpl> dmnDecisions) protected voidensureNoLoopInDecision(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions) protected voidensureNoLoopInDecisions(List<DmnDecision> dmnDecisionList) protected List<DmnDecision>getRequiredDmnDecisions(Decision decision, Map<String, DmnDecisionImpl> dmnDecisions) modelInstance(File file) Set the DMN model instance to transform as file.modelInstance(InputStream inputStream) Set the DMN model instance to transform as input stream.modelInstance(DmnModelInstance modelInstance) Set the DMN model instance to transform.protected voidnotifyTransformListeners(Decision decision, DmnDecision dmnDecision) protected voidnotifyTransformListeners(Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph) protected voidnotifyTransformListeners(Input input, DmnDecisionTableInputImpl dmnInput) protected voidnotifyTransformListeners(Output output, DmnDecisionTableOutputImpl dmnOutput) protected voidnotifyTransformListeners(Rule rule, DmnDecisionTableRuleImpl dmnRule) voidsetModelInstance(File file) Set the DMN model instance to transform as file.voidsetModelInstance(InputStream inputStream) Set the DMN model instance to transform as input stream.voidsetModelInstance(DmnModelInstance modelInstance) Set the DMN model instance to transform.protected DmnDecisionImpltransformDecision(Decision decision) protected DmnDecisionLiteralExpressionImpltransformDecisionLiteralExpression(Decision decision, LiteralExpression literalExpression) <T extends DmnDecisionRequirementsGraph>
TTransform the decision requirements graph and all containing decisions of the DMN model instance.<T extends DmnDecision>
List<T>Transform all decisions of the DMN model instance.protected List<DmnDecision>transformDecisions(Collection<Decision> decisions) protected DmnDecisionTableImpltransformDecisionTable(DecisionTable decisionTable) protected DmnDecisionTableInputImpltransformDecisionTableInput(Input input) protected DmnDecisionTableOutputImpltransformDecisionTableOutput(Output output) protected DmnDecisionTableRuleImplprotected DmnDecisionRequirementsGraphtransformDefinitions(Definitions definitions) protected Map<String,DmnDecisionImpl> transformIndividualDecisions(Collection<Decision> decisions) protected DmnExpressionImpltransformInputEntry(InputEntry inputEntry) protected DmnExpressionImpltransformInputExpression(InputExpression inputExpression) protected DmnExpressionImpltransformLiteralExpression(LiteralExpression literalExpression) protected DmnExpressionImpltransformOutputEntry(OutputEntry outputEntry) protected DmnVariableImpltransformVariable(Variable variable)
-
Field Details
-
transformer
-
transformListeners
-
handlerRegistry
-
modelInstance
-
parent
-
decision
-
decisionTable
-
dataTypeTransformerRegistry
-
hitPolicyHandlerRegistry
-
-
Constructor Details
-
DefaultDmnTransform
-
-
Method Details
-
setModelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform as file.- Specified by:
setModelInstancein interfaceDmnTransform- Parameters:
file- the file of the DMN model instance
-
modelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform as file.- Specified by:
modelInstancein interfaceDmnTransform- Parameters:
file- the file of the DMN model instance- Returns:
- this DmnTransform
-
setModelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform as input stream.- Specified by:
setModelInstancein interfaceDmnTransform- Parameters:
inputStream- the input stream of the DMN model instance
-
modelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform as input stream.- Specified by:
modelInstancein interfaceDmnTransform- Parameters:
inputStream- the input stream of the DMN model instance- Returns:
- this DmnTransform
-
setModelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform.- Specified by:
setModelInstancein interfaceDmnTransform- Parameters:
modelInstance- the DMN model instance
-
modelInstance
Description copied from interface:DmnTransformSet the DMN model instance to transform.- Specified by:
modelInstancein interfaceDmnTransform- Parameters:
modelInstance- the DMN model instance- Returns:
- this DmnTransform
-
transformDecisionRequirementsGraph
Description copied from interface:DmnTransformTransform the decision requirements graph and all containing decisions of the DMN model instance.- Specified by:
transformDecisionRequirementsGraphin interfaceDmnTransform
-
transformDefinitions
-
transformDecisions
Description copied from interface:DmnTransformTransform all decisions of the DMN model instance.- Specified by:
transformDecisionsin interfaceDmnTransform
-
transformDecisions
-
transformIndividualDecisions
-
buildDecisionRequirements
protected void buildDecisionRequirements(Collection<Decision> decisions, Map<String, DmnDecisionImpl> dmnDecisions) -
ensureNoLoopInDecisions
-
ensureNoLoopInDecision
protected void ensureNoLoopInDecision(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions) -
getRequiredDmnDecisions
protected List<DmnDecision> getRequiredDmnDecisions(Decision decision, Map<String, DmnDecisionImpl> dmnDecisions) -
transformDecision
-
transformDecisionTable
-
transformDecisionTableInput
-
transformDecisionTableOutput
-
transformDecisionTableRule
-
transformInputExpression
-
transformInputEntry
-
transformOutputEntry
-
transformDecisionLiteralExpression
protected DmnDecisionLiteralExpressionImpl transformDecisionLiteralExpression(Decision decision, LiteralExpression literalExpression) -
transformLiteralExpression
-
transformVariable
-
notifyTransformListeners
-
notifyTransformListeners
-
notifyTransformListeners
protected void notifyTransformListeners(Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph) -
notifyTransformListeners
-
notifyTransformListeners
-
getModelInstance
- Specified by:
getModelInstancein interfaceDmnElementTransformContext- Returns:
- the transformed DMN model instance
-
getParent
- Specified by:
getParentin interfaceDmnElementTransformContext- Returns:
- the already transformed parent of the current transformed element
-
getDecision
- Specified by:
getDecisionin interfaceDmnElementTransformContext- Returns:
- the already transformed decision to which the current transformed element belongs
-
getDataTypeTransformerRegistry
- Specified by:
getDataTypeTransformerRegistryin interfaceDmnElementTransformContext- Returns:
- the
DmnDataTypeTransformerRegistryto use
-
getHitPolicyHandlerRegistry
- Specified by:
getHitPolicyHandlerRegistryin interfaceDmnElementTransformContext- Returns:
- the
DmnHitPolicyHandlerRegistryto use
-