Class DefaultDmnTransform

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

public class DefaultDmnTransform extends Object implements DmnTransform, DmnElementTransformContext
  • Field Details

  • Constructor Details

    • DefaultDmnTransform

      public DefaultDmnTransform(DmnTransformer transformer)
  • Method Details

    • 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