One of the advantages of using the Java module is
the DataSense support,
which can help build the args map, which serves as input for the new operation.
Continuing the previous example, where the new operation calls the Person(String, Integer)
constructor of the com.me.Person class, clicking the Show Graphical View icon
shows a view to match fields. Assuming that the previous component in the flow outputs a map with name and age keys (like the
Set Payload
component can do), the view looks like this:
The fields can be matched by dragging and dropping from the left to the right. Doing so produces:
The new operation is configured and ready.
DataSense also provides metadata for the operation’s output. The new operation
places the Person object in the payload of the output message, as can be observed: