Class JsonResolver
java.lang.Object
org.jbpm.process.core.transformation.JsonResolver
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolveAll(Map<String, Object> items) 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.
-
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
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
-