Class JsonResolver

java.lang.Object
org.jbpm.process.core.transformation.JsonResolver

public class JsonResolver extends Object
  • Constructor Details

    • JsonResolver

      public JsonResolver(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Parameters:
      objectMapper - object mapper to be used when converting input items
    • JsonResolver

      public JsonResolver()
  • Method Details

    • resolveOnlyAnnotatedItems

      public Map<String,Object> resolveOnlyAnnotatedItems(Map<String,Object> items)
      Receive an Input Map of items and returns a new Map containing all items from input but the values with Jackson annotations are translated into an inner Map in a recursive way. This is useful for the communication of 2 services based on json parameter values as inputs but already deserialized into java POJOs.
      Parameters:
      items - Input items map
      Returns:
      a new Map containing all items from input but with the resolved values to Json if applied
    • resolveAll

      public Map<String,Object> resolveAll(Map<String,Object> items)