Class DefaultDmnTransform
java.lang.Object
org.camunda.bpm.dmn.engine.impl.transform.DefaultDmnTransform
- All Implemented Interfaces:
DmnElementTransformContext
,DmnTransform
-
Field Summary
Modifier and TypeFieldDescriptionprotected DmnDataTypeTransformerRegistry
protected DmnDecisionImpl
protected DmnDecisionTableImpl
protected DmnElementTransformHandlerRegistry
protected DmnHitPolicyHandlerRegistry
protected DmnModelInstance
protected Object
protected DmnTransformer
protected List<DmnTransformListener>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
buildDecisionRequirements
(Collection<Decision> decisions, Map<String, DmnDecisionImpl> dmnDecisions) protected void
ensureNoLoopInDecision
(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions) protected void
ensureNoLoopInDecisions
(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 void
notifyTransformListeners
(Decision decision, DmnDecision dmnDecision) protected void
notifyTransformListeners
(Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph) protected void
notifyTransformListeners
(Input input, DmnDecisionTableInputImpl dmnInput) protected void
notifyTransformListeners
(Output output, DmnDecisionTableOutputImpl dmnOutput) protected void
notifyTransformListeners
(Rule rule, DmnDecisionTableRuleImpl dmnRule) void
setModelInstance
(File file) Set the DMN model instance to transform as file.void
setModelInstance
(InputStream inputStream) Set the DMN model instance to transform as input stream.void
setModelInstance
(DmnModelInstance modelInstance) Set the DMN model instance to transform.protected DmnDecisionImpl
transformDecision
(Decision decision) protected DmnDecisionLiteralExpressionImpl
transformDecisionLiteralExpression
(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 DmnDecisionTableImpl
transformDecisionTable
(DecisionTable decisionTable) protected DmnDecisionTableInputImpl
transformDecisionTableInput
(Input input) protected DmnDecisionTableOutputImpl
transformDecisionTableOutput
(Output output) protected DmnDecisionTableRuleImpl
protected DmnDecisionRequirementsGraph
transformDefinitions
(Definitions definitions) protected Map<String,
DmnDecisionImpl> transformIndividualDecisions
(Collection<Decision> decisions) protected DmnExpressionImpl
transformInputEntry
(InputEntry inputEntry) protected DmnExpressionImpl
transformInputExpression
(InputExpression inputExpression) protected DmnExpressionImpl
transformLiteralExpression
(LiteralExpression literalExpression) protected DmnExpressionImpl
transformOutputEntry
(OutputEntry outputEntry) protected DmnVariableImpl
transformVariable
(Variable variable)
-
Field Details
-
transformer
-
transformListeners
-
handlerRegistry
-
modelInstance
-
parent
-
decision
-
decisionTable
-
dataTypeTransformerRegistry
-
hitPolicyHandlerRegistry
-
-
Constructor Details
-
DefaultDmnTransform
-
-
Method Details
-
setModelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform as file.- Specified by:
setModelInstance
in interfaceDmnTransform
- Parameters:
file
- the file of the DMN model instance
-
modelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform as file.- Specified by:
modelInstance
in interfaceDmnTransform
- Parameters:
file
- the file of the DMN model instance- Returns:
- this DmnTransform
-
setModelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform as input stream.- Specified by:
setModelInstance
in interfaceDmnTransform
- Parameters:
inputStream
- the input stream of the DMN model instance
-
modelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform as input stream.- Specified by:
modelInstance
in interfaceDmnTransform
- Parameters:
inputStream
- the input stream of the DMN model instance- Returns:
- this DmnTransform
-
setModelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform.- Specified by:
setModelInstance
in interfaceDmnTransform
- Parameters:
modelInstance
- the DMN model instance
-
modelInstance
Description copied from interface:DmnTransform
Set the DMN model instance to transform.- Specified by:
modelInstance
in interfaceDmnTransform
- Parameters:
modelInstance
- the DMN model instance- Returns:
- this DmnTransform
-
transformDecisionRequirementsGraph
Description copied from interface:DmnTransform
Transform the decision requirements graph and all containing decisions of the DMN model instance.- Specified by:
transformDecisionRequirementsGraph
in interfaceDmnTransform
-
transformDefinitions
-
transformDecisions
Description copied from interface:DmnTransform
Transform all decisions of the DMN model instance.- Specified by:
transformDecisions
in 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:
getModelInstance
in interfaceDmnElementTransformContext
- Returns:
- the transformed DMN model instance
-
getParent
- Specified by:
getParent
in interfaceDmnElementTransformContext
- Returns:
- the already transformed parent of the current transformed element
-
getDecision
- Specified by:
getDecision
in interfaceDmnElementTransformContext
- Returns:
- the already transformed decision to which the current transformed element belongs
-
getDataTypeTransformerRegistry
- Specified by:
getDataTypeTransformerRegistry
in interfaceDmnElementTransformContext
- Returns:
- the
DmnDataTypeTransformerRegistry
to use
-
getHitPolicyHandlerRegistry
- Specified by:
getHitPolicyHandlerRegistry
in interfaceDmnElementTransformContext
- Returns:
- the
DmnHitPolicyHandlerRegistry
to use
-