org.camunda.bpm.dmn.engine.impl.transform
Class DefaultDmnTransform

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.transform.DefaultDmnTransform
All Implemented Interfaces:
DmnElementTransformContext, DmnTransform

public class DefaultDmnTransform
extends Object
implements DmnTransform, DmnElementTransformContext


Field Summary
protected  DmnDataTypeTransformerRegistry dataTypeTransformerRegistry
           
protected  DmnDecisionImpl decision
           
protected  DmnDecisionTableImpl decisionTable
           
protected  DmnElementTransformHandlerRegistry handlerRegistry
           
protected  DmnHitPolicyHandlerRegistry hitPolicyHandlerRegistry
           
protected  org.camunda.bpm.model.dmn.DmnModelInstance modelInstance
           
protected  Object parent
           
protected  DmnTransformer transformer
           
protected  List<DmnTransformListener> transformListeners
           
 
Constructor Summary
DefaultDmnTransform(DmnTransformer transformer)
           
 
Method Summary
protected  void buildDecisionRequirements(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions, Map<String,DmnDecisionImpl> dmnDecisions)
           
protected  void ensureNoLoopInDecision(DmnDecision decision, List<String> parentDecisionList, List<String> visitedDecisions)
           
protected  void ensureNoLoopInDecisions(List<DmnDecision> dmnDecisionList)
           
 DmnDataTypeTransformerRegistry getDataTypeTransformerRegistry()
           
 DmnDecision getDecision()
           
 DmnHitPolicyHandlerRegistry getHitPolicyHandlerRegistry()
           
 org.camunda.bpm.model.dmn.DmnModelInstance getModelInstance()
           
 Object getParent()
           
protected  List<DmnDecision> getRequiredDmnDecisions(org.camunda.bpm.model.dmn.instance.Decision decision, Map<String,DmnDecisionImpl> dmnDecisions)
           
 DmnTransform modelInstance(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance)
          Set the DMN model instance to transform.
 DmnTransform modelInstance(File file)
          Set the DMN model instance to transform as file.
 DmnTransform modelInstance(InputStream inputStream)
          Set the DMN model instance to transform as input stream.
protected  void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Decision decision, DmnDecision dmnDecision)
           
protected  void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Definitions definitions, DmnDecisionRequirementsGraphImpl dmnDecisionRequirementsGraph)
           
protected  void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Input input, DmnDecisionTableInputImpl dmnInput)
           
protected  void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Output output, DmnDecisionTableOutputImpl dmnOutput)
           
protected  void notifyTransformListeners(org.camunda.bpm.model.dmn.instance.Rule rule, DmnDecisionTableRuleImpl dmnRule)
           
 void setModelInstance(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance)
          Set the DMN model instance to transform.
 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.
protected  DmnDecisionImpl transformDecision(org.camunda.bpm.model.dmn.instance.Decision decision)
           
protected  DmnDecisionLiteralExpressionImpl transformDecisionLiteralExpression(org.camunda.bpm.model.dmn.instance.Decision decision, org.camunda.bpm.model.dmn.instance.LiteralExpression literalExpression)
           
<T extends DmnDecisionRequirementsGraph>
T
transformDecisionRequirementsGraph()
          Transform the decision requirements graph and all containing decisions of the DMN model instance.
<T extends DmnDecision>
List<T>
transformDecisions()
          Transform all decisions of the DMN model instance.
protected  List<DmnDecision> transformDecisions(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions)
           
protected  DmnDecisionTableImpl transformDecisionTable(org.camunda.bpm.model.dmn.instance.DecisionTable decisionTable)
           
protected  DmnDecisionTableInputImpl transformDecisionTableInput(org.camunda.bpm.model.dmn.instance.Input input)
           
protected  DmnDecisionTableOutputImpl transformDecisionTableOutput(org.camunda.bpm.model.dmn.instance.Output output)
           
protected  DmnDecisionTableRuleImpl transformDecisionTableRule(org.camunda.bpm.model.dmn.instance.Rule rule)
           
protected  DmnDecisionRequirementsGraph transformDefinitions(org.camunda.bpm.model.dmn.instance.Definitions definitions)
           
protected  Map<String,DmnDecisionImpl> transformIndividualDecisions(Collection<org.camunda.bpm.model.dmn.instance.Decision> decisions)
           
protected  DmnExpressionImpl transformInputEntry(org.camunda.bpm.model.dmn.instance.InputEntry inputEntry)
           
protected  DmnExpressionImpl transformInputExpression(org.camunda.bpm.model.dmn.instance.InputExpression inputExpression)
           
