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 org.camunda.bpm.model.dmn.DmnModelInstanceprotected Objectprotected DmnTransformerprotected List<DmnTransformListener> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuildDecisionRequirements(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions, Map<String, DmnDecisionImpl> dmnDecisions) protected voidensureNoLoopInDecision(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions) protected voidensureNoLoopInDecisions(List<DmnDecision> dmnDecisionList) org.camunda.bpm.model.dmn.DmnModelInstanceprotected List<DmnDecision>getRequiredDmnDecisions(org.camunda.bpm.model.dmn.instance.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(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance) Set the DMN model instance to transform.protected voidnotifyTransformListeners(org.camunda.bpm.model.dmn.instance.Decision decision, DmnDecision dmnDecision) protected voidnotifyTransformListeners(org.camunda.bpm.model.dmn.instance.Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph) protected voidnotifyTransformListeners(org.camunda.bpm.model.dmn.instance.Input input, DmnDecisionTableInputImpl dmnInput) protected voidnotifyTransformListeners(org.camunda.bpm.model.dmn.instance.Output output, DmnDecisionTableOutputImpl dmnOutput) protected voidnotifyTransformListeners(org.camunda.bpm.model.dmn.instance.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(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance) Set the DMN model instance to transform.protected DmnDecisionImpltransformDecision(org.camunda.bpm.model.dmn.instance.Decision decision) protected DmnDecisionLiteralExpressionImpltransformDecisionLiteralExpression(org.camunda.bpm.model.dmn.instance.Decision decision, org.camunda.bpm.model.dmn.instance.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<org.camunda.bpm.model.dmn.instance.Decision> decisions) protected DmnDecisionTableImpltransformDecisionTable(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable) protected DmnDecisionTableInputImpltransformDecisionTableInput(org.camunda.bpm.model.dmn.instance.Input input) protected DmnDecisionTableOutputImpltransformDecisionTableOutput(org.camunda.bpm.model.dmn.instance.Output output) protected DmnDecisionTableRuleImpltransformDecisionTableRule(org.camunda.bpm.model.dmn.instance.Rule rule) protected DmnDecisionRequirementsGraphtransformDefinitions(org.camunda.bpm.model.dmn.instance.Definitions definitions) protected Map<String,DmnDecisionImpl> transformIndividualDecisions(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions) protected DmnExpressionImpltransformInputEntry(org.camunda.bpm.model.dmn.instance.InputEntry inputEntry) protected DmnExpressionImpltransformInputExpression(org.camunda.bpm.model.dmn.instance.InputExpression inputExpression) protected DmnExpressionImpltransformLiteralExpression(org.camunda.bpm.model.dmn.instance.LiteralExpression literalExpression) protected DmnExpressionImpltransformOutputEntry(org.camunda.bpm.model.dmn.instance.OutputEntry outputEntry) protected DmnVariableImpltransformVariable(org.camunda.bpm.model.dmn.instance.Variable variable)
-
Field Details
-
transformer
-
transformListeners
-
handlerRegistry
-
modelInstance
protected org.camunda.bpm.model.dmn.DmnModelInstance 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
public void setModelInstance(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance) 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
protected DmnDecisionRequirementsGraph transformDefinitions(org.camunda.bpm.model.dmn.instance.Definitions definitions) -
transformDecisions
Description copied from interface:DmnTransformTransform all decisions of the DMN model instance.- Specified by:
transformDecisionsin interfaceDmnTransform
-
transformDecisions
protected List<DmnDecision> transformDecisions(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions) -
transformIndividualDecisions
protected Map<String,DmnDecisionImpl> transformIndividualDecisions(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions) -
buildDecisionRequirements
protected void buildDecisionRequirements(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions, Map<String, DmnDecisionImpl> dmnDecisions) -
ensureNoLoopInDecisions
-
ensureNoLoopInDecision
protected void ensureNoLoopInDecision(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions) -
getRequiredDmnDecisions
protected List<DmnDecision> getRequiredDmnDecisions(org.camunda.bpm.model.dmn.instance.Decision decision, Map<String, DmnDecisionImpl> dmnDecisions) -
transformDecision
-
transformDecisionTable
protected DmnDecisionTableImpl transformDecisionTable(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable) -
transformDecisionTableInput
protected DmnDecisionTableInputImpl transformDecisionTableInput(org.camunda.bpm.model.dmn.instance.Input input) -
transformDecisionTableOutput
protected DmnDecisionTableOutputImpl transformDecisionTableOutput(org.camunda.bpm.model.dmn.instance.Output output) -
transformDecisionTableRule
protected DmnDecisionTableRuleImpl transformDecisionTableRule(org.camunda.bpm.model.dmn.instance.Rule rule) -
transformInputExpression
protected DmnExpressionImpl transformInputExpression(org.camunda.bpm.model.dmn.instance.InputExpression inputExpression) -
transformInputEntry
protected DmnExpressionImpl transformInputEntry(org.camunda.bpm.model.dmn.instance.InputEntry inputEntry) -
transformOutputEntry
protected DmnExpressionImpl transformOutputEntry(org.camunda.bpm.model.dmn.instance.OutputEntry outputEntry) -
transformDecisionLiteralExpression
protected DmnDecisionLiteralExpressionImpl transformDecisionLiteralExpression(org.camunda.bpm.model.dmn.instance.Decision decision, org.camunda.bpm.model.dmn.instance.LiteralExpression literalExpression) -
transformLiteralExpression
protected DmnExpressionImpl transformLiteralExpression(org.camunda.bpm.model.dmn.instance.LiteralExpression literalExpression) -
transformVariable
-
notifyTransformListeners
protected void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Decision decision, DmnDecision dmnDecision) -
notifyTransformListeners
protected void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Input input, DmnDecisionTableInputImpl dmnInput) -
notifyTransformListeners
protected void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph) -
notifyTransformListeners
protected void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Output output, DmnDecisionTableOutputImpl dmnOutput) -
notifyTransformListeners
protected void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Rule rule, DmnDecisionTableRuleImpl dmnRule) -
getModelInstance
public org.camunda.bpm.model.dmn.DmnModelInstance 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
-