Class DmnJsonConverterUtil

    • Field Detail

      • LOGGER

        protected static final org.slf4j.Logger LOGGER
      • objectMapper

        protected static final com.fasterxml.jackson.databind.ObjectMapper objectMapper
      • lineWidth

        protected static double lineWidth
    • Constructor Detail

      • DmnJsonConverterUtil

        public DmnJsonConverterUtil()
    • Method Detail

      • getValueAsString

        public static String getValueAsString​(String name,
                                              com.fasterxml.jackson.databind.JsonNode objectNode)
      • migrateModel

        public static boolean migrateModel​(com.fasterxml.jackson.databind.JsonNode decisionTableNode,
                                           com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • migrateModelV3

        public static boolean migrateModelV3​(com.fasterxml.jackson.databind.JsonNode decisionTableNode,
                                             com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      • determineExpressionType

        public static String determineExpressionType​(String expressionValue)
      • formatCollectionExpression

        public static String formatCollectionExpression​(String containsOperator,
                                                        String inputVariable,
                                                        String expressionValue)
      • isCollectionOperator

        public static boolean isCollectionOperator​(String operator)
      • isDRD

        public static boolean isDRD​(com.fasterxml.jackson.databind.JsonNode definitionNode)
      • getStencilId

        public static String getStencilId​(com.fasterxml.jackson.databind.JsonNode objectNode)
      • getElementId

        public static String getElementId​(com.fasterxml.jackson.databind.JsonNode objectNode)
      • getUniqueElementId

        public static String getUniqueElementId()
      • getUniqueElementId

        public static String getUniqueElementId​(String prefix)
      • getPropertyValueAsString

        public static String getPropertyValueAsString​(String name,
                                                      com.fasterxml.jackson.databind.JsonNode objectNode)
      • getProperty

        public static com.fasterxml.jackson.databind.JsonNode getProperty​(String name,
                                                                          com.fasterxml.jackson.databind.JsonNode objectNode)
      • createChildShape

        public static com.fasterxml.jackson.databind.node.ObjectNode createChildShape​(String id,
                                                                                      String type,
                                                                                      double lowerRightX,
                                                                                      double lowerRightY,
                                                                                      double upperLeftX,
                                                                                      double upperLeftY)
      • createBoundsNode

        public static com.fasterxml.jackson.databind.node.ObjectNode createBoundsNode​(double lowerRightX,
                                                                                      double lowerRightY,
                                                                                      double upperLeftX,
                                                                                      double upperLeftY)
      • createPositionNode

        public static com.fasterxml.jackson.databind.node.ObjectNode createPositionNode​(double x,
                                                                                        double y)
      • createRectangle

        public static Area createRectangle​(GraphicInfo graphicInfo)
      • createGraphicInfo

        public static GraphicInfo createGraphicInfo​(double x,
                                                    double y)
      • getLineShape

        public static Shape getLineShape​(Line2D line2D)
      • updateDecisionTableModelReferences

        public static void updateDecisionTableModelReferences​(com.fasterxml.jackson.databind.node.ObjectNode decisionServiceObjectNode,
                                                              DmnJsonConverterContext converterContext)
      • getDMNContainsExpressionMethod

        protected static String getDMNContainsExpressionMethod​(String containsOperator)
      • formatCollectionExpressionValue

        protected static String formatCollectionExpressionValue​(String expressionValue)
      • transformCollectionOperation

        protected static String transformCollectionOperation​(String operatorValue,
                                                             String inputType)