protected  DmnExpressionImpl transformLiteralExpression(org.camunda.bpm.model.dmn.instance.LiteralExpression literalExpression)
           
protected  DmnExpressionImpl transformOutputEntry(org.camunda.bpm.model.dmn.instance.OutputEntry outputEntry)
           
protected  DmnVariableImpl transformVariable(org.camunda.bpm.model.dmn.instance.Variable variable)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformer

protected DmnTransformer transformer

transformListeners

protected List<DmnTransformListener> transformListeners

handlerRegistry

protected DmnElementTransformHandlerRegistry handlerRegistry

modelInstance

protected org.camunda.bpm.model.dmn.DmnModelInstance modelInstance

parent

protected Object parent

decision

protected DmnDecisionImpl decision

decisionTable

protected DmnDecisionTableImpl decisionTable

dataTypeTransformerRegistry

protected DmnDataTypeTransformerRegistry dataTypeTransformerRegistry

hitPolicyHandlerRegistry

protected DmnHitPolicyHandlerRegistry hitPolicyHandlerRegistry
Constructor Detail

DefaultDmnTransform

public DefaultDmnTransform(DmnTransformer transformer)
Method Detail

setModelInstance

public void setModelInstance(File file)
Description copied from interface: DmnTransform
Set the DMN model instance to transform as file.

Specified by:
setModelInstance in interface DmnTransform
Parameters:
file - the file of the DMN model instance

modelInstance

public DmnTransform modelInstance(File file)
Description copied from interface: DmnTransform
Set the DMN model instance to transform as file.

Specified by:
modelInstance in interface DmnTransform
Parameters:
file - the file of the DMN model instance
Returns:
this DmnTransform

setModelInstance

public void setModelInstance(InputStream inputStream)
Description copied from interface: DmnTransform
Set the DMN model instance to transform as input stream.

Specified by:
setModelInstance in interface DmnTransform
Parameters:
inputStream - the input stream of the DMN model instance

modelInstance

public DmnTransform modelInstance(InputStream inputStream)
Description copied from interface: DmnTransform
Set the DMN model instance to transform as input stream.

Specified by:
modelInstance in interface DmnTransform
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: DmnTransform
Set the DMN model instance to transform.

Specified by:
setModelInstance in interface DmnTransform
Parameters:
modelInstance - the DMN model instance

modelInstance

public DmnTransform modelInstance(org.camunda.bpm.model.dmn.DmnModelInstance modelInstance)
Description copied from interface: DmnTransform
Set the DMN model instance to transform.

Specified by:
modelInstance in interface DmnTransform
Parameters:
modelInstance - the DMN model instance
Returns:
this DmnTransform

transformDecisionRequirementsGraph

public <T extends DmnDecisionRequirementsGraph> T transformDecisionRequirementsGraph()
Description copied from interface: DmnTransform
Transform the decision requirements graph and all containing decisions of the DMN model instance.

Specified by:
transformDecisionRequirementsGraph in interface DmnTransform

transformDefinitions

protected DmnDecisionRequirementsGraph transformDefinitions(org.camunda.bpm.model.dmn.instance.Definitions definitions)

transformDecisions

public <T extends DmnDecision> List<T> transformDecisions()
Description copied from interface: DmnTransform
Transform all decisions of the DMN model instance.

Specified by:
transformDecisions in interface DmnTransform

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

protected void ensureNoLoopInDecisions(List<DmnDecision> dmnDecisionList)

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

protected DmnDecisionImpl transformDecision(org.camunda.bpm.model.dmn.instance.Decision decision)

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

protected DmnVariableImpl transformVariable(org.camunda.bpm.model.dmn.instance.Variable variable)

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:
getModelInstance in interface DmnElementTransformContext
Returns:
the transformed DMN model instance

getParent

public Object getParent()
Specified by:
getParent in interface DmnElementTransformContext
Returns:
the already transformed parent of the current transformed element

getDecision

public DmnDecision getDecision()
Specified by:
getDecision in interface DmnElementTransformContext
Returns:
the already transformed decision to which the current transformed element belongs

getDataTypeTransformerRegistry

public DmnDataTypeTransformerRegistry getDataTypeTransformerRegistry()
Specified by:
getDataTypeTransformerRegistry in interface DmnElementTransformContext
Returns:
the DmnDataTypeTransformerRegistry to use

getHitPolicyHandlerRegistry

public DmnHitPolicyHandlerRegistry getHitPolicyHandlerRegistry()
Specified by:
getHitPolicyHandlerRegistry in interface DmnElementTransformContext
Returns:
the DmnHitPolicyHandlerRegistry to use


Copyright © 2017 camunda services GmbH. All rights reserved.