How to read a Mulesoft 4 flow response in java

71 Views Asked by At

I have a java connector that access the registry and triggers a flow using Java SDK. The result of the flow execution is a JSON payload. The reason I am doing this is because the requirement is to invoke a flow, get the response back, extract the attributes and use them to query another API using the pollingsource strategy as a source adding the queryparameters found in the resulting payload from the flow invocation.

The response payload is an object:

org.mule.runtime.core.internal.streaming.bytes.ManagedCursorStreamProvider@2e58ddfc

Would you have any idea on how to parse it to a JSON or any other way of accessing the values?

0

There are 0 best solutions below