Skip to main content

GroovyNode

The object curnode is a GroovyNode object. The GroovyNode class is a convenience class that wraps JsonNode. It is only available in submappers and their filters, and from message.get(key)( LINK to /message/field") if it doesn’t get a node with a value. It holds the data that was selected by its parent mapper.

The curnode is not a message, but its data can be accessed in the same way. Persistence works slightly different in curnode. To persist a curnode, first you need to set an id. Then you can call functions similar to message functions such as previous() and changed(key). At the end of the script, you need to explicitly save the node to the database by calling curnode.save()

info

Parameters in [] are optional.